Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crawler.py中需要修改用户名 #4

Open
dspjm opened this issue Apr 17, 2024 · 1 comment
Open

crawler.py中需要修改用户名 #4

dspjm opened this issue Apr 17, 2024 · 1 comment

Comments

@dspjm
Copy link

dspjm commented Apr 17, 2024

否则会使用默认用户名,替换所有用户名后可以使用。

Requirements中最后一个少了一个等号。这个版本numpy在python 3.12上安装会有麻烦,实测最新版也能用。

感谢博主分享

@ZouJiu1
Copy link
Owner

ZouJiu1 commented Apr 18, 2024

不需要修改用户名,需要先登录才行,我用ninininini替掉里面的用户名,并且删掉之前的cookie_zhihu.pkl,然后运行登陆保存cookie,等几分钟浏览器自动退出保存好cookie以后,然后再次运行爬取一篇article,可以正常爬取并且保存的。python crawler.py --article --MarkDown。和用户名没关系的,会自动获取用户名。

requirement.txt 加了一个等号,已经修复了的 commit/bc61e5eba228c4334ad0e8acd035cb054da37ed6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants