Insert anti-captcha algorithm (hCaptcha) in existing Python + Selenium crawler

Job ID: 33807844

Budget: $30 – $200 USD

I have a web crawler written in Python 3 + Selenium + Firefox (attached) that needs to be updated because now the crawled website has a hCaptcha form.

1) We are using geckodriver 0.31 and Firefox 100.

Geckodriver: https://github.com/mozilla/geckodriver/releases/download/v0.31.0/geckodriver-v0.31.0-linux64.tar.gz

2) I will pass the anti-captcha token (https://anti-captcha.com), by private message;

3) Anti-captcha API documentation is here:
https://anti-captcha.com/apidoc/task-types/HCaptchaTaskProxyless;

4) The script should continue to be compatible with Python 3.10. Please do not use deprecated functions.

5) The place where the previous captcha algorithm (image) was located is commented in the code.

6) I am using Ubuntu 22.04, therefore the script cannot be modified to work in Chrome/Chromium (but I accept suggestions for other solutions that may run in this environment).
Related categories: Python Web Scraping Firefox Ubuntu Selenium Webdriver