python爬虫
清醒思考
有问题可以私信我.
展开
-
下载36氪 播氪的音频
#coding=utf-8import re,urllib2,os,urllib,requestsdef getHtmlCode(url): response = urllib2.urlopen(url) return response.read()def getEntityId(htmlString): regEntityId = re.compile("\"(.+?)\原创 2017-07-26 17:28:19 · 462 阅读 · 0 评论 -
下载开眼的视频
import json, requests, osimport urllibresults = {}strategys = ['weekly', 'monthly', 'historical']for strategy in strategys: url = 'https://baobab.kaiyanapp.com/api/v4/rankList/videos?start=0&...原创 2018-07-21 14:30:32 · 1220 阅读 · 0 评论