redfox-python-sdk 0.7.1__tar.gz → 0.7.2__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.2}/PKG-INFO +2 -2
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.2}/README.md +1 -1
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.2}/redfox/endpoints/tiktok.py +24 -8
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.2}/redfox_python_sdk.egg-info/PKG-INFO +2 -2
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.2}/setup.py +1 -1
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.2}/redfox/__init__.py +0 -0
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.2}/redfox/client.py +0 -0
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.2}/redfox/endpoints/__init__.py +0 -0
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.2}/redfox/endpoints/ai_search.py +0 -0
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.2}/redfox/endpoints/autohome.py +0 -0
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.2}/redfox/endpoints/baijiahao.py +0 -0
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.2}/redfox/endpoints/bilibili.py +0 -0
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.2}/redfox/endpoints/dongchedi.py +0 -0
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.2}/redfox/endpoints/doubao_image.py +0 -0
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.2}/redfox/endpoints/doubao_video.py +0 -0
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.2}/redfox/endpoints/douyin.py +0 -0
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.2}/redfox/endpoints/gpt_image.py +0 -0
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.2}/redfox/endpoints/hotspot.py +0 -0
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.2}/redfox/endpoints/instagram.py +0 -0
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.2}/redfox/endpoints/kuaishou.py +0 -0
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.2}/redfox/endpoints/tools.py +0 -0
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.2}/redfox/endpoints/toutiao.py +0 -0
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.2}/redfox/endpoints/twitter.py +0 -0
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.2}/redfox/endpoints/wechat.py +0 -0
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.2}/redfox/endpoints/wechat_channels.py +0 -0
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.2}/redfox/endpoints/weibo.py +0 -0
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.2}/redfox/endpoints/xiaohongshu.py +0 -0
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.2}/redfox/endpoints/yiche.py +0 -0
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.2}/redfox/endpoints/youtube.py +0 -0
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.2}/redfox/endpoints/zhihu.py +0 -0
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.2}/redfox/exceptions.py +0 -0
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.2}/redfox_python_sdk.egg-info/SOURCES.txt +0 -0
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.2}/redfox_python_sdk.egg-info/dependency_links.txt +0 -0
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.2}/redfox_python_sdk.egg-info/requires.txt +0 -0
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.2}/redfox_python_sdk.egg-info/top_level.txt +0 -0
- {redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.2}/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.2
|
|
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,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: redfox-python-sdk
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.2
|
|
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.2",
|
|
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
|
|
File without changes
|
{redfox_python_sdk-0.7.1 → redfox_python_sdk-0.7.2}/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.2}/redfox_python_sdk.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|