Code Monkey home page Code Monkey logo

Comments (3)

dataabc avatar dataabc commented on June 7, 2024

感谢反馈。

可以修改start方法

            for user_id in self.user_id_list:
                self.initialize_info(user_id)
                print('*' * 100)
                self.get_follow_list()  # 爬取微博信息
                self.write_to_txt()

for 循环中的user_id代表你想获取关注的用户,你可以在循环开始时向结果文件写user_id,结束时也写。这样user_id之间的就是该user_id的关注。

from weibo-follow.

alfonsocheng1025 avatar alfonsocheng1025 commented on June 7, 2024

感谢反馈。

可以修改start方法

            for user_id in self.user_id_list:
                self.initialize_info(user_id)
                print('*' * 100)
                self.get_follow_list()  # 爬取微博信息
                self.write_to_txt()

for 循环中的user_id代表你想获取关注的用户,你可以在循环开始时向结果文件写user_id,结束时也写。这样user_id之间的就是该user_id的关注。

感谢!我还想咨询是否有方法可以不用通过抓取所有的关注和粉丝列表,从而判断两个微博用户的朋友关系?我记得之前有看到过这样的code,但我找了很久找不到了。
另外,我给您gmail发了一封邮件,希望能私下请教~ 谢谢

from weibo-follow.

dataabc avatar dataabc commented on June 7, 2024

已经在邮件中回复了,不知道是否可行。

from weibo-follow.

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.