Skip to content

Commit a76abcc

Browse files
committed
Merge pull request REMitchell#11 from spwilson2/master
'Look inside' functions better
2 parents 913ff3e + e2bae70 commit a76abcc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

chapter11/3-readWebImages.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
driver.get("http://www.amazon.com/War-Peace-Leo-Nikolayevich-Tolstoy/dp/1427030200")
99
time.sleep(2)
1010

11-
driver.find_element_by_id("sitbLogoImg").click()
11+
driver.find_element_by_id("img-canvas").click()
1212
#The easiest way to get exactly one of every page
1313
imageList = set()
1414

@@ -33,4 +33,4 @@
3333
p = subprocess.Popen(["tesseract", "page.jpg", "page"], stdout=subprocess.PIPE,stderr=subprocess.PIPE)
3434
p.wait()
3535
f = open("page.txt", "r")
36-
print(f.read())
36+
print(f.read())

0 commit comments

Comments
 (0)