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

Uploaded Source

File details

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

File metadata

  • Download URL: tubefox-0.8.6.tar.gz
  • Upload date:
  • Size: 9.7 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.6.tar.gz
Algorithm Hash digest
SHA256 f4fef59a8bf66c3cff518da5cad1ecfbe11236cf69eee942ce51a748cdb16c86
MD5 e0b33d4e5ae90d94338097063709db0e
BLAKE2b-256 0e1d0b4e74593b94c728b1925feed50f0baa0617dc5e67e063ac3dce749acf46

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