Coder Social home page Coder Social logo

taobao_auto_buy's Introduction

HitCount

taobao_auto_buy

淘宝定时抢购

更新

[2020 03/03] : 更新V2版本, 解决滑块验证错误问题, 优化代码, 优化抢购速度, 需要使用chrome(版本78以下) V2链接

搭建环境

  • python3
    • selenium
  • chrome
    • chromedriver

使用说明

  1. clone 项目 或者 直接下载zip
[email protected]:Jesseslco/taobao_auto_buy.git
  1. 安装python3

  2. 安装依赖package python3 -m pip install -r requirements.txt Or pip3 install -r requirements.txt

  3. 下载chrome(版本79或者最新) chromedriver(需要匹配chrome版本)

    内置chrome79的chromedriver, 如果你的chrome是79, 无需手动下载chromedriver

    版本不是79的, 需要手动下载对应版本的chromedriver, 下载的chromedriver需要按照以下方式命名, 并把命名后的文件放入drivers/

    Windows

    chromedriver_win.exe    
    

    Linux

    chromedriver_linux
    

    Mac

    chromedriver_mac
    
  4. 命令行带参数运行 或者 修改config/config.json后运行

    • 命令行参数运行 python3 manage.py -u [target_url] -t [buy_time]
    • 修改config/config.json 修改 config/config.json 然后命令行运行 python3 manage.py

config.json

{
    "target_url": "https://detail.tmall.com/item.htm?spm=a230r.1.14.20.149872d0N6ViJZ&id=598418850958&ns=1&abbucket=9",
    "buy_time": "2020-02-08 03:42:00 1"
}

target_url是商品链接

buy_time是抢购时间, 需要严格按照示样格式填写

支持网站

  • 淘宝/天猫
  • 天猫超市

注意事项

  • 建议在抢购时间前10分钟, 启动脚本, 否则时间过长会登陆超时.
  • 仅供学习交流使用, 勿商业用途
  • 有任何使用问题, 请raise a issue

Thanks for Jetbran supports for this project

taobao_auto_buy's People

Contributors

jesseslco avatar jkkwjk avatar wasabiegg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

taobao_auto_buy's Issues

now

现在能用吗

运行报错 chrome版本80.0 是需要指定chromedivre路径和名字吗?

Traceback (most recent call last):
File "manage.py", line 36, in
main()
File "manage.py", line 32, in main
taobao = Taobao(**config)
File "/Users/chinkaysin/taobao_auto_buy/bin/tb.py", line 6, in init
super().init(target_url, buy_time)
File "/Users/chinkaysin/taobao_auto_buy/lib/base.py", line 28, in init
self._browser = self._config_browser()
File "/Users/chinkaysin/taobao_auto_buy/lib/base.py", line 90, in _config_browser
driver_dir = self._get_driver_dir()
File "/Users/chinkaysin/taobao_auto_buy/lib/base.py", line 80, in _get_driver_dir
return os.path.join((driver_dir, "chromedriver_mac"))
File "/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/posixpath.py", line 80, in join
a = os.fspath(a)
TypeError: expected str, bytes or os.PathLike object, not tuple

运行报错:发生异常: ModuleNotFoundError

发生异常: ModuleNotFoundError
No module named 'taobao_auto_buy'
File "D:\Python37\taobao_auto_buy-master\manage.py", line 6, in main
from taobao_auto_buy.bin.tb import Taobao
File "D:\Python37\taobao_auto_buy-master\manage.py", line 22, in
main()

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.