redfox-python-sdk 0.7.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.7.0 → redfox_python_sdk-0.7.1}/PKG-INFO +1 -1
- {redfox_python_sdk-0.7.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/youtube.py +13 -23
- {redfox_python_sdk-0.7.0 → redfox_python_sdk-0.7.1}/redfox_python_sdk.egg-info/PKG-INFO +1 -1
- {redfox_python_sdk-0.7.0 → redfox_python_sdk-0.7.1}/setup.py +1 -1
- {redfox_python_sdk-0.7.0 → redfox_python_sdk-0.7.1}/README.md +0 -0
- {redfox_python_sdk-0.7.0 → redfox_python_sdk-0.7.1}/redfox/__init__.py +0 -0
- {redfox_python_sdk-0.7.0 → redfox_python_sdk-0.7.1}/redfox/client.py +0 -0
- {redfox_python_sdk-0.7.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/__init__.py +0 -0
- {redfox_python_sdk-0.7.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/ai_search.py +0 -0
- {redfox_python_sdk-0.7.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/autohome.py +0 -0
- {redfox_python_sdk-0.7.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/baijiahao.py +0 -0
- {redfox_python_sdk-0.7.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/bilibili.py +0 -0
- {redfox_python_sdk-0.7.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/dongchedi.py +0 -0
- {redfox_python_sdk-0.7.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/doubao_image.py +0 -0
- {redfox_python_sdk-0.7.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/doubao_video.py +0 -0
- {redfox_python_sdk-0.7.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/douyin.py +0 -0
- {redfox_python_sdk-0.7.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/gpt_image.py +0 -0
- {redfox_python_sdk-0.7.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/hotspot.py +0 -0
- {redfox_python_sdk-0.7.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/instagram.py +0 -0
- {redfox_python_sdk-0.7.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/kuaishou.py +0 -0
- {redfox_python_sdk-0.7.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/tiktok.py +0 -0
- {redfox_python_sdk-0.7.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/tools.py +0 -0
- {redfox_python_sdk-0.7.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/toutiao.py +0 -0
- {redfox_python_sdk-0.7.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/twitter.py +0 -0
- {redfox_python_sdk-0.7.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/wechat.py +0 -0
- {redfox_python_sdk-0.7.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/wechat_channels.py +0 -0
- {redfox_python_sdk-0.7.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/weibo.py +0 -0
- {redfox_python_sdk-0.7.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/xiaohongshu.py +0 -0
- {redfox_python_sdk-0.7.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/yiche.py +0 -0
- {redfox_python_sdk-0.7.0 → redfox_python_sdk-0.7.1}/redfox/endpoints/zhihu.py +0 -0
- {redfox_python_sdk-0.7.0 → redfox_python_sdk-0.7.1}/redfox/exceptions.py +0 -0
- {redfox_python_sdk-0.7.0 → redfox_python_sdk-0.7.1}/redfox_python_sdk.egg-info/SOURCES.txt +0 -0
- {redfox_python_sdk-0.7.0 → redfox_python_sdk-0.7.1}/redfox_python_sdk.egg-info/dependency_links.txt +0 -0
- {redfox_python_sdk-0.7.0 → redfox_python_sdk-0.7.1}/redfox_python_sdk.egg-info/requires.txt +0 -0
- {redfox_python_sdk-0.7.0 → redfox_python_sdk-0.7.1}/redfox_python_sdk.egg-info/top_level.txt +0 -0
- {redfox_python_sdk-0.7.0 → redfox_python_sdk-0.7.1}/setup.cfg +0 -0
|
@@ -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
|
"""
|
|
@@ -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.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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{redfox_python_sdk-0.7.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.7.0 → redfox_python_sdk-0.7.1}/redfox_python_sdk.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|