jistudio-youtube-transcript 1.0.0__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.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 JiStudio (https://github.com/jistudio-dev)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,78 @@
1
+ Metadata-Version: 2.4
2
+ Name: jistudio-youtube-transcript
3
+ Version: 1.0.0
4
+ Summary: Zero-dependency Python SDK for cloud-IP-safe YouTube transcripts, SRT subtitles, Top-5 Most-Replayed viral heatmap peaks & MP4/M4A downloads.
5
+ Author-email: JiStudio <dev@jistudio.dev>
6
+ License: MIT
7
+ Project-URL: Homepage, https://jistudio-dev.github.io/youtube-transcript-mcp/
8
+ Project-URL: Repository, https://github.com/jistudio-dev/youtube-transcript-mcp
9
+ Project-URL: Documentation, https://jistudio-dev.github.io/youtube-transcript-mcp/
10
+ Keywords: youtube,youtube-transcript,srt,rag,heatmap,apify
11
+ Classifier: Development Status :: 5 - Production/Stable
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: License :: OSI Approved :: MIT License
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3.10
16
+ Classifier: Programming Language :: Python :: 3.11
17
+ Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Topic :: Internet :: WWW/HTTP
19
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
20
+ Requires-Python: >=3.10
21
+ Description-Content-Type: text/markdown
22
+ License-File: LICENSE
23
+ Dynamic: license-file
24
+
25
+ # YouTube Transcript, SRT & Viral Heatmap MCP Server (Zero Cookies · Cloud-IP Safe)
26
+
27
+ Zero-dependency **MCP Server (`stdio` JSON-RPC 2.0)** + **Python & Node.js SDKs** for extracting **multi-language YouTube transcripts**, millisecond-accurate JSON segments, ready-to-save **`.SRT` subtitles**, **Top-5 Most-Replayed Heatmap peaks**, and cross-IP cloud **MP4 / M4A downloads**.
28
+
29
+ Built for developers whose `youtube-transcript-api` scripts fail on AWS/GCP/Vercel/Docker cloud IPs — no browser cookies, no headless Chrome.
30
+
31
+ - **MCP Tools**: `youtube_get_transcript_and_heatmap`, `youtube_download_media`
32
+ - **Powered by**: [YouTube Transcript Scraper (`jistudio/youtube-transcript-scraper`)](https://apify.com/jistudio/youtube-transcript-scraper) & [YouTube Video Downloader (`jistudio/youtube-video-downloader`)](https://apify.com/jistudio/youtube-video-downloader)
33
+
34
+ ---
35
+
36
+ ## Claude Desktop / Cursor MCP Setup
37
+
38
+ ```json
39
+ {
40
+ "mcpServers": {
41
+ "youtube-transcript-rag": {
42
+ "command": "node",
43
+ "args": ["/path/to/youtube-transcript-mcp/bin/youtube-mcp.mjs"],
44
+ "env": {
45
+ "APIFY_TOKEN": "YOUR_APIFY_TOKEN"
46
+ }
47
+ }
48
+ }
49
+ }
50
+ ```
51
+
52
+ ## Python SDK (Zero Dependencies)
53
+
54
+ ```python
55
+ from python.youtube_transcript_sdk import YouTubeTranscriptClient
56
+
57
+ client = YouTubeTranscriptClient(apify_token="YOUR_APIFY_TOKEN")
58
+ items = client.get_transcripts(["https://www.youtube.com/watch?v=dQw4w9WgXcQ"], preferred_language="en")
59
+ print(items[0]["title"], "| Words:", items[0]["transcriptWordCount"])
60
+ ```
61
+
62
+ ## Node.js 18+ ESM SDK (Zero Dependencies)
63
+
64
+ ```javascript
65
+ import { YouTubeTranscriptClient } from "./node/index.mjs";
66
+
67
+ const client = new YouTubeTranscriptClient(process.env.APIFY_TOKEN);
68
+ const [video] = await client.getTranscripts({ videoUrls: ["https://www.youtube.com/watch?v=dQw4w9WgXcQ"] });
69
+ console.log(video.title, video.transcriptWordCount, video.goldenPeaks?.length);
70
+ ```
71
+
72
+ ---
73
+
74
+ ## JiStudio Ecosystem
75
+
76
+ - **GitHub Org**: [github.com/jistudio-dev](https://github.com/jistudio-dev) · **n8n Templates**: [`free-n8n-ecommerce-workflows`](https://github.com/jistudio-dev/free-n8n-ecommerce-workflows)
77
+ - **Apify Store**: [apify.com/jistudio](https://apify.com/jistudio)
78
+ - **License**: MIT
@@ -0,0 +1,54 @@
1
+ # YouTube Transcript, SRT & Viral Heatmap MCP Server (Zero Cookies · Cloud-IP Safe)
2
+
3
+ Zero-dependency **MCP Server (`stdio` JSON-RPC 2.0)** + **Python & Node.js SDKs** for extracting **multi-language YouTube transcripts**, millisecond-accurate JSON segments, ready-to-save **`.SRT` subtitles**, **Top-5 Most-Replayed Heatmap peaks**, and cross-IP cloud **MP4 / M4A downloads**.
4
+
5
+ Built for developers whose `youtube-transcript-api` scripts fail on AWS/GCP/Vercel/Docker cloud IPs — no browser cookies, no headless Chrome.
6
+
7
+ - **MCP Tools**: `youtube_get_transcript_and_heatmap`, `youtube_download_media`
8
+ - **Powered by**: [YouTube Transcript Scraper (`jistudio/youtube-transcript-scraper`)](https://apify.com/jistudio/youtube-transcript-scraper) & [YouTube Video Downloader (`jistudio/youtube-video-downloader`)](https://apify.com/jistudio/youtube-video-downloader)
9
+
10
+ ---
11
+
12
+ ## Claude Desktop / Cursor MCP Setup
13
+
14
+ ```json
15
+ {
16
+ "mcpServers": {
17
+ "youtube-transcript-rag": {
18
+ "command": "node",
19
+ "args": ["/path/to/youtube-transcript-mcp/bin/youtube-mcp.mjs"],
20
+ "env": {
21
+ "APIFY_TOKEN": "YOUR_APIFY_TOKEN"
22
+ }
23
+ }
24
+ }
25
+ }
26
+ ```
27
+
28
+ ## Python SDK (Zero Dependencies)
29
+
30
+ ```python
31
+ from python.youtube_transcript_sdk import YouTubeTranscriptClient
32
+
33
+ client = YouTubeTranscriptClient(apify_token="YOUR_APIFY_TOKEN")
34
+ items = client.get_transcripts(["https://www.youtube.com/watch?v=dQw4w9WgXcQ"], preferred_language="en")
35
+ print(items[0]["title"], "| Words:", items[0]["transcriptWordCount"])
36
+ ```
37
+
38
+ ## Node.js 18+ ESM SDK (Zero Dependencies)
39
+
40
+ ```javascript
41
+ import { YouTubeTranscriptClient } from "./node/index.mjs";
42
+
43
+ const client = new YouTubeTranscriptClient(process.env.APIFY_TOKEN);
44
+ const [video] = await client.getTranscripts({ videoUrls: ["https://www.youtube.com/watch?v=dQw4w9WgXcQ"] });
45
+ console.log(video.title, video.transcriptWordCount, video.goldenPeaks?.length);
46
+ ```
47
+
48
+ ---
49
+
50
+ ## JiStudio Ecosystem
51
+
52
+ - **GitHub Org**: [github.com/jistudio-dev](https://github.com/jistudio-dev) · **n8n Templates**: [`free-n8n-ecommerce-workflows`](https://github.com/jistudio-dev/free-n8n-ecommerce-workflows)
53
+ - **Apify Store**: [apify.com/jistudio](https://apify.com/jistudio)
54
+ - **License**: MIT
@@ -0,0 +1,78 @@
1
+ Metadata-Version: 2.4
2
+ Name: jistudio-youtube-transcript
3
+ Version: 1.0.0
4
+ Summary: Zero-dependency Python SDK for cloud-IP-safe YouTube transcripts, SRT subtitles, Top-5 Most-Replayed viral heatmap peaks & MP4/M4A downloads.
5
+ Author-email: JiStudio <dev@jistudio.dev>
6
+ License: MIT
7
+ Project-URL: Homepage, https://jistudio-dev.github.io/youtube-transcript-mcp/
8
+ Project-URL: Repository, https://github.com/jistudio-dev/youtube-transcript-mcp
9
+ Project-URL: Documentation, https://jistudio-dev.github.io/youtube-transcript-mcp/
10
+ Keywords: youtube,youtube-transcript,srt,rag,heatmap,apify
11
+ Classifier: Development Status :: 5 - Production/Stable
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: License :: OSI Approved :: MIT License
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3.10
16
+ Classifier: Programming Language :: Python :: 3.11
17
+ Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Topic :: Internet :: WWW/HTTP
19
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
20
+ Requires-Python: >=3.10
21
+ Description-Content-Type: text/markdown
22
+ License-File: LICENSE
23
+ Dynamic: license-file
24
+
25
+ # YouTube Transcript, SRT & Viral Heatmap MCP Server (Zero Cookies · Cloud-IP Safe)
26
+
27
+ Zero-dependency **MCP Server (`stdio` JSON-RPC 2.0)** + **Python & Node.js SDKs** for extracting **multi-language YouTube transcripts**, millisecond-accurate JSON segments, ready-to-save **`.SRT` subtitles**, **Top-5 Most-Replayed Heatmap peaks**, and cross-IP cloud **MP4 / M4A downloads**.
28
+
29
+ Built for developers whose `youtube-transcript-api` scripts fail on AWS/GCP/Vercel/Docker cloud IPs — no browser cookies, no headless Chrome.
30
+
31
+ - **MCP Tools**: `youtube_get_transcript_and_heatmap`, `youtube_download_media`
32
+ - **Powered by**: [YouTube Transcript Scraper (`jistudio/youtube-transcript-scraper`)](https://apify.com/jistudio/youtube-transcript-scraper) & [YouTube Video Downloader (`jistudio/youtube-video-downloader`)](https://apify.com/jistudio/youtube-video-downloader)
33
+
34
+ ---
35
+
36
+ ## Claude Desktop / Cursor MCP Setup
37
+
38
+ ```json
39
+ {
40
+ "mcpServers": {
41
+ "youtube-transcript-rag": {
42
+ "command": "node",
43
+ "args": ["/path/to/youtube-transcript-mcp/bin/youtube-mcp.mjs"],
44
+ "env": {
45
+ "APIFY_TOKEN": "YOUR_APIFY_TOKEN"
46
+ }
47
+ }
48
+ }
49
+ }
50
+ ```
51
+
52
+ ## Python SDK (Zero Dependencies)
53
+
54
+ ```python
55
+ from python.youtube_transcript_sdk import YouTubeTranscriptClient
56
+
57
+ client = YouTubeTranscriptClient(apify_token="YOUR_APIFY_TOKEN")
58
+ items = client.get_transcripts(["https://www.youtube.com/watch?v=dQw4w9WgXcQ"], preferred_language="en")
59
+ print(items[0]["title"], "| Words:", items[0]["transcriptWordCount"])
60
+ ```
61
+
62
+ ## Node.js 18+ ESM SDK (Zero Dependencies)
63
+
64
+ ```javascript
65
+ import { YouTubeTranscriptClient } from "./node/index.mjs";
66
+
67
+ const client = new YouTubeTranscriptClient(process.env.APIFY_TOKEN);
68
+ const [video] = await client.getTranscripts({ videoUrls: ["https://www.youtube.com/watch?v=dQw4w9WgXcQ"] });
69
+ console.log(video.title, video.transcriptWordCount, video.goldenPeaks?.length);
70
+ ```
71
+
72
+ ---
73
+
74
+ ## JiStudio Ecosystem
75
+
76
+ - **GitHub Org**: [github.com/jistudio-dev](https://github.com/jistudio-dev) · **n8n Templates**: [`free-n8n-ecommerce-workflows`](https://github.com/jistudio-dev/free-n8n-ecommerce-workflows)
77
+ - **Apify Store**: [apify.com/jistudio](https://apify.com/jistudio)
78
+ - **License**: MIT
@@ -0,0 +1,9 @@
1
+ LICENSE
2
+ README.md
3
+ pyproject.toml
4
+ jistudio_youtube_transcript.egg-info/PKG-INFO
5
+ jistudio_youtube_transcript.egg-info/SOURCES.txt
6
+ jistudio_youtube_transcript.egg-info/dependency_links.txt
7
+ jistudio_youtube_transcript.egg-info/top_level.txt
8
+ youtube_transcript_sdk/__init__.py
9
+ youtube_transcript_sdk/client.py
@@ -0,0 +1,34 @@
1
+ [build-system]
2
+ requires = ["setuptools>=68"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "jistudio-youtube-transcript"
7
+ version = "1.0.0"
8
+ description = "Zero-dependency Python SDK for cloud-IP-safe YouTube transcripts, SRT subtitles, Top-5 Most-Replayed viral heatmap peaks & MP4/M4A downloads."
9
+ readme = "README.md"
10
+ license = {text = "MIT"}
11
+ requires-python = ">=3.10"
12
+ authors = [{name = "JiStudio", email = "dev@jistudio.dev"}]
13
+ keywords = ["youtube", "youtube-transcript", "srt", "rag", "heatmap", "apify"]
14
+ classifiers = [
15
+ "Development Status :: 5 - Production/Stable",
16
+ "Intended Audience :: Developers",
17
+ "License :: OSI Approved :: MIT License",
18
+ "Programming Language :: Python :: 3",
19
+ "Programming Language :: Python :: 3.10",
20
+ "Programming Language :: Python :: 3.11",
21
+ "Programming Language :: Python :: 3.12",
22
+ "Topic :: Internet :: WWW/HTTP",
23
+ "Topic :: Software Development :: Libraries :: Python Modules",
24
+ ]
25
+ dependencies = []
26
+
27
+ [project.urls]
28
+ Homepage = "https://jistudio-dev.github.io/youtube-transcript-mcp/"
29
+ Repository = "https://github.com/jistudio-dev/youtube-transcript-mcp"
30
+ Documentation = "https://jistudio-dev.github.io/youtube-transcript-mcp/"
31
+
32
+ [tool.setuptools.packages.find]
33
+ where = ["."]
34
+ include = ["youtube_transcript_sdk*"]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,3 @@
1
+ from .client import YouTubeTranscriptClient
2
+
3
+ __all__ = ["YouTubeTranscriptClient"]
@@ -0,0 +1,54 @@
1
+ """Zero-dependency Python SDK for YouTube Transcripts, SRT, Heatmaps & Media Downloads (Apify)."""
2
+ import json
3
+ import os
4
+ import urllib.parse
5
+ import urllib.request
6
+
7
+
8
+ class YouTubeTranscriptClient:
9
+ def __init__(self, apify_token: str | None = None, timeout: int = 120):
10
+ self.token = apify_token or os.environ.get("APIFY_TOKEN", "")
11
+ if not self.token:
12
+ raise ValueError("Provide apify_token or set APIFY_TOKEN environment variable.")
13
+ self.timeout = timeout
14
+
15
+ def _run_actor(self, actor_id: str, payload: dict) -> list[dict]:
16
+ qs = urllib.parse.urlencode({"token": self.token})
17
+ url = f"https://api.apify.com/v2/acts/{actor_id}/run-sync-get-dataset-items?{qs}"
18
+ req = urllib.request.Request(
19
+ url,
20
+ data=json.dumps(payload).encode("utf-8"),
21
+ headers={"Content-Type": "application/json", "Accept": "application/json"},
22
+ method="POST",
23
+ )
24
+ with urllib.request.urlopen(req, timeout=self.timeout) as resp:
25
+ return json.loads(resp.read().decode("utf-8"))
26
+
27
+ def get_transcripts(self, video_urls: list[str], preferred_language: str = "en", country: str = "US") -> list[dict]:
28
+ return self._run_actor(
29
+ "jistudio~youtube-transcript-scraper",
30
+ {
31
+ "mode": "transcript_and_heatmap",
32
+ "videoUrls": video_urls,
33
+ "preferredLanguage": preferred_language,
34
+ "country": country,
35
+ },
36
+ )
37
+
38
+ def download_media(
39
+ self,
40
+ video_urls: list[str],
41
+ download_format: str = "muxed_mp4",
42
+ max_download_size_mb: int = 50,
43
+ country: str = "US",
44
+ ) -> list[dict]:
45
+ return self._run_actor(
46
+ "jistudio~youtube-video-downloader",
47
+ {
48
+ "mode": "video_download",
49
+ "videoUrls": video_urls,
50
+ "downloadFormat": download_format,
51
+ "maxDownloadSizeMB": max_download_size_mb,
52
+ "country": country,
53
+ },
54
+ )