china-sourcing-sdk 1.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- china_sourcing_sdk-1.0.0/LICENSE +21 -0
- china_sourcing_sdk-1.0.0/PKG-INFO +93 -0
- china_sourcing_sdk-1.0.0/README.md +69 -0
- china_sourcing_sdk-1.0.0/china_sourcing_sdk/__init__.py +3 -0
- china_sourcing_sdk-1.0.0/china_sourcing_sdk/client.py +37 -0
- china_sourcing_sdk-1.0.0/china_sourcing_sdk.egg-info/PKG-INFO +93 -0
- china_sourcing_sdk-1.0.0/china_sourcing_sdk.egg-info/SOURCES.txt +9 -0
- china_sourcing_sdk-1.0.0/china_sourcing_sdk.egg-info/dependency_links.txt +1 -0
- china_sourcing_sdk-1.0.0/china_sourcing_sdk.egg-info/top_level.txt +1 -0
- china_sourcing_sdk-1.0.0/pyproject.toml +34 -0
- china_sourcing_sdk-1.0.0/setup.cfg +4 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 JiStudio (https://github.com/jistudio-dev)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: china-sourcing-sdk
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Zero-dependency bilingual (EN/ZH) Python SDK for 1688 wholesale, Goofish (Xianyu), AliExpress & Lazada sourcing via Apify.
|
|
5
|
+
Author-email: JiStudio <dev@jistudio.dev>
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://jistudio-dev.github.io/china-sourcing-1688-goofish/
|
|
8
|
+
Project-URL: Repository, https://github.com/jistudio-dev/china-ecommerce-sourcing-sdk
|
|
9
|
+
Project-URL: Documentation, https://jistudio-dev.github.io/china-sourcing-1688-goofish/
|
|
10
|
+
Keywords: 1688,goofish,xianyu,aliexpress,lazada,dropshipping,apify
|
|
11
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
+
Classifier: Topic :: Internet :: WWW/HTTP
|
|
19
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
20
|
+
Requires-Python: >=3.10
|
|
21
|
+
Description-Content-Type: text/markdown
|
|
22
|
+
License-File: LICENSE
|
|
23
|
+
Dynamic: license-file
|
|
24
|
+
|
|
25
|
+
# China & SEA E-Commerce Sourcing SDK — 1688 · Goofish (闲鱼) · AliExpress · Lazada
|
|
26
|
+
|
|
27
|
+
[](https://apify.com/jistudio/1688-wholesale-scraper)
|
|
28
|
+
|
|
29
|
+
Zero-dependency **Python** & **Node.js (ESM)** sourcing SDK + **n8n supplier monitor** unifying 4 high-demand Asian e-commerce data Actors on Apify Cloud:
|
|
30
|
+
|
|
31
|
+
- **1688 Wholesale (阿里巴巴 1688)**: Factory unit prices, MOQ tiers, supplier ratings, and SKU specs — [`jistudio/1688-wholesale-scraper`](https://apify.com/jistudio/1688-wholesale-scraper)
|
|
32
|
+
- **Goofish / Xianyu (闲鱼二手市场)**: Keyword search, item details, seller credit profiles & buyer comments — [`jistudio/goofish-xianyu-scraper`](https://apify.com/jistudio/goofish-xianyu-scraper)
|
|
33
|
+
- **AliExpress Global**: Multi-currency product details, shipping fees, store metrics & reviews — [`jistudio/aliexpress-scraper`](https://apify.com/jistudio/aliexpress-scraper)
|
|
34
|
+
- **Lazada SEA**: Multi-country Southeast Asia catalog & price monitoring — [`jistudio/lazada-scraper`](https://apify.com/jistudio/lazada-scraper)
|
|
35
|
+
|
|
36
|
+
> **中文简介 (Chinese Summary)**: 面向跨境电商选品、供应链比价与闲鱼行情监控的零依赖 Python / Node.js SDK,支持 **1688 批发价与起订量 (MOQ)**、**闲鱼 (Goofish/Xianyu) 搜索与商品详情**、**速卖通 (AliExpress)** 及 **Lazada** 实时结构化 JSON 数据,无需 Cookie 与登录账号。
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## How It Works
|
|
41
|
+
|
|
42
|
+
<p align="center">
|
|
43
|
+
<img src="https://api.apify.com/v2/key-value-stores/0J5jsCbmj4kPfyj6H/records/1688-wholesale-step1-v1.png" width="820" alt="Step 1: Search 1688 / Goofish / AliExpress keywords or URLs"/><br/>
|
|
44
|
+
<img src="https://api.apify.com/v2/key-value-stores/0J5jsCbmj4kPfyj6H/records/step-arrow-down.svg" width="40" alt=""/><br/>
|
|
45
|
+
<img src="https://api.apify.com/v2/key-value-stores/0J5jsCbmj4kPfyj6H/records/1688-wholesale-step2-v1.png" width="820" alt="Step 2: Clean JSON with factory pricing, MOQ & seller ratings"/>
|
|
46
|
+
</p>
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
## Quickstart
|
|
51
|
+
|
|
52
|
+
### 1. Python SDK (Zero Dependencies)
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
export APIFY_TOKEN="YOUR_APIFY_API_TOKEN"
|
|
56
|
+
python examples/compare_suppliers.py
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
```python
|
|
60
|
+
from python.china_sourcing_sdk import ChinaSourcingClient
|
|
61
|
+
|
|
62
|
+
client = ChinaSourcingClient(apify_token="YOUR_APIFY_API_TOKEN")
|
|
63
|
+
|
|
64
|
+
# 1. Search 1688 factory wholesale suppliers
|
|
65
|
+
items_1688 = client.search_1688(keyword="bluetooth earbuds", max_items=5)
|
|
66
|
+
print("1688 suppliers found:", len(items_1688))
|
|
67
|
+
|
|
68
|
+
# 2. Check Goofish (闲鱼) resale market comps
|
|
69
|
+
items_goofish = client.search_goofish(keyword="iPhone 15 Pro", max_items=5)
|
|
70
|
+
print("Goofish listings found:", len(items_goofish))
|
|
71
|
+
|
|
72
|
+
# 3. Search AliExpress global retail benchmark
|
|
73
|
+
items_ae = client.search_aliexpress(keyword="wireless earbuds", max_items=5)
|
|
74
|
+
print("AliExpress listings found:", len(items_ae))
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
### 2. Node.js 18+ (Zero Dependencies)
|
|
78
|
+
|
|
79
|
+
```javascript
|
|
80
|
+
import { ChinaSourcingClient } from "./node/index.mjs";
|
|
81
|
+
|
|
82
|
+
const client = new ChinaSourcingClient(process.env.APIFY_TOKEN);
|
|
83
|
+
const wholesale = await client.search1688({ keyword: "mechanical keyboard", maxItems: 5 });
|
|
84
|
+
console.log("1688 results:", wholesale.length);
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
## JiStudio Ecosystem
|
|
90
|
+
|
|
91
|
+
- **Apify Store**: [1688 Wholesale](https://apify.com/jistudio/1688-wholesale-scraper) · [Goofish / Xianyu](https://apify.com/jistudio/goofish-xianyu-scraper) · [AliExpress](https://apify.com/jistudio/aliexpress-scraper) · [Lazada](https://apify.com/jistudio/lazada-scraper)
|
|
92
|
+
- **GitHub Org**: [github.com/jistudio-dev](https://github.com/jistudio-dev)
|
|
93
|
+
- **License**: MIT — Independent market research & sourcing SDK.
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# China & SEA E-Commerce Sourcing SDK — 1688 · Goofish (闲鱼) · AliExpress · Lazada
|
|
2
|
+
|
|
3
|
+
[](https://apify.com/jistudio/1688-wholesale-scraper)
|
|
4
|
+
|
|
5
|
+
Zero-dependency **Python** & **Node.js (ESM)** sourcing SDK + **n8n supplier monitor** unifying 4 high-demand Asian e-commerce data Actors on Apify Cloud:
|
|
6
|
+
|
|
7
|
+
- **1688 Wholesale (阿里巴巴 1688)**: Factory unit prices, MOQ tiers, supplier ratings, and SKU specs — [`jistudio/1688-wholesale-scraper`](https://apify.com/jistudio/1688-wholesale-scraper)
|
|
8
|
+
- **Goofish / Xianyu (闲鱼二手市场)**: Keyword search, item details, seller credit profiles & buyer comments — [`jistudio/goofish-xianyu-scraper`](https://apify.com/jistudio/goofish-xianyu-scraper)
|
|
9
|
+
- **AliExpress Global**: Multi-currency product details, shipping fees, store metrics & reviews — [`jistudio/aliexpress-scraper`](https://apify.com/jistudio/aliexpress-scraper)
|
|
10
|
+
- **Lazada SEA**: Multi-country Southeast Asia catalog & price monitoring — [`jistudio/lazada-scraper`](https://apify.com/jistudio/lazada-scraper)
|
|
11
|
+
|
|
12
|
+
> **中文简介 (Chinese Summary)**: 面向跨境电商选品、供应链比价与闲鱼行情监控的零依赖 Python / Node.js SDK,支持 **1688 批发价与起订量 (MOQ)**、**闲鱼 (Goofish/Xianyu) 搜索与商品详情**、**速卖通 (AliExpress)** 及 **Lazada** 实时结构化 JSON 数据,无需 Cookie 与登录账号。
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
## How It Works
|
|
17
|
+
|
|
18
|
+
<p align="center">
|
|
19
|
+
<img src="https://api.apify.com/v2/key-value-stores/0J5jsCbmj4kPfyj6H/records/1688-wholesale-step1-v1.png" width="820" alt="Step 1: Search 1688 / Goofish / AliExpress keywords or URLs"/><br/>
|
|
20
|
+
<img src="https://api.apify.com/v2/key-value-stores/0J5jsCbmj4kPfyj6H/records/step-arrow-down.svg" width="40" alt=""/><br/>
|
|
21
|
+
<img src="https://api.apify.com/v2/key-value-stores/0J5jsCbmj4kPfyj6H/records/1688-wholesale-step2-v1.png" width="820" alt="Step 2: Clean JSON with factory pricing, MOQ & seller ratings"/>
|
|
22
|
+
</p>
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## Quickstart
|
|
27
|
+
|
|
28
|
+
### 1. Python SDK (Zero Dependencies)
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
export APIFY_TOKEN="YOUR_APIFY_API_TOKEN"
|
|
32
|
+
python examples/compare_suppliers.py
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
```python
|
|
36
|
+
from python.china_sourcing_sdk import ChinaSourcingClient
|
|
37
|
+
|
|
38
|
+
client = ChinaSourcingClient(apify_token="YOUR_APIFY_API_TOKEN")
|
|
39
|
+
|
|
40
|
+
# 1. Search 1688 factory wholesale suppliers
|
|
41
|
+
items_1688 = client.search_1688(keyword="bluetooth earbuds", max_items=5)
|
|
42
|
+
print("1688 suppliers found:", len(items_1688))
|
|
43
|
+
|
|
44
|
+
# 2. Check Goofish (闲鱼) resale market comps
|
|
45
|
+
items_goofish = client.search_goofish(keyword="iPhone 15 Pro", max_items=5)
|
|
46
|
+
print("Goofish listings found:", len(items_goofish))
|
|
47
|
+
|
|
48
|
+
# 3. Search AliExpress global retail benchmark
|
|
49
|
+
items_ae = client.search_aliexpress(keyword="wireless earbuds", max_items=5)
|
|
50
|
+
print("AliExpress listings found:", len(items_ae))
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### 2. Node.js 18+ (Zero Dependencies)
|
|
54
|
+
|
|
55
|
+
```javascript
|
|
56
|
+
import { ChinaSourcingClient } from "./node/index.mjs";
|
|
57
|
+
|
|
58
|
+
const client = new ChinaSourcingClient(process.env.APIFY_TOKEN);
|
|
59
|
+
const wholesale = await client.search1688({ keyword: "mechanical keyboard", maxItems: 5 });
|
|
60
|
+
console.log("1688 results:", wholesale.length);
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
## JiStudio Ecosystem
|
|
66
|
+
|
|
67
|
+
- **Apify Store**: [1688 Wholesale](https://apify.com/jistudio/1688-wholesale-scraper) · [Goofish / Xianyu](https://apify.com/jistudio/goofish-xianyu-scraper) · [AliExpress](https://apify.com/jistudio/aliexpress-scraper) · [Lazada](https://apify.com/jistudio/lazada-scraper)
|
|
68
|
+
- **GitHub Org**: [github.com/jistudio-dev](https://github.com/jistudio-dev)
|
|
69
|
+
- **License**: MIT — Independent market research & sourcing SDK.
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"""Zero-dependency Python SDK for 1688, Goofish (Xianyu), AliExpress & Lazada via Apify Cloud."""
|
|
2
|
+
import json
|
|
3
|
+
import os
|
|
4
|
+
import urllib.parse
|
|
5
|
+
import urllib.request
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ChinaSourcingClient:
|
|
9
|
+
def __init__(self, apify_token: str | None = None, timeout: int = 90):
|
|
10
|
+
self.token = apify_token or os.environ.get("APIFY_TOKEN", "")
|
|
11
|
+
if not self.token:
|
|
12
|
+
raise ValueError("Provide apify_token or set APIFY_TOKEN environment variable.")
|
|
13
|
+
self.timeout = timeout
|
|
14
|
+
|
|
15
|
+
def _run_actor(self, actor_id: str, run_input: dict) -> list[dict]:
|
|
16
|
+
qs = urllib.parse.urlencode({"token": self.token})
|
|
17
|
+
url = f"https://api.apify.com/v2/acts/{actor_id}/run-sync-get-dataset-items?{qs}"
|
|
18
|
+
req = urllib.request.Request(
|
|
19
|
+
url,
|
|
20
|
+
data=json.dumps(run_input).encode("utf-8"),
|
|
21
|
+
headers={"Content-Type": "application/json", "Accept": "application/json"},
|
|
22
|
+
method="POST",
|
|
23
|
+
)
|
|
24
|
+
with urllib.request.urlopen(req, timeout=self.timeout) as resp:
|
|
25
|
+
return json.loads(resp.read().decode("utf-8"))
|
|
26
|
+
|
|
27
|
+
def search_1688(self, keyword: str, max_items: int = 10) -> list[dict]:
|
|
28
|
+
return self._run_actor("jistudio~1688-wholesale-scraper", {"mode": "search", "keyword": keyword, "maxItems": max_items})
|
|
29
|
+
|
|
30
|
+
def search_goofish(self, keyword: str, max_items: int = 10) -> list[dict]:
|
|
31
|
+
return self._run_actor("jistudio~goofish-xianyu-scraper", {"mode": "search", "keyword": keyword, "maxItems": max_items})
|
|
32
|
+
|
|
33
|
+
def search_aliexpress(self, keyword: str, max_items: int = 10, country: str = "US", currency: str = "USD") -> list[dict]:
|
|
34
|
+
return self._run_actor("jistudio~aliexpress-scraper", {"mode": "search", "keyword": keyword, "maxItems": max_items, "shipToCountry": country, "currency": currency})
|
|
35
|
+
|
|
36
|
+
def search_lazada(self, keyword: str, country: str = "vn", max_items: int = 10) -> list[dict]:
|
|
37
|
+
return self._run_actor("jistudio~lazada-scraper", {"mode": "search", "keyword": keyword, "country": country, "maxItems": max_items})
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: china-sourcing-sdk
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Zero-dependency bilingual (EN/ZH) Python SDK for 1688 wholesale, Goofish (Xianyu), AliExpress & Lazada sourcing via Apify.
|
|
5
|
+
Author-email: JiStudio <dev@jistudio.dev>
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://jistudio-dev.github.io/china-sourcing-1688-goofish/
|
|
8
|
+
Project-URL: Repository, https://github.com/jistudio-dev/china-ecommerce-sourcing-sdk
|
|
9
|
+
Project-URL: Documentation, https://jistudio-dev.github.io/china-sourcing-1688-goofish/
|
|
10
|
+
Keywords: 1688,goofish,xianyu,aliexpress,lazada,dropshipping,apify
|
|
11
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
+
Classifier: Topic :: Internet :: WWW/HTTP
|
|
19
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
20
|
+
Requires-Python: >=3.10
|
|
21
|
+
Description-Content-Type: text/markdown
|
|
22
|
+
License-File: LICENSE
|
|
23
|
+
Dynamic: license-file
|
|
24
|
+
|
|
25
|
+
# China & SEA E-Commerce Sourcing SDK — 1688 · Goofish (闲鱼) · AliExpress · Lazada
|
|
26
|
+
|
|
27
|
+
[](https://apify.com/jistudio/1688-wholesale-scraper)
|
|
28
|
+
|
|
29
|
+
Zero-dependency **Python** & **Node.js (ESM)** sourcing SDK + **n8n supplier monitor** unifying 4 high-demand Asian e-commerce data Actors on Apify Cloud:
|
|
30
|
+
|
|
31
|
+
- **1688 Wholesale (阿里巴巴 1688)**: Factory unit prices, MOQ tiers, supplier ratings, and SKU specs — [`jistudio/1688-wholesale-scraper`](https://apify.com/jistudio/1688-wholesale-scraper)
|
|
32
|
+
- **Goofish / Xianyu (闲鱼二手市场)**: Keyword search, item details, seller credit profiles & buyer comments — [`jistudio/goofish-xianyu-scraper`](https://apify.com/jistudio/goofish-xianyu-scraper)
|
|
33
|
+
- **AliExpress Global**: Multi-currency product details, shipping fees, store metrics & reviews — [`jistudio/aliexpress-scraper`](https://apify.com/jistudio/aliexpress-scraper)
|
|
34
|
+
- **Lazada SEA**: Multi-country Southeast Asia catalog & price monitoring — [`jistudio/lazada-scraper`](https://apify.com/jistudio/lazada-scraper)
|
|
35
|
+
|
|
36
|
+
> **中文简介 (Chinese Summary)**: 面向跨境电商选品、供应链比价与闲鱼行情监控的零依赖 Python / Node.js SDK,支持 **1688 批发价与起订量 (MOQ)**、**闲鱼 (Goofish/Xianyu) 搜索与商品详情**、**速卖通 (AliExpress)** 及 **Lazada** 实时结构化 JSON 数据,无需 Cookie 与登录账号。
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## How It Works
|
|
41
|
+
|
|
42
|
+
<p align="center">
|
|
43
|
+
<img src="https://api.apify.com/v2/key-value-stores/0J5jsCbmj4kPfyj6H/records/1688-wholesale-step1-v1.png" width="820" alt="Step 1: Search 1688 / Goofish / AliExpress keywords or URLs"/><br/>
|
|
44
|
+
<img src="https://api.apify.com/v2/key-value-stores/0J5jsCbmj4kPfyj6H/records/step-arrow-down.svg" width="40" alt=""/><br/>
|
|
45
|
+
<img src="https://api.apify.com/v2/key-value-stores/0J5jsCbmj4kPfyj6H/records/1688-wholesale-step2-v1.png" width="820" alt="Step 2: Clean JSON with factory pricing, MOQ & seller ratings"/>
|
|
46
|
+
</p>
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
## Quickstart
|
|
51
|
+
|
|
52
|
+
### 1. Python SDK (Zero Dependencies)
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
export APIFY_TOKEN="YOUR_APIFY_API_TOKEN"
|
|
56
|
+
python examples/compare_suppliers.py
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
```python
|
|
60
|
+
from python.china_sourcing_sdk import ChinaSourcingClient
|
|
61
|
+
|
|
62
|
+
client = ChinaSourcingClient(apify_token="YOUR_APIFY_API_TOKEN")
|
|
63
|
+
|
|
64
|
+
# 1. Search 1688 factory wholesale suppliers
|
|
65
|
+
items_1688 = client.search_1688(keyword="bluetooth earbuds", max_items=5)
|
|
66
|
+
print("1688 suppliers found:", len(items_1688))
|
|
67
|
+
|
|
68
|
+
# 2. Check Goofish (闲鱼) resale market comps
|
|
69
|
+
items_goofish = client.search_goofish(keyword="iPhone 15 Pro", max_items=5)
|
|
70
|
+
print("Goofish listings found:", len(items_goofish))
|
|
71
|
+
|
|
72
|
+
# 3. Search AliExpress global retail benchmark
|
|
73
|
+
items_ae = client.search_aliexpress(keyword="wireless earbuds", max_items=5)
|
|
74
|
+
print("AliExpress listings found:", len(items_ae))
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
### 2. Node.js 18+ (Zero Dependencies)
|
|
78
|
+
|
|
79
|
+
```javascript
|
|
80
|
+
import { ChinaSourcingClient } from "./node/index.mjs";
|
|
81
|
+
|
|
82
|
+
const client = new ChinaSourcingClient(process.env.APIFY_TOKEN);
|
|
83
|
+
const wholesale = await client.search1688({ keyword: "mechanical keyboard", maxItems: 5 });
|
|
84
|
+
console.log("1688 results:", wholesale.length);
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
## JiStudio Ecosystem
|
|
90
|
+
|
|
91
|
+
- **Apify Store**: [1688 Wholesale](https://apify.com/jistudio/1688-wholesale-scraper) · [Goofish / Xianyu](https://apify.com/jistudio/goofish-xianyu-scraper) · [AliExpress](https://apify.com/jistudio/aliexpress-scraper) · [Lazada](https://apify.com/jistudio/lazada-scraper)
|
|
92
|
+
- **GitHub Org**: [github.com/jistudio-dev](https://github.com/jistudio-dev)
|
|
93
|
+
- **License**: MIT — Independent market research & sourcing SDK.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
LICENSE
|
|
2
|
+
README.md
|
|
3
|
+
pyproject.toml
|
|
4
|
+
china_sourcing_sdk/__init__.py
|
|
5
|
+
china_sourcing_sdk/client.py
|
|
6
|
+
china_sourcing_sdk.egg-info/PKG-INFO
|
|
7
|
+
china_sourcing_sdk.egg-info/SOURCES.txt
|
|
8
|
+
china_sourcing_sdk.egg-info/dependency_links.txt
|
|
9
|
+
china_sourcing_sdk.egg-info/top_level.txt
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
china_sourcing_sdk
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=68"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "china-sourcing-sdk"
|
|
7
|
+
version = "1.0.0"
|
|
8
|
+
description = "Zero-dependency bilingual (EN/ZH) Python SDK for 1688 wholesale, Goofish (Xianyu), AliExpress & Lazada sourcing via Apify."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
license = {text = "MIT"}
|
|
11
|
+
requires-python = ">=3.10"
|
|
12
|
+
authors = [{name = "JiStudio", email = "dev@jistudio.dev"}]
|
|
13
|
+
keywords = ["1688", "goofish", "xianyu", "aliexpress", "lazada", "dropshipping", "apify"]
|
|
14
|
+
classifiers = [
|
|
15
|
+
"Development Status :: 5 - Production/Stable",
|
|
16
|
+
"Intended Audience :: Developers",
|
|
17
|
+
"License :: OSI Approved :: MIT License",
|
|
18
|
+
"Programming Language :: Python :: 3",
|
|
19
|
+
"Programming Language :: Python :: 3.10",
|
|
20
|
+
"Programming Language :: Python :: 3.11",
|
|
21
|
+
"Programming Language :: Python :: 3.12",
|
|
22
|
+
"Topic :: Internet :: WWW/HTTP",
|
|
23
|
+
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
24
|
+
]
|
|
25
|
+
dependencies = []
|
|
26
|
+
|
|
27
|
+
[project.urls]
|
|
28
|
+
Homepage = "https://jistudio-dev.github.io/china-sourcing-1688-goofish/"
|
|
29
|
+
Repository = "https://github.com/jistudio-dev/china-ecommerce-sourcing-sdk"
|
|
30
|
+
Documentation = "https://jistudio-dev.github.io/china-sourcing-1688-goofish/"
|
|
31
|
+
|
|
32
|
+
[tool.setuptools.packages.find]
|
|
33
|
+
where = ["."]
|
|
34
|
+
include = ["china_sourcing_sdk*"]
|