Skip to content

京东试用商品批量申请,程序自动获取cookies并利用cookies登录,无需重复手动登录。程序通过“模拟点击“方法实现,不受网站反爬机制影响。

Notifications You must be signed in to change notification settings

herohunter/JDTryBatchApply

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

京东试用批量申请脚本

label1 label1

使用方法

环境

Chrome, 与Chrome对应版本的chromedriver, Python3, selenium库

运行步骤

1)安装运行环境: 安装Chrome浏览器; 下载对应版本的chromedriver (https://npm.taobao.org/mirrors/chromedriver/), 将chromedriver.exe文件添加到Chrome的安装路径,将chromedriver安装路径添加进系统环境变量; 安装Python3, 将python安装目录添加到环境变量; 下载pip源码包,安装pip (python setup.py install),将pip安装目录添加到环境遍历; 使用pip为Python添加selenium库 (pip install selenium);

2)下载本项目, 运行 GetCookies.py,会弹出浏览器窗口并自动跳转到京东登录页面,以任何一种方式登录,登录成功后会自动跳转页面,此时无需任何操作,程序会自动结束运行。程序运行完毕会在同级目录生成cookies.json文件。

3)运行 MainProgram.py, 程序将利用上一步获取的cookies自动登录京东试用,并自动申请试用。

注:不用每次都运行 GetCookies.py, 一次获取cookies后能使用多日,直至cookies过期,在此期间仅运行步骤3就可自动登录并申请试用

About

京东试用商品批量申请,程序自动获取cookies并利用cookies登录,无需重复手动登录。程序通过“模拟点击“方法实现,不受网站反爬机制影响。

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%