Skip to main content

A package for scraping YouTube data

Project description

TubeFox

TubeFox is a Python library that provides convenient methods for scraping data, downloading media, and managing subtitles from YouTube videos.

Installation

You can install TubeFox using pip:

pip install tubefox

Usage

from tubefox import TubeFox

# Initialize TubeFox with the URL of the YouTube video
yt = TubeFox('https://www.youtube.com/watch?v=VIDEO_ID')

# Get video metadata
print("Video ID:", yt.id)
print("Title:", yt.title)
print("Description:", yt.description)
print("Keywords:", yt.keywords)

# Download video
yt.download_video()

# Download video with custom options
yt.download_video(path='../', filename='tubefox_test_video', quality=360)

# Download muted video
yt.download_muted_video()

# Download muted video with custom options
yt.download_muted_video(path='../', filename='tubefox_test_muted_video', quality=1080)

# Download audio
yt.download_audio()

# Download audio with custom options
yt.download_audio(path='../', filename='tubefox_test_audio')

# Download thumbnail
yt.download_thumbnail()

# Download thumbnail with custom options
yt.download_thumbnail(path='../')

# Download subtitles
yt.download_subtitles(mode='srt')

# Download subtitles with default options
yt.download_subtitles()

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contributing

Contributions are welcome! Feel free to submit pull requests or open issues for any bugs or feature requests.

Acknowledgements

TubeFox uses the following open-source libraries:

BeautifulSoup
requests

Disclaimer

This project is not affiliated with or endorsed by YouTube. Use responsibly and respect the terms of service of the platforms you interact with.

Contact

Author: FoxPyDev

Telegram: FoxPyDev

E-mail: foxpythondev@gmail.com

Feel free to reach out for any questions, suggestions, or feedback!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tubefox-0.8.7.tar.gz (9.8 kB view details)

Uploaded Source

File details

Details for the file tubefox-0.8.7.tar.gz.

File metadata

  • Download URL: tubefox-0.8.7.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for tubefox-0.8.7.tar.gz
Algorithm Hash digest
SHA256 1896c4dd139f8c9e8de242a4b9723951916caecfe5d3f49d940f939d946339a4
MD5 b17d774cb3bb44fc592bc082edd841eb
BLAKE2b-256 e671af4c285d61c0399f7367584aacd3cb6c9db4af9aae07430e2bef4698804b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page