用Python写一个能搜出符合年龄24以下,性别女,居住地巴黎的所有知乎用户的爬虫大概要多久能完成?

符合你的目标的人其实不多。1 建议用站内搜索site:http://www.zhihu.com/people/ 巴黎2 或者参考这个爬虫yaojiang375/Zhihu_Diedai · GitHub
■网友
# coding: utf-8import sysreload(sys)sys.setdefaultencoding(\u0026#39;utf-8\u0026#39;)def codeiss(data):#decode\ttry:\t\treturn data.decode("GBK")\texcept:\t\treturn data.decode("UTF-8")def printgb(s):#print in large GB to avoid printing issue; Use it in windows.\tprint s.encode("GB18030")这几句解决中文乱码的语句,或许能省掉新手半天的折腾时间。适用于python2.7
■网友
半天
■网友
只要对性别,年纪,居住地,进行筛选,很简单就可以爬出来,主要是现在反扒站呀
■网友
【用Python写一个能搜出符合年龄24以下,性别女,居住地巴黎的所有用户的爬虫大概要多久能完成?】 用户属性里没有年龄这一项吧,你最后怎么做的?


    推荐阅读