Open hummusonrails opened 2 years ago
tricky one. I wonder whether some random mouse movement and changing the user agent string would help. I presume the session recycles every time the action is run as it is basically a different environment each time.
I also found these links but I think this might be overkill... https://medium.com/analytics-vidhya/how-to-bypass-recaptcha-v3-with-selenium-python-7e71c1b680fc https://medium.com/analytics-vidhya/how-to-easily-bypass-recaptchav2-with-selenium-7f7a9a44fa9e
It looks like we went down the same path this morning, @tghosth! 😂
I opened up an experimental WIP PR #33 to try and begin resolving this. So far it hasn't been successful.
The twice-weekly antigen declaration form has a reCAPTCHA checkbox. Sometimes, it only requires the checkbox be clicked. Other times, it prompts for additional verification.
The additional verification request breaks the
declare_antigen.rb
script.Knowing that reCAPTCHAs are designed to stop bots and scripts like these, any workaround creative solutions to this issue would be interesting to consider.