Skip to content

Commit e2bae70

Browse files
committed
'Look inside' functions better
Before sometimes the way Look inside renders in the browser (at least in Linux), click would not register. So instead of click 'Look inside' click the book image.
1 parent 913ff3e commit e2bae70

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)