redfox-python-sdk 0.7.1__tar.gz → 0.7.3__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.
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.3}/PKG-INFO +2 -2
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.3}/README.md +1 -1
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.3}/redfox/endpoints/tiktok.py +24 -8
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.3}/redfox/endpoints/xiaohongshu.py +6 -4
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.3}/redfox_python_sdk.egg-info/PKG-INFO +2 -2
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.3}/setup.py +1 -1
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.3}/redfox/__init__.py +0 -0
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.3}/redfox/client.py +0 -0
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.3}/redfox/endpoints/__init__.py +0 -0
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.3}/redfox/endpoints/ai_search.py +0 -0
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.3}/redfox/endpoints/autohome.py +0 -0
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.3}/redfox/endpoints/baijiahao.py +0 -0
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.3}/redfox/endpoints/bilibili.py +0 -0
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.3}/redfox/endpoints/dongchedi.py +0 -0
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.3}/redfox/endpoints/doubao_image.py +0 -0
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.3}/redfox/endpoints/doubao_video.py +0 -0
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.3}/redfox/endpoints/douyin.py +0 -0
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.3}/redfox/endpoints/gpt_image.py +0 -0
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.3}/redfox/endpoints/hotspot.py +0 -0
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.3}/redfox/endpoints/instagram.py +0 -0
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.3}/redfox/endpoints/kuaishou.py +0 -0
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.3}/redfox/endpoints/tools.py +0 -0
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.3}/redfox/endpoints/toutiao.py +0 -0
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.3}/redfox/endpoints/twitter.py +0 -0
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.3}/redfox/endpoints/wechat.py +0 -0
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.3}/redfox/endpoints/wechat_channels.py +0 -0
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.3}/redfox/endpoints/weibo.py +0 -0
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.3}/redfox/endpoints/yiche.py +0 -0
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.3}/redfox/endpoints/youtube.py +0 -0
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.3}/redfox/endpoints/zhihu.py +0 -0
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.3}/redfox/exceptions.py +0 -0
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.3}/redfox_python_sdk.egg-info/SOURCES.txt +0 -0
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.3}/redfox_python_sdk.egg-info/dependency_links.txt +0 -0
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.3}/redfox_python_sdk.egg-info/requires.txt +0 -0
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.3}/redfox_python_sdk.egg-info/top_level.txt +0 -0
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.3}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: redfox-python-sdk
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.3
|
|
4
4
|
Summary: RedFox 红狐数据平台 Python SDK — 同步+异步双客户端,自动重试,零配置
|
|
5
5
|
Home-page: https://redfox.hk
|
|
6
6
|
Author: RedFox
|
|
@@ -383,7 +383,7 @@ result = client.kuaishou.transcript_result(task_id=task["taskId"])
|
|
|
383
383
|
|
|
384
384
|
```python
|
|
385
385
|
# 搜索用户
|
|
386
|
-
client.tiktok.search_users(keyword="tech",
|
|
386
|
+
client.tiktok.search_users(keyword="tech", offset="0", count="20")
|
|
387
387
|
|
|
388
388
|
# 搜索视频
|
|
389
389
|
client.tiktok.search_videos(keyword="AI", count="20", sort_type="0", region="US")
|
|
@@ -359,7 +359,7 @@ result = client.kuaishou.transcript_result(task_id=task["taskId"])
|
|
|
359
359
|
|
|
360
360
|
```python
|
|
361
361
|
# 搜索用户
|
|
362
|
-
client.tiktok.search_users(keyword="tech",
|
|
362
|
+
client.tiktok.search_users(keyword="tech", offset="0", count="20")
|
|
363
363
|
|
|
364
364
|
# 搜索视频
|
|
365
365
|
client.tiktok.search_videos(keyword="AI", count="20", sort_type="0", region="US")
|
|
@@ -16,22 +16,38 @@ class TikTokAPI:
|
|
|
16
16
|
def search_users(
|
|
17
17
|
self,
|
|
18
18
|
keyword: str,
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
offset: str = "0",
|
|
20
|
+
count: str = "20",
|
|
21
|
+
follower_count_filter: int = None,
|
|
22
|
+
profile_type_filter: int = None,
|
|
23
|
+
other_pref_filter: int = None,
|
|
21
24
|
source: str = "搜索 TikTok 账号-SDK",
|
|
22
25
|
) -> dict:
|
|
23
26
|
"""
|
|
24
27
|
TikTok 关键词搜索账号
|
|
25
28
|
|
|
26
29
|
:param keyword: 搜索关键词(必填)
|
|
27
|
-
:param
|
|
28
|
-
:param
|
|
30
|
+
:param offset: 偏移量,从 0 开始,翻页 +count
|
|
31
|
+
:param count: 每页数量,默认 20
|
|
32
|
+
:param follower_count_filter: 粉丝数筛选:1=0~1K,2=1K~10K,3=10K~100K,4=100K 以上,不传不限制
|
|
33
|
+
:param profile_type_filter: 账号类型筛选:1=认证用户,不传不限制
|
|
34
|
+
:param other_pref_filter: 其他偏好:1=按用户名相关性,不传不限制
|
|
29
35
|
:return: 搜索结果字典,包含 cursor/hasMore/userList
|
|
30
36
|
"""
|
|
31
|
-
data: Dict[str, Any] = {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
37
|
+
data: Dict[str, Any] = {
|
|
38
|
+
"keyword": keyword,
|
|
39
|
+
"offset": offset,
|
|
40
|
+
"count": count,
|
|
41
|
+
}
|
|
42
|
+
if follower_count_filter is not None:
|
|
43
|
+
data["followerCountFilter"] = follower_count_filter
|
|
44
|
+
if profile_type_filter is not None:
|
|
45
|
+
data["profileTypeFilter"] = profile_type_filter
|
|
46
|
+
if other_pref_filter is not None:
|
|
47
|
+
data["otherPrefFilter"] = other_pref_filter
|
|
48
|
+
return self._client.post(
|
|
49
|
+
"/story/api/tiktok/ability/searchUser", data=data, source=source
|
|
50
|
+
)
|
|
35
51
|
|
|
36
52
|
def search_videos(
|
|
37
53
|
self,
|
|
@@ -304,13 +304,15 @@ class XiaohongshuAPI:
|
|
|
304
304
|
"""
|
|
305
305
|
小红书黑马爆文榜
|
|
306
306
|
|
|
307
|
-
:param category:
|
|
308
|
-
|
|
309
|
-
:
|
|
307
|
+
:param category: 分类(必填),取值如 综合全部、出行代步、医疗保健、
|
|
308
|
+
时尚穿搭、美味佳肴 等中文分类名
|
|
309
|
+
:param start_date: 榜单日期,格式 yyyy-MM-dd(必填),最长为最近 30 天;
|
|
310
|
+
后端字段为 rankDate
|
|
311
|
+
:return: 黑马爆文榜列表
|
|
310
312
|
"""
|
|
311
313
|
return self._client.post(
|
|
312
314
|
"/story/api/cozeSkill/getLowPowderExplosiveArticle",
|
|
313
|
-
data={"category": category, "
|
|
315
|
+
data={"category": category, "rankDate": start_date},
|
|
314
316
|
source=source,
|
|
315
317
|
)
|
|
316
318
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: redfox-python-sdk
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.3
|
|
4
4
|
Summary: RedFox 红狐数据平台 Python SDK — 同步+异步双客户端,自动重试,零配置
|
|
5
5
|
Home-page: https://redfox.hk
|
|
6
6
|
Author: RedFox
|
|
@@ -383,7 +383,7 @@ result = client.kuaishou.transcript_result(task_id=task["taskId"])
|
|
|
383
383
|
|
|
384
384
|
```python
|
|
385
385
|
# 搜索用户
|
|
386
|
-
client.tiktok.search_users(keyword="tech",
|
|
386
|
+
client.tiktok.search_users(keyword="tech", offset="0", count="20")
|
|
387
387
|
|
|
388
388
|
# 搜索视频
|
|
389
389
|
client.tiktok.search_videos(keyword="AI", count="20", sort_type="0", region="US")
|
|
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
|
|
2
2
|
|
|
3
3
|
setup(
|
|
4
4
|
name="redfox-python-sdk",
|
|
5
|
-
version="0.7.
|
|
5
|
+
version="0.7.3",
|
|
6
6
|
description="RedFox 红狐数据平台 Python SDK — 同步+异步双客户端,自动重试,零配置",
|
|
7
7
|
long_description=open("README.md", encoding="utf-8").read(),
|
|
8
8
|
long_description_content_type="text/markdown",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.3}/redfox_python_sdk.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
{redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.3}/redfox_python_sdk.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|