Advertisement
Guest User

Untitled

a guest
Jun 19th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.27 KB | None | 0 0
  1. --- a/google.py
  2. +++ b/google.py
  3. @@ -70,5 +70,5 @@
  4.     s = web.get(uri)
  5.     for chunk in s.split('<img'):
  6. -      if '/images/calc' in chunk:
  7. +      if '/images/icons/onebox/calc' in chunk:
  8.           m = r_googlecalc.search(chunk)
  9.           if m: return text(m.group(1))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement