Created
July 25, 2014 14:12
-
-
Save snowleung/828ecffdfe33e273d980 to your computer and use it in GitHub Desktop.
ikea price observer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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