I regularly run Python scripts that require valid google reCaptcha tokens when interacting with web pages. Recently though I have been having problems when manually harvesting the tokens or using providers as my scripts seem more likely to crash. To avoid this I am looking for a script/program that will generate tokens and store them in a database I can access though my other Python scripts to collect the valid generated tokens.
Providers such as 2 captcha and anti captcha provide valid tokens. I need a script that will allow me to both solve captchas manually and use 2 captcha or anti captcha in order to generate valid tokens. I would like the tokens to then be uploaded to a database either online or stored locally. So I can run my other scripts separately and can collect the valid tokens when needed.
The script or program will also need to remove the invalid captcha tokens as they will expire after two minutes. The reason I do not want to continue generating tokens in the same script is because of the likelihood of the manual captcha harvesters causing crashes and also when 2 captcha or anti captcha services are failing I would like to try and change the captcha provider or solve them manually while the other scripts are running. This preventing the likelihood of crashes and gives me more control over the amount of captcha tokens needed during specific times.
I looked into online database providers such as google firebase which I see could be a good platform for storing the valid captchas.
Please message me with suggestions as to how we can achieve this!
Look forward to hearing from you.