Tube Scriptor
tube_scriptor is a Python package designed to fetch and generate transcripts from YouTube videos in various formats including XML, JSON, Python lists, or plain text. It simplifies the process of obtaining video transcripts, making it accessible for data analysis, content generation, and accessibility features.
Installation
To install tube_scriptor, you can use pip:
pip install tube_scriptor
Usage
Using tube_scriptor is straightforward. Below are examples demonstrating how to fetch a video transcript in various formats and using both a YouTube URL and a direct video ID.
Fetching Transcript as a List
from tube_scriptor import fetch_transcript
# Using a YouTube URL
youtube_url = "https://www.youtube.com/watch?v=exampleVideoId"
transcript_list = fetch_transcript(youtube_url, 'list')
print(transcript_list)
# Using a YouTube video ID
youtube_id = "exampleVideoId"
transcript_list = fetch_transcript(youtube_id, 'list')
print(transcript_list)
Fetching Transcript as a JSON String
# Using a YouTube video ID
youtube_id = "exampleVideoId"
transcript_json = fetch_transcript(youtube_id, 'json')
print(transcript_json)
Fetching Transcript as Plain Text
# Using a YouTube video ID
youtube_id = "exampleVideoId"
transcript_text = fetch_transcript(youtube_id, 'string')
print(transcript_text)
Fetching Transcript as XML
# Using a YouTube video ID
youtube_id = "exampleVideoId"
transcript_xml = fetch_transcript(youtube_id, 'xml')
print(transcript_xml)
These examples illustrate the flexibility of tube_scriptor in handling different formats and inputs. Choose the format that best suits your needs, whether it's for further processing, display, or storage.
Features
- Support for fetching transcripts in XML, JSON, Python list, or plain string format.
- Easy integration into Python projects.
- Flexible input with support for both YouTube video URLs and video IDs.
- Lightweight with minimal dependencies.
Contributing
Contributions, issues, and feature requests are welcome! Feel free to check the issues page.
License
This project is licensed under the MIT License.
Metadata
Release files for tube-scriptor 2025.5.120740
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tube_scriptor-2025.5.120740.tar.gz | 4.5 kB | Without provenance | Details for tube_scriptor-2025.5.120740.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tube_scriptor-2025.5.120740-py3-none-any.whl | Python 3 | none | any | Details for tube_scriptor-2025.5.120740-py3-none-any.whl |
Total release size: 10.0 kB
Release files / tube_scriptor-2025.5.120740.tar.gz
| Download URL | tube_scriptor-2025.5.120740.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c7e4b02593f2337c2295cfb6939182646a6cd3099f9ba36674ef1fe27c0976f8
|
|
BLAKE2b-256 checksum How to use checksums |
9707daa29ac88d15738ef01ac5ff64293f5460e5fd11e158506c4451b805f0c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.11
|
Release files / tube_scriptor-2025.5.120740-py3-none-any.whl
| Download URL | tube_scriptor-2025.5.120740-py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
57545552fc129d330b7a30f03e609753804389f84045f46e9eb74f8930601de0
|
|
BLAKE2b-256 checksum How to use checksums |
2bfd6b58017c95ae6f481a309be5acced4088f61294eb76d93d23ee20c0c497b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.11
|
Security for tube-scriptor 2025.5.120740
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.