一个知乎爬虫,登陆,获取答案,
下载文件到某个文件夹,然后运行,根据提示执行程序,
验证码问题:python会下载验证码到文件目录下,你需要手动填写验证码,登陆一次之python会记录你的cookies下次登陆可以直接登陆,无需填写密码等,cookies文件也在该文件名下。
实例化:
from python_zhihu import ZhiHu
zh=ZhiHu()
下载某个问题下的高赞答案:
zh.get_text('填入网址')
下载某个问题下所有的图片:
zh,get_img('url')