redfox-python-sdk 0.6.0__tar.gz → 0.7.1__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.6.0 → redfox_python_sdk-0.7.1}/PKG-INFO +2 -2
- {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/README.md +1 -1
- {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/redfox/__init__.py +1 -1
- {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/xiaohongshu.py +3 -3
- {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/youtube.py +13 -23
- {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/redfox_python_sdk.egg-info/PKG-INFO +2 -2
- {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/setup.py +1 -1
- {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/redfox/client.py +0 -0
- {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/__init__.py +0 -0
- {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/ai_search.py +0 -0
- {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/autohome.py +0 -0
- {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/baijiahao.py +0 -0
- {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/bilibili.py +0 -0
- {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/dongchedi.py +0 -0
- {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/doubao_image.py +0 -0
- {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/doubao_video.py +0 -0
- {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/douyin.py +0 -0
- {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/gpt_image.py +0 -0
- {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/hotspot.py +0 -0
- {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/instagram.py +0 -0
- {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/kuaishou.py +0 -0
- {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/tiktok.py +0 -0
- {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/tools.py +0 -0
- {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/toutiao.py +0 -0
- {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/twitter.py +0 -0
- {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/wechat.py +0 -0
- {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/wechat_channels.py +0 -0
- {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/weibo.py +0 -0
- {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/yiche.py +0 -0
- {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/zhihu.py +0 -0
- {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/redfox/exceptions.py +0 -0
- {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/redfox_python_sdk.egg-info/SOURCES.txt +0 -0
- {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/redfox_python_sdk.egg-info/dependency_links.txt +0 -0
- {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/redfox_python_sdk.egg-info/requires.txt +0 -0
- {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/redfox_python_sdk.egg-info/top_level.txt +0 -0
- {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: redfox-python-sdk
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.7.1
|
|
4
4
|
Summary: RedFox 红狐数据平台 Python SDK — 同步+异步双客户端,自动重试,零配置
|
|
5
5
|
Home-page: https://redfox.hk
|
|
6
6
|
Author: RedFox
|
|
@@ -241,7 +241,7 @@ client.xiaohongshu.get_daily_hot_rank(rank_date="2026-08-20", category="综合
|
|
|
241
241
|
client.xiaohongshu.get_weekly_hot_rank(rank_date="2026-08-20", category="综合全部")
|
|
242
242
|
client.xiaohongshu.get_hot_accounts(date_type=1, rank_date="2026-08-20", type="综合全部")
|
|
243
243
|
client.xiaohongshu.search_hot_notes(keyword="穿搭", start_date="2026-08-01", end_date="2026-08-20")
|
|
244
|
-
client.xiaohongshu.get_dark_horse_notes(
|
|
244
|
+
client.xiaohongshu.get_dark_horse_notes(category="美妆", start_date="2026-08-01")
|
|
245
245
|
|
|
246
246
|
# ─── 视频提文案 ───
|
|
247
247
|
task = client.xiaohongshu.transcript_submit(url="https://www.xiaohongshu.com/explore/xxx")
|
|
@@ -217,7 +217,7 @@ client.xiaohongshu.get_daily_hot_rank(rank_date="2026-08-20", category="综合
|
|
|
217
217
|
client.xiaohongshu.get_weekly_hot_rank(rank_date="2026-08-20", category="综合全部")
|
|
218
218
|
client.xiaohongshu.get_hot_accounts(date_type=1, rank_date="2026-08-20", type="综合全部")
|
|
219
219
|
client.xiaohongshu.search_hot_notes(keyword="穿搭", start_date="2026-08-01", end_date="2026-08-20")
|
|
220
|
-
client.xiaohongshu.get_dark_horse_notes(
|
|
220
|
+
client.xiaohongshu.get_dark_horse_notes(category="美妆", start_date="2026-08-01")
|
|
221
221
|
|
|
222
222
|
# ─── 视频提文案 ───
|
|
223
223
|
task = client.xiaohongshu.transcript_submit(url="https://www.xiaohongshu.com/explore/xxx")
|
|
@@ -300,17 +300,17 @@ class XiaohongshuAPI:
|
|
|
300
300
|
data["endDate"] = end_date
|
|
301
301
|
return self._client.post("/story/api/xhs/search/search", data=data, source=source)
|
|
302
302
|
|
|
303
|
-
def get_dark_horse_notes(self,
|
|
303
|
+
def get_dark_horse_notes(self, category: str, start_date: str, source: str = "小红书黑马爆文榜-SDK") -> dict:
|
|
304
304
|
"""
|
|
305
305
|
小红书黑马爆文榜
|
|
306
306
|
|
|
307
|
-
:param
|
|
307
|
+
:param category: 分类(必填)
|
|
308
308
|
:param start_date: 开始日期,格式 yyyy-MM-dd(必填),最长为最近 30 天,默认 30 天前
|
|
309
309
|
:return: 黑马爆文榜字典
|
|
310
310
|
"""
|
|
311
311
|
return self._client.post(
|
|
312
312
|
"/story/api/cozeSkill/getLowPowderExplosiveArticle",
|
|
313
|
-
data={"
|
|
313
|
+
data={"category": category, "startDate": start_date},
|
|
314
314
|
source=source,
|
|
315
315
|
)
|
|
316
316
|
|
|
@@ -75,33 +75,23 @@ class YouTubeAPI:
|
|
|
75
75
|
def get_transcript(
|
|
76
76
|
self,
|
|
77
77
|
video_url: str,
|
|
78
|
-
format: str = None,
|
|
79
|
-
include_timestamp: bool = None,
|
|
80
|
-
send_metadata: bool = None,
|
|
81
|
-
language: str = None,
|
|
82
78
|
source: str = "提取 YouTube 视频字幕/文案-SDK",
|
|
83
79
|
) -> dict:
|
|
84
80
|
"""
|
|
85
|
-
YouTube
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
:param
|
|
91
|
-
|
|
92
|
-
:
|
|
93
|
-
:return: 文案提取结果字典
|
|
81
|
+
YouTube 视频字幕提取
|
|
82
|
+
|
|
83
|
+
返回视频信息(标题、时长、发布时间、封面、描述)及各语言、
|
|
84
|
+
各格式(srt/vtt/ttml/json3)的字幕下载地址,含人工字幕与自动生成字幕。
|
|
85
|
+
|
|
86
|
+
:param video_url: YouTube 视频链接(必填),
|
|
87
|
+
如 "https://www.youtube.com/watch?v=jNQXAC9IVRw"
|
|
88
|
+
:return: 字幕提取结果字典,包含 subtitles 字幕轨道列表
|
|
94
89
|
"""
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
data
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
if send_metadata is not None:
|
|
101
|
-
data["sendMetadata"] = send_metadata
|
|
102
|
-
if language is not None:
|
|
103
|
-
data["language"] = language
|
|
104
|
-
return self._client.post("/story/api/youtube/transcript", data=data, source=source)
|
|
90
|
+
return self._client.post(
|
|
91
|
+
"/story/api/parseWork/videoSubtitle/youtube",
|
|
92
|
+
data={"url": video_url},
|
|
93
|
+
source=source,
|
|
94
|
+
)
|
|
105
95
|
|
|
106
96
|
def get_info(self, video_url: str, source: str = "获取 YouTube 视频字幕详情-SDK") -> dict:
|
|
107
97
|
"""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: redfox-python-sdk
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.7.1
|
|
4
4
|
Summary: RedFox 红狐数据平台 Python SDK — 同步+异步双客户端,自动重试,零配置
|
|
5
5
|
Home-page: https://redfox.hk
|
|
6
6
|
Author: RedFox
|
|
@@ -241,7 +241,7 @@ client.xiaohongshu.get_daily_hot_rank(rank_date="2026-08-20", category="综合
|
|
|
241
241
|
client.xiaohongshu.get_weekly_hot_rank(rank_date="2026-08-20", category="综合全部")
|
|
242
242
|
client.xiaohongshu.get_hot_accounts(date_type=1, rank_date="2026-08-20", type="综合全部")
|
|
243
243
|
client.xiaohongshu.search_hot_notes(keyword="穿搭", start_date="2026-08-01", end_date="2026-08-20")
|
|
244
|
-
client.xiaohongshu.get_dark_horse_notes(
|
|
244
|
+
client.xiaohongshu.get_dark_horse_notes(category="美妆", start_date="2026-08-01")
|
|
245
245
|
|
|
246
246
|
# ─── 视频提文案 ───
|
|
247
247
|
task = client.xiaohongshu.transcript_submit(url="https://www.xiaohongshu.com/explore/xxx")
|
|
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
|
|
2
2
|
|
|
3
3
|
setup(
|
|
4
4
|
name="redfox-python-sdk",
|
|
5
|
-
version="0.
|
|
5
|
+
version="0.7.1",
|
|
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
|
{redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/redfox_python_sdk.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
{redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/redfox_python_sdk.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|