Skip to content

Instantly share code, notes, and snippets.

@snowleung
Created July 25, 2014 14:12
Show Gist options
  • Save snowleung/828ecffdfe33e273d980 to your computer and use it in GitHub Desktop.
Save snowleung/828ecffdfe33e273d980 to your computer and use it in GitHub Desktop.
ikea price observer
#coding:utf8
import urllib2
import re
def input_link(l):
resp = urllib2.urlopen(l)
r_data = resp.read()
result = re.findall('\d+\.\d\d',r_data)
return result
if __name__ == '__main__':
print input_link('''http://www.ikea.com/cn/zh/catalog/products/90020386/''')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment