Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

dermasmid/scrapetube

Repository files navigation

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

https://scrapetube.readthedocs.io/en/latest/

About

A YouTube scraper for scraping channels, playlists, and searching πŸ”Ž

Topics

Resources

License

Stars

Watchers

Forks

Contributors 10

Languages

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /