Created
April 11, 2016 11:28
-
-
Save ywchiu/4039223412e91094477d633081a5ec0b to your computer and use it in GitHub Desktop.
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
import requests | |
import pandas | |
import json | |
url = 'http://ecshweb.pchome.com.tw/search/v3.3/all/results?q=%E5%88%AE%E9%AC%8D%E5%88%80&page=2&sort=rnk/dc' | |
r = requests.get(url) | |
jd = json.loads(r.text) | |
df = pandas.DataFrame(jd['prods']) | |
df.head() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment