Skip to main content

YouTube Data provides comprehensive YouTube video metadata scraping. Results are returned in a dictionary containing likes, dislikes, views, published dates and more.

Project description

YouTube Data

YouTube Data provides comprehensive YouTube video metadata scraping. Results are returned in a dictionary containing likes, dislikes, views published dates and more.

Website: youtubedata.io

Usage

Positional Arguments

Usage is simple, the first method is to not pass any keyword arguments. In this case, the function will determine whether a channel code was passed.

Channel Codes begin with UC. For example, Ariana Grande's channel code is UC9CoOnJkIBMdeijd9qYoT_g.

If a channel code was passed, YouTube Data will proceed straight to the scraping algorithm and extract the desired data. Otherwise, a step is added to find the channel that best matches the entered argument.

from youtubedata import youtubedata 
ariana_grande = youtubedata.get("UC9CoOnJkIBMdeijd9qYoT_g")
ariana_grande = youtubedata.get("Ariana Grande")
Keyword Arguments

The second method is to explicity pass the keyword arguments channel_code and best_match. This way YouTube Data does not have to guess which is being provided.

ariana_grande = youtubedata.get(channel_code = "UC9CoOnJkIBMdeijd9qYoT_g")
ariana_grande = youtubedata.get(best_match = "Ariana Grande")

Progress

Progress is indicated through percentage complete print statements. The algorithm works by first identifying all "playlists" associated to the channel and then extracting all video URLs in each playlist and then deduplicating any repeated URLs.

Project details


Download files

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

Files for youtubedata, version 1.0.9
Filename, size File type Python version Upload date Hashes
Filename, size youtubedata-1.0.9-py3-none-any.whl (6.8 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size youtubedata-1.0.9.tar.gz (5.6 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page