GithubHelp home page GithubHelp logo

taobao_api's Introduction

description

淘宝抢购脚本仅供交流学习使用

登陆逻辑使用了selenium,刷新购物车和下单调用了手机淘宝taobao_api,自动付款也使用了selenium,能自动模拟触摸输入密码付款,接口签名sign生成方法参考get_sign_val。

作用 主要的接口地址(https://h5api.m.taobao.com/h5/)
购物车列表 mtop.trade.query.bag/5.0/?
订单确认页 mtop.trade.order.build.h5/4.0/?
创建订单页 mtop.trade.order.create.h5/4.0/?
├── taobao.py         #第一版通过selenium扫码下单兼容性强。 
├── taobao_web.py     #第二版通过selenium扫码调用接口下单。
└── taobao_api.py     #第三版增加调启支付宝支付二维码下载到本地服务器扫码

using

python3 taobao_api.py 2019-11-05 10:00:00 good_id password user_cookie

同步阿里云时间服务器

0.1秒的重要性。

#一次性设置
sudo sntp -sS ntp.aliyun.com
#永久设置
sudo systemsetup -setnetworktimeserver ntp.aliyun.com
sudo systemsetup -setusingnetworktime on

一些坑

  • 尝试过阿里、腾讯的ECS,好像被taobao通过whois信息给识别了,看来只能本地跑了。
  • 签名算法好像时不时会变,果然个人的力量没有团队的力量强。

taobao_api's People

Contributors

gaoxt avatar

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.