Giter VIP home page Giter VIP logo

Comments (4)

dataabc avatar dataabc commented on September 3, 2024

感谢反馈。怀疑是user_id_list txt文档编码格式有问题。
大部分txt文档都是采用utf-8编码,少部分采用其它编码。程序对这些编码都作了处理,一般来说可以正确读取文件。但是txt文件也有可能被设置成了本程序还没有考虑过的编码,因此出现问题。
如果是这种情况,可以通过文本编辑器把user_id_list文档的编码设置成utf-8,问题就解决了。

如果问题还没解决并且你方便的话,能否提供出错的user_id_list文件,方便调试,谢谢。

from weibo-crawler.

LuciaLujia avatar LuciaLujia commented on September 3, 2024

谢谢回复!将原先的文件编码改成utf-8就正常了。检查了一下,之前报错的编码是ANSI。再次感谢~

from weibo-crawler.

LuciaLujia avatar LuciaLujia commented on September 3, 2024

更新一下情况,对新下载的weibo.py,现在变成每行只有一个id的情况会报错(Error: 'nickname'),id+空格+几个中文字的情况就不会报错。其他编码之类的格式都是一样的。暂时没发现是什么问题,我先把所有id后面都随便加了几个字解决..

from weibo-crawler.

dataabc avatar dataabc commented on September 3, 2024

感谢反馈,问题已经修复。

原因是字段名写错了,不是nickname而是screen_name,所以出错。将字段名字修改正确就解决这个问题了。

再次感谢

from weibo-crawler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.