Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dermasmid/scrapetube
A YouTube scraper for scraping channels, playlists, and searching 🔎
https://github.com/dermasmid/scrapetube
python scraper web-api youtube youtube-api youtube-channel youtube-playlist youtube-search
Last synced: 4 days ago
JSON representation
A YouTube scraper for scraping channels, playlists, and searching 🔎
- Host: GitHub
- URL: https://github.com/dermasmid/scrapetube
- Owner: dermasmid
- License: mit
- Created: 2021-06-25T00:04:55.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-07-26T10:17:58.000Z (6 months ago)
- Last Synced: 2025-01-17T10:03:22.933Z (11 days ago)
- Topics: python, scraper, web-api, youtube, youtube-api, youtube-channel, youtube-playlist, youtube-search
- Language: Python
- Homepage: https://scrapetube.readthedocs.io/en/latest/
- Size: 55.7 KB
- Stars: 369
- Watchers: 15
- Forks: 52
- Open Issues: 28
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```bash
pip3 install scrapetube
```# Usage
Here's a few short code examples.## Get all videos for a channel
```python
import scrapetubevideos = scrapetube.get_channel("UCCezIgC97PvUuR4_gbFUs5g")
for video in videos:
print(video['videoId'])
```## Get all videos for a playlist
```python
import scrapetubevideos = scrapetube.get_playlist("PL-osiE80TeTt2d9bfVyTiXJA-UTHn6WwU")
for video in videos:
print(video['videoId'])
```## Make a search
```python
import scrapetubevideos = scrapetube.get_search("python")
for video in videos:
print(video['videoId'])
```# Full Documentation
[https://scrapetube.readthedocs.io/en/latest/](https://scrapetube.readthedocs.io/en/latest/)