-
-
Save davidas13/9d510f23d4ba86202abb8022894a0a3d to your computer and use it in GitHub Desktop.
Revisions
-
spirkaa created this gist
Dec 11, 2014 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ img = driver.find_element_by_xpath("//div[@id='MailRuConfirm']/div/div[18]/form/div[1]/div[2]/div[2]/div[2]/img") src = img.get_attribute('src') img = requests.get(src) with open('captcha.jpg', 'wb') as f: f.write(img.content)