Comments (3)
可能和目标账号有关,某些类型的微博限制比较严。您可以修改spider.py,把range(1, page_num + 1)改成range(20, page_num + 1),这样程序就会从20页开始获取。
from weibospider.
感谢解答,但从20页开始获取仍然会在40页左右被封,也许确实是因为这个账号比较严,现在的解决方法是将参数设置为"random_wait_pages": [1, 2],
"random_wait_seconds": [120, 180] 就可以无限获取了,为了效率只能考虑用多个代理ip同时爬
from weibospider.
爬取多个微博账号时都出现同样的情况,无法爬取。
比如以下微博目标账户:2974325495;1682207150
from weibospider.
Related Issues (20)
- (unknown location) HOT 1
- 无法运行 HOT 7
- 视频播放量 HOT 1
- 视频爬取失败 HOT 3
- 关于main函数调用 HOT 1
- nickname报错 HOT 3
- 报错一大堆 HOT 3
- 微博长文“展开”更多,无法获取完整长文内容 HOT 2
- 通过POST方式将数据推送到自定义接口 HOT 1
- 报错During handling of the above exception, another exception occurred HOT 1
- 如果只想要微博用户的个人信息,如性别,生日等,但不想要其微博信息,需要怎么做啊? HOT 1
- 程序运行__main___出错 HOT 5
- 关于获取到的粉丝数 HOT 2
- 无法使用'NoneType' object has no attribute 'nickname',尝试过更换COOKIE HOT 2
- 请问怎么保存视频页面链接 HOT 5
- 爬取用户信息时报错List out of range 但是爬取微博时正常 HOT 3
- 部分ID爬取错误 HOT 1
- 我是小白,请问怎么爬取微博全网内容,关键词怎么设置 HOT 4
- 能否增加抓取精选评论数 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from weibospider.