Discuss / Python / 廖老师提供的json地址已经失效了,这里提供一个新的地址 http://news-at.zhihu.com/api/4/news/latest

廖老师提供的json地址已经失效了,这里提供一个新的地址 http://news-at.zhihu.com/api/4/news/latest

Topic source

叫是先生

#1 Created at ... [Delete] [Delete and Lock User]

def fetch_data(url): with request.urlopen(url) as f: urldata = f.read().decode('utf-8') return json.loads(urldata)

新的api地址是github上其他人爬虫所得,请不要用于商业目的


  • 1

Reply