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

[教程]腾讯云函数部署 #40

Open
chen0495 opened this issue Oct 19, 2021 · 1 comment
Open

[教程]腾讯云函数部署 #40

chen0495 opened this issue Oct 19, 2021 · 1 comment

Comments

@chen0495
Copy link

chen0495 commented Oct 19, 2021

  1. 下载zip包
  2. 解压修改BiliExp.py文件的主函数为main_handler(event, context)如图图1
  3. 修改config/config.json文件里的配置比如用户cookies,SendKey之类的看着改就行(参考README)
  4. 改完之后去腾讯云函数创建函数并上传你改好的文件夹图2
  5. 修改执行方法为BiliExp.main_handler
  6. 高级配置里执行超时时间改到900秒(900秒还是会超时,建议关闭直播间心跳)
  7. 自定义一个触发器
  8. 上传好之后先安装依赖,终端cd src然后pip3 install -r requirements.txt -t ./,这样的话依赖全和源码混在一起,有时间的可以试试腾讯云的层管理...依赖可能一次安装不成功,多试几次
  9. 之后先部署(包全在一起,时间有点长)再测试图3
@ez452
Copy link

ez452 commented Oct 20, 2021

谢谢大佬

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

2 participants