SHARE
TWEET

Untitled

a guest Jun 19th, 2017 45 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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))
RAW Paste Data
Want to get better at Python?
Learn to code Python in 2017
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!
Top