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 | Reset |
|---|---|---|---|---|
| scrapetube-2.6.0-py3-none-any.whl | Python 3 | none | any | Details |
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
|