Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

多个账号是随机取用还是默认使用启用的第一个账号? #188

Open
heiyaz opened this issue Jul 1, 2024 · 3 comments
Open

Comments

@heiyaz
Copy link

heiyaz commented Jul 1, 2024

账号管理中添加了多个账号,使用过程中是需要隔一段时间去禁用账号吗?还是添加了多个账号后就可以不用去管了,程序会去随机使用一个可用的账号去获取数据的

@le0zh0u
Copy link

le0zh0u commented Jul 1, 2024

添加了多个账号之后,会随机使用一个可用的账号去获取数据。根据请求返回结果看,如果禁了小黑屋,会在1天后解封;如果失效了,需要手动操作一下。但基本用不到手动禁用账号的操作。

@yoke233
Copy link

yoke233 commented Jul 4, 2024

我们添加了500个公众号, 如果添加10个账号, 拉取时候是每次随机分配这10个账号拉500中的一个公众号吗,

还是说一次任务执行前先随机一个账号 去拉500个

@le0zh0u
Copy link

le0zh0u commented Jul 4, 2024

伪代码大概是:
for 公众号 in 500个公众号:
try:
随机获取微信读书账号
使用微信读书账号拉取公众号
成功: 返回
catch:
判断异常:账号问题可能进小黑屋或者失效
重试三次

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants