CircleJerkFrenzy
BANNED
- Oct 9, 2019
- 48
- 7
I was stuck on this for days and not making progress. The problem I am having is the submission part. I used to have it working but they changed the code on the page somehow and I can't figure out where I need to or how I need to insert the recaptcha answer in order to get the result back as ok to go ahead. Currently I have imitated as far as I could see by injecting the result into the element where it goes when I did it manually. I then force the continue button to come visible but when I click it the page just snaps back to the start of the captcha again rather than letting me into to account.
Look here (https://postimg.cc/PLx68FTm) at the current inspect element data for it when I did it manual.
I am firing the js in python via the webdriver. The old solve was done like so
But now that code has changed as you can see in the image above but I don't know how to inject it correctly now.
I am doing it like so
but it is producing the said result above of just restarting recaptcha from the beginning. When I checked the element after inserting it it looked just like when done manually with the recaptcha result added but still doesn't work so I don't know what is missing.
Any clues on how to get around this shit? I try to make all my new projects in requests only these days but I had this one for years working in twitter and when I tried in requests there was a load of bullshit with handshakes or suchlike I gave up. I heard from someone else not to bother as well as they said it has security like instagram in that sense so not to try with requests. Besides all these bots have been working well besides this one part so no need to reinvent the wheel but I wanna get it going again as this is causing a roadblock.
Look here (https://postimg.cc/PLx68FTm) at the current inspect element data for it when I did it manual.
I am firing the js in python via the webdriver. The old solve was done like so
Code:
self.client.execute_script("window.wrappedJSObject.onDataCallback('{}')".format(recaptcha_answer))
But now that code has changed as you can see in the image above but I don't know how to inject it correctly now.
I am doing it like so
Code:
self.client.execute_script("""
var paragraph = document.getElementById("verification_string");
var text = document.createTextNode("{}</input>");
paragraph.appendChild(text);
""".format(recaptcha_answer))
but it is producing the said result above of just restarting recaptcha from the beginning. When I checked the element after inserting it it looked just like when done manually with the recaptcha result added but still doesn't work so I don't know what is missing.
Any clues on how to get around this shit? I try to make all my new projects in requests only these days but I had this one for years working in twitter and when I tried in requests there was a load of bullshit with handshakes or suchlike I gave up. I heard from someone else not to bother as well as they said it has security like instagram in that sense so not to try with requests. Besides all these bots have been working well besides this one part so no need to reinvent the wheel but I wanna get it going again as this is causing a roadblock.