Comments (3)
感谢反馈。
可以修改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.
感谢反馈。
可以修改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.
已经在邮件中回复了,不知道是否可行。
from weibo-follow.
Related Issues (20)
- 某些用户(签约自媒体)用户ID抓取不到,抓取的是字符串,和昵称不同 HOT 1
- 想要随机获取列表中的x个人 HOT 1
- 请问我的weibo-follow一直无法安装是怎么回事? HOT 13
- 20页后面就没了😂 HOT 1
- 问题:“cookie无效或提供的user_id无效” HOT 2
- 把代码放在阿里云服务器上报错,但是在本地是可以运行的(由于是小白不太懂怎么弄,还希望作者大大帮助) HOT 1
- 可以增加一个根据这个爬取到的结果进行批量关注的功能吗? HOT 1
- 概率出现"Max retries exceeded with url:XXXX"的错误 HOT 3
- 页面限制 HOT 1
- 请问把sleep()的间隔秒数调短一些是否有被封ip的风险呢? HOT 5
- 请问出现is_exist = info[0].xpath("div/span[@class='ctt']") IndexError: list index out of range是因为什么 HOT 4
- 运行了停不下来 HOT 2
- 请问大佬,有没有爬取微博转发路径的功能? HOT 3
- 请问大佬,运行之后,没反应是怎么回事? HOT 2
- “cookie无效或提供的user_id无效”问题 HOT 5
- 想问一下作者,爬取了用户的关注列表以后,所有的关注用户都在user_id_list.txt里面,怎么能划分出来他们是那些用户的关注列表呢? HOT 2
- 59行偶尔报错 HOT 3
- 你好,出现xpath问题 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 weibo-follow.