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.
Files changed (36) hide show
  1. {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/PKG-INFO +2 -2
  2. {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/README.md +1 -1
  3. {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/redfox/__init__.py +1 -1
  4. {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/xiaohongshu.py +3 -3
  5. {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/youtube.py +13 -23
  6. {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/redfox_python_sdk.egg-info/PKG-INFO +2 -2
  7. {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/setup.py +1 -1
  8. {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/redfox/client.py +0 -0
  9. {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/__init__.py +0 -0
  10. {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/ai_search.py +0 -0
  11. {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/autohome.py +0 -0
  12. {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/baijiahao.py +0 -0
  13. {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/bilibili.py +0 -0
  14. {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/dongchedi.py +0 -0
  15. {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/doubao_image.py +0 -0
  16. {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/doubao_video.py +0 -0
  17. {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/douyin.py +0 -0
  18. {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/gpt_image.py +0 -0
  19. {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/hotspot.py +0 -0
  20. {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/instagram.py +0 -0
  21. {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/kuaishou.py +0 -0
  22. {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/tiktok.py +0 -0
  23. {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/tools.py +0 -0
  24. {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/toutiao.py +0 -0
  25. {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/twitter.py +0 -0
  26. {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/wechat.py +0 -0
  27. {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/wechat_channels.py +0 -0
  28. {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/weibo.py +0 -0
  29. {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/yiche.py +0 -0
  30. {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/zhihu.py +0 -0
  31. {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/redfox/exceptions.py +0 -0
  32. {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/redfox_python_sdk.egg-info/SOURCES.txt +0 -0
  33. {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/redfox_python_sdk.egg-info/dependency_links.txt +0 -0
  34. {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/redfox_python_sdk.egg-info/requires.txt +0 -0
  35. {redfox_python_sdk-0.6.0 → redfox_python_sdk-0.7.1}/redfox_python_sdk.egg-info/top_level.txt +0 -0
  36. {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.6.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(keyword="AI,穿搭", start_date="2026-08-01")
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(keyword="AI,穿搭", start_date="2026-08-01")
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")
@@ -3,7 +3,7 @@
3
3
  from .client import RedFoxClient, AsyncRedFoxClient
4
4
  from .exceptions import RedFoxAPIError, RedFoxAuthError, RedFoxRateLimitError
5
5
 
6
- __version__ = "0.6.0"
6
+ __version__ = "0.7.0"
7
7
  __all__ = [
8
8
  "RedFoxClient",
9
9
  "AsyncRedFoxClient",
@@ -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, keyword: str, start_date: str, source: str = "小红书黑马爆文榜-SDK") -> dict:
303
+ def get_dark_horse_notes(self, category: str, start_date: str, source: str = "小红书黑马爆文榜-SDK") -> dict:
304
304
  """
305
305
  小红书黑马爆文榜
306
306
 
307
- :param keyword: 关键词(必填),多个关键词用逗号分隔,最多 5 个,总长度不超过 200
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={"keyword": keyword, "startDate": start_date},
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
- :param video_url: YouTube 视频 URL 或视频 ID(必填),
88
- 支持完整 URL、短 URL(youtu.be)或仅视频 ID
89
- :param format: 输出格式:json 或 text,默认 json
90
- :param include_timestamp: 是否包含时间戳,默认 True
91
- :param send_metadata: 是否包含视频元数据,默认 False
92
- :param language: 语言优先级列表,逗号分隔的语言代码,如 "zh,en,asr"
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
- data: Dict[str, Any] = {"videoUrl": video_url}
96
- if format is not None:
97
- data["format"] = format
98
- if include_timestamp is not None:
99
- data["includeTimestamp"] = include_timestamp
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.6.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(keyword="AI,穿搭", start_date="2026-08-01")
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.6.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",