Skip to content

Instantly share code, notes, and snippets.

@ywchiu
Created April 11, 2016 11:28
Show Gist options
  • Save ywchiu/4039223412e91094477d633081a5ec0b to your computer and use it in GitHub Desktop.
Save ywchiu/4039223412e91094477d633081a5ec0b to your computer and use it in GitHub Desktop.
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