Shaw-fung / Online-shopping-price-monitoring

监控购物网站商品价格及库存提醒
4 stars 1 forks source link

建议加个判断条件。无货的商品不推送。 #4

Open luolovehk opened 3 years ago

luolovehk commented 3 years ago

Server酱现免费的在每天只能发送5条。建议换其他的推送方式。

Shaw-fung commented 3 years ago

判断无货商品不推送,可以。除了Server酱还有别的什么好用的推送吗?

luolovehk commented 3 years ago

https://moka.sage.run/ TG的摩卡酱。 或者 企业微信的自建应用程序

Shaw-fung commented 3 years ago

关于换成TG的摩卡酱你只需要把第32行代码中的地址https://sctapi.ftqq.com/{}.send?title={}&desp={} 替换成 http://moka.sage.run/api/send?token={}&title={}&text={} 就可以了,替换后如下: sj_server_addr = 'http://moka.sage.run/api/send?token={}&title={}&text={}' # Server酱API接口地址 然后sj_sendkey填入TG摩卡酱的token就可以推送信息了。 由于TG国内使用较少还是不修改为默认了。

luolovehk commented 3 years ago

关于换成TG的摩卡酱你只需要把第32行代码中的地址https://sctapi.ftqq.com/{}.send?title={}&desp={} 替换成 http://moka.sage.run/api/send?token={}&title={}&text={} 就可以了,替换后如下: sj_server_addr = 'http://moka.sage.run/api/send?token={}&title={}&text={}' # Server酱API接口地址 然后sj_sendkey填入TG摩卡酱的token就可以推送信息了。 由于TG国内使用较少还是不修改为默认了。

感谢热心大佬~!!!

luolovehk commented 3 years ago

https://www.pushplus.plus/

这个可以代替 Server酱的,尝试一下。

Shaw-fung commented 3 years ago

可以,这个免费的暂时没有限制条数,就是不知道稳定性怎么样,已修改代码,默认用这个试试。

https://www.pushplus.plus/

这个可以代替 Server酱的,尝试一下。

Shaw-fung commented 3 years ago

代码更新并测试了一下,感觉还行,现在就用这个pushplus,感谢提供。