Skip to content

idreamboat/JDMonitor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

京东商品监控

通过微信文件助手发送监控商品的id,price,clock(用于监控的频率),通过邮件接收监控结果

id,price,clock

id:12345,price:10,clock:5

监控id为12345的商品,有货且价格低于10元时发送降价通知(最多通知1次),否则不发通知,每5秒钟监控一次;

id:12345,clock:10

监控id为12345的商品,有货时发送有货通知(最多通知1次),否则不发通知,每10秒钟监控一次;

other

price(默认None)和clock(默认5)都可以为空.

邮件通知

用户关注price则有货且降价就提醒,用户不关注价格则有货就提醒;
达到要求,邮件提醒仅一次;不达到要求则无限循环(每clock秒监控)

ref:scraper-jd.py

主要参考库存以及价格的爬虫

附加聊天文件监控

之前项目的移植(考虑到微信账号无法多终端登录)

问题

如果前一个商品监控一直处于监控的死循环中,则无法监控下一个商品(即直到第一个监控成功为止)

About

京东商品监控

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%