Skip to content

Instantly share code, notes, and snippets.

@pratik-dani
Created May 23, 2020 13:13
Show Gist options
  • Save pratik-dani/47a8f5423daadba0c1600b577639c31e to your computer and use it in GitHub Desktop.
Save pratik-dani/47a8f5423daadba0c1600b577639c31e to your computer and use it in GitHub Desktop.
site_key = "6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-"
with open(r"api_key.txt", "r") as f:
api_key = f.read()
form = {"method": "userrecaptcha",
"googlekey": site_key,
"key": api_key,
"pageurl": pageurl,
"json": 1}
response = requests.post('http://2captcha.com/in.php', data=form)
request_id = response.json()['request']
@Kev-in123
Copy link

Kev-in123 commented Feb 8, 2021

where do you get an api key?

@pratik-dani
Copy link
Author

On 2captcha's website.

@Kev-in123
Copy link

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment