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

微博也许需要支持登陆模块 #437

Open
2 tasks done
b1xcy opened this issue Nov 28, 2023 · 10 comments
Open
2 tasks done

微博也许需要支持登陆模块 #437

b1xcy opened this issue Nov 28, 2023 · 10 comments

Comments

@b1xcy
Copy link

b1xcy commented Nov 28, 2023

环境

  • nonebot-bison 版本:
  • nonebot 版本:
  • 安装方式:(以下方式的一种或者其他方式)
    使用docker-compose启动
  • 操作系统:
    ubuntu

问题

在未登录情况下,部分用户的微博的风控可能出现问题,导致未登录的用户无法从https://m.weibo.cn/api/container/getIndex?containerid=接口获取用户数据
image

日志

  • 我搜索过了 issue,但是并没有发现过与我类似的问题
  • 我确认在日志中去掉了敏感信息
@felinae98
Copy link
Collaborator

这个规划很久了但没有做,一个重要的原因是带 cookie 的请求发太快可能会连账号带 ip 一起 ban。用什么样的策略和速度可能会比较难验证(代价可能也比较大

@b1xcy
Copy link
Author

b1xcy commented Dec 1, 2023

问了一下,好像把爬虫间隔设置到5-10s就没问题了(带cookie的情况下),也许可以先用10s试试?

@sapphire159
Copy link

借地方问下这个爬虫的间隔在哪设置,翻了几遍文档没看到。

Copy link
Collaborator

(写死的)

@sapphire159
Copy link

这个不考虑做成配置吗,那是在代码的哪个位置呢。

Copy link
Collaborator

去源代码改(

Copy link
Collaborator

platform/平台名.py::xxxSchedConf.schedule_setting

@sapphire159
Copy link

好的,谢谢

Copy link
Collaborator

你来pr一个就支持配置了(

@Nenot233
Copy link

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

5 participants