Unofficial SDK for OneBound Taobao API
Project description
OneBound SDK (Python)
轻量级电商与社媒数据采集 SDK,支持 90+ 主流平台。
安装
pip install onebound-sdk
快速开始
环境变量配置(推荐)
export ONEBOUND_KEY=your-key
export ONEBOUND_SECRET=your-secret
或在项目根目录创建 .env 文件:
ONEBOUND_KEY=your-key
ONEBOUND_SECRET=your-secret
使用
from onebound import OneBoundClient
# 方式一:通过环境变量自动读取 key/secret
client = OneBoundClient("taobao")
# 方式二:直接传入 key/secret
client = OneBoundClient("taobao", "your-key", "your-secret")
# 获取商品详情
item = client.taobao_item_get(num_iid="674436494131")
print(item)
# 搜索商品
results = client.taobao_item_search(q="手机")
print(results)
支持的平台
taobao, 1688, jd, pinduoduo, micro, shopee, aliexpress, temu, tglobal, lazada, amazon, ebay, kgcg, alibaba, walgreens, mic, shop, target, wildberries, daraz, mercado, dmm, walmart, jumia, ozon, xiecheng, damai, ftx, youxia, huazhu, dongcheng, xinlimei, klook, vip, mogujie, vancl, alimama, jumei, hc360, huobutou, k3, souhaohuo, taobaoke, kaola, csg, yhd, ymatou, smzdm, yqzwd, ylw, fzw, yiwugo, vvic, suning, dewu, xmz, shihuo, qx, deli, colipu, vipmro, jiancaiwang, huagw, ickey, zkw, china, zggk, schneider, dp123, misumi, jmweb, pbweb, txxw, zhw, xjb, weixin, smallredbook, hksp, shortvideo, ks, bili, tiktok, youtube, ahs, goodfish, wuziw, zhuanzhuan, sqw, tyc, aqc, dangdang, kfz, cnbook, jxsggzy, zblh, cgyzb, bbw, hbw, czw, zxw, anjuke, wbtc, anjiago, beike, yhby, yidaba, ebdoor, mkbl, zqw, 007swz, sole, zhaosw, b2b, jmw, jingcheng
获取 API Key:点击注册
功能特性
- 多域名自动切换(5 个 API 网关,失败自动轮换)
- 错误码拦截(4013/4016 登录失效自动提示)
- 环境变量支持(ONEBOUND_KEY / ONEBOUND_SECRET)
License
MIT
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 Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file onebound_sdk-1.0.0.tar.gz.
File metadata
- Download URL: onebound_sdk-1.0.0.tar.gz
- Upload date:
- Size: 12.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0f91505adf41e6aa9b5ddc81da57352a9ba948c3b0456e751f113399e6600f3d
|
|
| MD5 |
8cf4da0e023353863503e15784e72dd3
|
|
| BLAKE2b-256 |
7c7fb20825cb0d7ef6e7fd6d3f667758c4db1c2f1cf58e2cf375fafdaebfd7e9
|
File details
Details for the file onebound_sdk-1.0.0-py3-none-any.whl.
File metadata
- Download URL: onebound_sdk-1.0.0-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1fd5555e7a6046175401dfb185d5e352329bbb716cb333f8809552356ef2e464
|
|
| MD5 |
e52ef6b0b957ea5e6d61f3b6d1491a85
|
|
| BLAKE2b-256 |
744e67a1dc7ffdaea8aa8368ac77bda1aea624e1a3a90cee5c9f43d10b9115ed
|