jd-tools
jd-tools copied to clipboard
Search coupon and lottery on JD website
jd-tools
These scripts are used to search coupon and lottery on JD website. And the original code is from https://github.com/Adyzng/jd-autobuy, and his code is used to login to JD website.
Enviroment
Please install Cygwin with python and pip, and use below commands to install modules:
python -m pip install requests
python -m pip install beautifulsoup4
Ubuntu Desktop is also supported.
Usage
jd_coupon_pc.py
Please refer to coupon_pc.sh.
- KEY is your coupon key.
- ROLEID is your coupon role id.
- HOUR is hour for coupon release time.
- MINUTE is minute for coupon release time.
- PROCESS is the number of processes used for click.
- FILE is used for log.
- USER is the email account for 163.
- PASS is the email password for 163.
- TO is the email address for receiver.
And the result is like this:
$ source coupon_pc.sh
Login to JD ...
11:35:58 - (WARNING) +++++++++++++++++++++++++++++++++++++++++++++++++++++++
11:35:58 - (WARNING) Mon Jun 12 11:35:58 2017 > 请打开京东手机客户端,准备扫码登陆:
11:36:01 - (WARNING) 201 : 二维码未扫描 ,请扫描二维码
11:36:04 - (WARNING) 201 : 二维码未扫描 ,请扫描二维码
11:36:07 - (WARNING) 201 : 二维码未扫描 ,请扫描二维码
11:36:10 - (WARNING) 200 : AAEAMFe35heU8_RoHJ5VmRD-rKfPQOejQwLSb3DtInT457JInXYVvLWR5PeUx-xCb1BnwQ
11:36:11 - (WARNING) 登陆成功
11:36:14 - (WARNING) 活动已结束或不存在,看下其他活动吧~
jd_crawler.py
Please refer to crawler.sh.
jd_lottery.py
Please refer to lottery.sh.