python自学笔记——糗事百科段子爬取
#--coding:utf-8--CreatedonThuDec2114:27:162017@author:Andrew########################爬取内容包括:用户、段子内容、段子对应的好笑数importurllib.requestimportredefgetcontent(url,page):#模拟成浏览器headers=(User-Agent,Mozilla/5.0(WindowsNT10.0WOW64)AppleWebKit/537.36(KH...