handle some errors

This commit is contained in:
PAN Lei
2022-05-24 18:06:49 +02:00
parent 57dbd7a049
commit cecd7f4452
2 changed files with 30 additions and 15 deletions
+1
View File
@@ -36,6 +36,7 @@ class SolveCaptcha:
url_get = "http://2captcha.com/in.php?key=e7e3cd0977aba2dab49e0ea052ca58b1&method=userrecaptcha&googlekey={}&pageurl={}".format(
google_key, self.page.url)
res = requests.get(url_get)
print(res.text)
results = res.text.split("|")
self.captcha_id = results[-1]