A package for extracting YouTube video IDs from URLs
Project description
youtube_extractor
A utility to extract YouTube video IDs from URLs.
Installation
You can install the package using pip:
pip install youtube-extractor
Usage
To use this package in your Python application, follow these steps:
Import the package
from youtube_extractor import extract_video_id_from_url
Extract Video ID from URL
video_url = 'https://www.youtube.com/watch?v=VIDEO_ID'
video_id = extract_video_id_from_url(video_url)
if video_id:
print(f'Extracted YouTube Video ID: {video_id}')
else:
print('Invalid YouTube URL')
Replace VIDEO_ID with the actual video ID you want to extract.
You can also use the package to extract video IDs from short URLs or YouTube Shorts URLs.
Example:
short_url = 'https://youtu.be/VIDEO_ID_SHORT'
video_id_short = extract_video_id_from_url(short_url)
if video_id_short:
print(f'Extracted YouTube Video ID (Short): {video_id_short}')
else:
print('Invalid YouTube Short URL')
Run your application, and you'll be able to extract YouTube video IDs from the provided URLs.
License
This package is distributed under the MIT License. See the LICENSE file for more details.
Issues and Contributions
If you encounter any issues or have suggestions for improvements, please open an issue on the GitHub repository.
Contributions are welcome! Fork the repository, make your changes, and submit a pull request.
Credits
This package was created by Super Nived.
Support
For questions or support, you can reach out to nivedchandran7@gmail.com
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file youtube-extractor-0.1.0.tar.gz
.
File metadata
- Download URL: youtube-extractor-0.1.0.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52a72813be86e9ab3b7396979f8e96d426eb7bec65d286cd4643726ab5d1273d |
|
MD5 | 9693229099691b28d6a9cada2fbca0ab |
|
BLAKE2b-256 | 9b21f66c453acb30d2a31687d0d80f4cb19cb87c6e469d6be2395ecde2752d19 |
File details
Details for the file youtube_extractor-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: youtube_extractor-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c9b3a82c5b809a9683f711a931801de3081c94ce5c16ec9e809c5609cbe79da |
|
MD5 | 0f38ec3d9068dfea5adb5c40562d4570 |
|
BLAKE2b-256 | ddb79856e738420177e49bd00b78fde6d0812164d4cae8486b62a9db9fed62b7 |