Scrapetube
This module will help you scrape youtube without the official youtube api and without selenium.
With this module you can:
- Get all videos from a Youtube channel.
- Get all videos from a playlist.
- Search youtube.
Installation
pip3 install scrapetube
Usage
Here's a few short code examples.
Get all videos for a channel
import scrapetube
videos = scrapetube.get_channel("UCCezIgC97PvUuR4_gbFUs5g")
for video in videos:
print(video['videoId'])
Get all videos for a playlist
import scrapetube
videos = scrapetube.get_playlist("PL-osiE80TeTt2d9bfVyTiXJA-UTHn6WwU")
for video in videos:
print(video['videoId'])
Make a search
import scrapetube
videos = scrapetube.get_search("python")
for video in videos:
print(video['videoId'])
Full Documentation
Metadata
Release files for scrapetube 2.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| scrapetube-2.6.0-py3-none-any.whl | Python 3 | none | any | Details for scrapetube-2.6.0-py3-none-any.whl |
Release files / scrapetube-2.6.0-py3-none-any.whl
| Download URL | scrapetube-2.6.0-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
70077c2b80474896cd2490801d1ce33488bc8fb8ef9d2137f683a799ffac00af
|
|
BLAKE2b-256 checksum How to use checksums |
f69fa1a209c52605bc04499461f3e8ce05ab90a7f45b0f09b950e0a4e6b78a92
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.13.0
|
Security for scrapetube 2.6.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.