python taobaoke
Project description
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
lx_taobaoke-0.2-py3-none-any.whl
(31.0 kB
view details)
File details
Details for the file lx_taobaoke-0.2-py3-none-any.whl
.
File metadata
- Download URL: lx_taobaoke-0.2-py3-none-any.whl
- Upload date:
- Size: 31.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.5.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82da07c541a7e76025dc88dff37329d003ad637fcd59e1c64c7cb185f2bd9081 |
|
MD5 | 08d8c96e55826980a1040672b014788b |
|
BLAKE2b-256 | 89a31c059368866b7838ec4390b9503e874e70765b88d96d7f7182d966091418 |