Code Monkey home page Code Monkey logo

taobaokeapi's Introduction

taobaokeApi

Python淘宝客接口支持

  • 所有环境
python3  requests
  • 安装
    pip instatll lx_taobaoke
  • 使用方法
# -*-coding: utf-8 -*-
from lx_taobaoke import ToaBaoKeApi

app_tions = [
    # 第一个
    {
        'appkey': 23565473,
        'secret': '781bec497f0a825ddfa4be2f91654318'
    },
    # 第二个
]
# 佣金授权码信息,可添加多个,随机使用
commission_tions =  [
    {
        'adzone_id': '80502883',
        'site_id': '24092591',
        'session': '700001007331678779fc503b567d7ff4afef59135766e1001f5ceb5c8ec9eed7d9e88ba2891351154',
    },
]
"""
item_id : 淘宝ID
activity_id: 优惠券ID
"""
taobaoke = ToaBaoKeApi(app_tions, commission_tions)
# 获取优惠券信息
result = taobaoke.get_coupon_api(item_id=589351083986, activity_id="287beee1c8eb4432a36aecfdf4ed3e7a")
# 获取佣金信息
# result = taobaoke.get_commission_api(item_id=589351083986)
# 获取商品类别信息
# result = taobaoke.get_category_api(item_id=560376846858)
print(result)

taobaokeapi's People

Stargazers

 avatar

Watchers

James Cloos avatar lxshen avatar

Forkers

zhangfeng0408

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.