Adyzng / Jd Autobuy
Python爬虫,京东自动登录,在线抢购商品
Stars: ✭ 1,174
Programming Languages
python
139335 projects - #7 most used programming language
Projects that are alternatives of or similar to Jd Autobuy
Awesome Crawler
A collection of awesome web crawler,spider in different languages
Stars: ✭ 4,793 (+308.26%)
Mutual labels: crawler, scraper
Scrapedin
LinkedIn Scraper (currently working 2020)
Stars: ✭ 453 (-61.41%)
Mutual labels: crawler, scraper
Headless Chrome Crawler
Distributed crawler powered by Headless Chrome
Stars: ✭ 5,129 (+336.88%)
Mutual labels: crawler, scraper
Lulu
[Unmaintained] A simple and clean video/music/image downloader 👾
Stars: ✭ 789 (-32.79%)
Mutual labels: crawler, scraper
Crawler
A high performance web crawler in Elixir.
Stars: ✭ 781 (-33.48%)
Mutual labels: crawler, scraper
Crawly
Crawly, a high-level web crawling & scraping framework for Elixir.
Stars: ✭ 440 (-62.52%)
Mutual labels: crawler, scraper
Avbook
AV 电影管理系统, avmoo , javbus , javlibrary 爬虫,线上 AV 影片图书馆,AV 磁力链接数据库,Japanese Adult Video Library,Adult Video Magnet Links - Japanese Adult Video Database
Stars: ✭ 8,133 (+592.76%)
Mutual labels: crawler, scraper
Nintendo Switch Eshop
Crawler for Nintendo Switch eShop
Stars: ✭ 463 (-60.56%)
Mutual labels: crawler, scraper
Freshonions Torscraper
Fresh Onions is an open source TOR spider / hidden service onion crawler hosted at zlal32teyptf4tvi.onion
Stars: ✭ 348 (-70.36%)
Mutual labels: crawler, scraper
Hquery.php
An extremely fast web scraper that parses megabytes of invalid HTML in a blink of an eye. PHP5.3+, no dependencies.
Stars: ✭ 295 (-74.87%)
Mutual labels: crawler, scraper
Autoscraper
A Smart, Automatic, Fast and Lightweight Web Scraper for Python
Stars: ✭ 4,077 (+247.27%)
Mutual labels: crawler, scraper
Spidr
A versatile Ruby web spidering library that can spider a site, multiple domains, certain links or infinitely. Spidr is designed to be fast and easy to use.
Stars: ✭ 656 (-44.12%)
Mutual labels: crawler, scraper
Pypergrabber
Fetches PubMed article IDs (PMIDs) from email inbox, then crawls PubMed, Google Scholar and Sci-Hub for respective PDF files.
Stars: ✭ 14 (-98.81%)
Mutual labels: crawler, scraper
JD_AutoBuy
京东抢购
Python爬虫,自动登录京东网站,查询商品库存,价格,显示购物车详情等。
可以指定抢购商品,自动购买下单,然后手动去京东付款就行。
chang log
- 2017-03-30 实现二维码扫码登陆
- 2017-06-27 Golang版JD_AutoBuy
运行环境
Python 2.7
第三方库
- Requests: 简单好用,功能强大的Http请求库
- beautifulsoup4: HTML文档格式化及便签选择器
环境配置
pip install requests
pip install beautifulsoup4
使用帮助
> python scraper-jd.py -h
usage: scraper-jd.py [-h] [-u USERNAME] [-p PASSWORD] [-g GOOD] [-c COUNT]
[-w WAIT] [-f] [-s]
Simulate to login Jing Dong, and buy sepecified good
optional arguments:
-h, --help show this help message and exit
-u USERNAME, --username USERNAME
Jing Dong login user name
-p PASSWORD, --password PASSWORD
Jing Dong login user password
-g GOOD, --good GOOD Jing Dong good ID
-c COUNT, --count COUNT
The count to buy
-w WAIT, --wait WAIT Flush time interval, unit MS
-f, --flush Continue flash if good out of stock
-s, --submit Submit the order to Jing Dong
实例输出
+++++++++++++++++++++++++++++++++++++++++++++++++++++++
Thu Mar 30 17:10:01 2017 > 请打开京东手机客户端,准备扫码登陆:
201 : 二维码未扫描 ,请扫描二维码
201 : 二维码未扫描 ,请扫描二维码
201 : 二维码未扫描 ,请扫描二维码
201 : 二维码未扫描 ,请扫描二维码
202 : 请手机客户端确认登录
200 : BADACIFYhf6fakfHvjiYTlwGzSp4EjFATN3Xw1ePR1hITtw0
登陆成功
+++++++++++++++++++++++++++++++++++++++++++++++++++++++
Thu Mar 30 17:10:28 2017 > 商品详情
编号:3133857
库存:现货
价格:6399.00
名称:Apple iPhone 7 Plus (A1661) 128G 黑色 移动联通电信4G手机
链接:http://cart.jd.com/gate.action?pid=3133857&pcount=1&ptype=1
商品已成功加入购物车!
购买数量:3133857 > 1
+++++++++++++++++++++++++++++++++++++++++++++++++++++++
Thu Mar 30 17:10:30 2017 > 购物车明细
购买 数量 价格 总价 商品
Y 1 6399.00 6399.00 Apple iPhone 7 Plus (A1661) 128G 黑色 移动联通电信4G手机
总数: 1
总额: 6399.00
+++++++++++++++++++++++++++++++++++++++++++++++++++++++
Thu Mar 30 17:10:30 2017 > 订单详情
+++++++++++++++++++++++++++++++++++++++++++++++++++++++
...
注
代码仅供学习之用,京东网页不断变化,代码并不一定总是能正常运行。
如果您发现有Bug,Welcome to Pull Request.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].