Skip to content

Smart YouTube stream processor - effortless extraction with automatic organization into clean, usable classes.

License

Notifications You must be signed in to change notification settings

henrique-coder/streamsnapper

Repository files navigation

StreamSnapper

PyPI - Version PyPI - Downloads PyPI - Code Style PyPI - Format PyPI - Python Compatible Versions

StreamSnapper is a smart YouTube stream processor - effortless extraction with automatic organization into clean, usable classes.

Installation (from PyPI)

# Install the stable version of StreamSnapper from PyPI (recommended)
pip install --upgrade streamsnapper

# Install the development version of StreamSnapper from GitHub
pip install --upgrade git+https://github.com/henrique-coder/streamsnapper.git@main

Note

If you already have a version installed and want to switch to a different branch (for example, to test new features or fix bugs), you will need to use the --force-reinstall parameter to ensure the upgrade occurs correctly.

Example Usage

from streamsnapper import YouTube


youtube = YouTube(logging=False, cookies=None)
youtube.extract(url="https://www.youtube.com/watch?v=***********", ytdlp_data=None)
youtube.analyze_information(check_thumbnails=False, retrieve_dislike_count=False)
youtube.analyze_video_streams(preferred_quality="all")
youtube.analyze_audio_streams(preferred_language="source")
youtube.analyze_subtitle_streams()

print(youtube.information.to_dict())
print(youtube.best_video_stream)
print(youtube.best_audio_stream)
print(youtube.subtitle_streams)

# And much more useful classes and functions

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, fork the repository and create a pull request. You can also simply open an issue and describe your ideas or report bugs. Don't forget to give the project a star if you like it!

  1. Fork the project;
  2. Create your feature branch ・ git checkout -b feature/{feature_name};
  3. Commit your changes ・ git commit -m "{commit_message}";
  4. Push to the branch ・ git push origin feature/{feature_name};
  5. Open a pull request, describing the changes you made and wait for a review.

Disclaimer

Please note that downloading copyrighted content from some media services may be illegal in your country. This tool is designed for educational purposes only. Use at your own risk.

About

Smart YouTube stream processor - effortless extraction with automatic organization into clean, usable classes.

Topics

Resources

License

Stars

Watchers

Forks