Comments (3)
你好,从"IndexError: list index out of range"看,说明"wb.weibo_content"数据为空导致"wb.weibo_content[0]"出错。
至于"Error: 'set' object is not subscriptable",尝试了一些情况,没有出现类似的错误。
能否提供更多信息,如要爬取的用户id,方便的话最好附上全部代码,谢谢
from weibospider.
替换cookie的时候你写错了,比如你的cookie是"xxxxx",你应该写成如下形式:
cookie = {"Cookie": "xxxxx"}
而你写成
cookie = {"xxxxx"}
了,将cookie改成
cookie = {"Cookie": "xxxxx"}
的形式就可以正确运行了,其中"xxxxx"就是你的cookie内容:smiley:
from weibospider.
已修改,我太粗心了。感谢答疑(〃'▽'〃)
from weibospider.
Related Issues (20)
- 通过POST方式将数据推送到自定义接口 HOT 1
- 随机等待时长已经加到非常长了,但还是会在相似的页数被封禁 HOT 3
- 报错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
- 想请教一下原始图片url怎么利用 HOT 1
- 运行出错,无法连接 HOT 2
- 无法安装环境lxml4.9.1 HOT 5
- 抓取不全自动停止 HOT 3
- 抓取一批账号信息,账号信息还没有抓取结束,但程序运行到一半就会报错,报错之后的数据抓取全部丢失,稳定复现,请问如何解决 HOT 3
- 右上角的微博视频号水印能不能找到无水印的视频链接 HOT 3
- 在为特定用户加入独立since date时爬取失败 HOT 2
- 运行出错 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.