Comments (4)
感谢反馈。怀疑是user_id_list txt文档编码格式有问题。
大部分txt文档都是采用utf-8编码,少部分采用其它编码。程序对这些编码都作了处理,一般来说可以正确读取文件。但是txt文件也有可能被设置成了本程序还没有考虑过的编码,因此出现问题。
如果是这种情况,可以通过文本编辑器把user_id_list文档的编码设置成utf-8,问题就解决了。
如果问题还没解决并且你方便的话,能否提供出错的user_id_list文件,方便调试,谢谢。
from weibo-crawler.
谢谢回复!将原先的文件编码改成utf-8就正常了。检查了一下,之前报错的编码是ANSI。再次感谢~
from weibo-crawler.
更新一下情况,对新下载的weibo.py,现在变成每行只有一个id的情况会报错(Error: 'nickname'),id+空格+几个中文字的情况就不会报错。其他编码之类的格式都是一样的。暂时没发现是什么问题,我先把所有id后面都随便加了几个字解决..
from weibo-crawler.
感谢反馈,问题已经修复。
原因是字段名写错了,不是nickname而是screen_name,所以出错。将字段名字修改正确就解决这个问题了。
再次感谢
from weibo-crawler.
Related Issues (20)
- 你好,我想下载所有微博正文,该怎么设置呢? HOT 3
- docker镜像 HOT 1
- 某行是一条独立换行内容的时候这个换行最终读取到MYSQL会被省略掉
- 微博内容(Weibo.text)最大长度报错问题 HOT 1
- 求助-爬微博进度100%,但是数量明显跟实际数量不一致有可能是何原因? HOT 3
- 如何爬取微博正文时展开全文爬取到完整内容 HOT 1
- COOKIES没有失效,但是Progress: 19%就结束了,可能是什么原因? HOT 3
- 当单个微博图片超过9张时,weibo-crawler只能下载9张 HOT 2
- 爬取的图片名字里有一个奇怪的T HOT 1
- “检测cookie是否有效”的功能失效 HOT 2
- 怎么爬取用户的ip归属地呢? HOT 7
- 请问下载的评论在哪 HOT 1
- 转发和评论好像出现了奇怪的问题 HOT 1
- csv中抓取的用户头像链接有时候会失效怎么解决? HOT 1
- sqlite储存数据非常大 HOT 1
- Docker 定时跑时,图片和视频是否是反复下载?
- since_date 格式不正确,请确认配置是否正确 HOT 6
- 被ban了 HOT 1
- 无法爬取地区、学校、生日相关信息 HOT 3
- 微博爬取截止时间 HOT 2
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 weibo-crawler.