Created
May 23, 2020 13:13
-
-
Save pratik-dani/47a8f5423daadba0c1600b577639c31e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On 2captcha's website.