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
tqdm

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.5.tar.gz (9.5 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: tubefox-0.8.5.tar.gz
  • Upload date:
  • Size: 9.5 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.5.tar.gz
Algorithm Hash digest
SHA256 05663710534a483bd43b6c92228e402ccb534e4e10343134039ea385beb49f5e
MD5 122f546bfa4ad054d27d39fd3d49bd08
BLAKE2b-256 dff7c9a989655e23dd0cf865a204d6f7b79b80a0922401a023aff595d7ca47e9

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