Skip to content
This repository has been archived by the owner on Mar 2, 2022. It is now read-only.
/ CMB-news Public archive

爬取招商银行-招银汇金财经新闻,调用github workflow定时抓取

License

Notifications You must be signed in to change notification settings

LittleJake/CMB-news

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CMB-news

Crond job for Redis CMB Crond job for non redis CMB

爬取招商银行-招银汇金财经新闻,调用github workflow定时抓取

介绍

爬取思路:URL重放,服务器不校验时间戳,导致相同时间校验头可无限重放获取最新数据。

说明

Redis版

通过redis保存已推送过的id来节省流量,并且保存Json至Redis内供外部调用。

说明
CMB_ID 推送过的最新消息ID
CMB_JSON 获取的消息Json字符串

非Redis版

自动调用Server酱或Wxpusher的API推送至微信。

其他

脚本自动运行为5分钟一次,可修改workflow文件达到自己想要的效果。

使用方法

  1. fork本项目

  2. 申请server酱token,Server酱官网

  3. 申请Wxpusher的appToken,wxpusher官网

  4. 打开项目SettingsSecrets页面,添加如下

    名称 说明 值实例
    REDIS_HOST Redis主机/IP 127.0.0.1
    REDIS_PORT Redis端口 6379
    REDIS_PASSWORD Redis密码 123456
    SERVERCHAN_TOKEN Server酱token -
    WXPUSHER_TOKEN Wxpusher appToken -
  5. 打开Action页面,激活workflow,点击Enable

  6. 在自己的项目点个Star即可运行Workflow

运行截图

1

2

鸣谢

Server酱

wxpusher

开源许可证

Apache 2.0

About

爬取招商银行-招银汇金财经新闻,调用github workflow定时抓取

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages