Skip to main content

Scrape youtube without the official youtube api and without selenium.

Project description

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/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scrapetube-2.6.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file scrapetube-2.6.0-py3-none-any.whl.

File metadata

  • Download URL: scrapetube-2.6.0-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.13.0

File hashes

Hashes for scrapetube-2.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 70077c2b80474896cd2490801d1ce33488bc8fb8ef9d2137f683a799ffac00af
MD5 b07bd21418b25115a8c0aae9c1405fd4
BLAKE2b-256 f69fa1a209c52605bc04499461f3e8ce05ab90a7f45b0f09b950e0a4e6b78a92

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page