Skip to main content

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/

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)

Table of built distributions (wheels) for scrapetube 2.6.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

2.6.0 This release

1 release file

2.5.1

1 release file

2.5.0

1 release file

2.4.0

1 release file

2.3.2

1 release file

2.3.1

1 release file

2.3.0

1 release file

2.2.2

1 release file

2.2.1

1 release file

2.2.0

1 release file

2.1.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page