Skip to main content

A scraper for everything on YouTube

Project description

YouTube-Scraping-API

An easy-to-use YouTube API, without any kind of quota. I'm still working on it, so stay tuned for the updates to come.

Documentation

Importing The API

from YouTubeAPI import YouTubeAPI
api = YouTubeAPI()

Search

Returns a collection of search results that match the query parameters specified in the API request.

api.search(query=None, continuation_token=None)

query: The query string of your search
continuation_token: a token for continuing the search. You will find it at the very end of every search result JSON.

Playlist

Returns a collection of items and metadata of playlists that match the API request parameters.

api.playlist(playlistId=None, continuation_token=None, parseAll=True)

playlistId: The ID of playlist you want. You can find it at the url of the playlist page.
continuation_token: a token for continuing the search. You will find it at the very end of search result JSON if parseAll=False.
parseAll: Parse all items in the playlist. Default set to True.

Channel (working)

Returns a collection data of channel resources that match the request criteria.

api.channel(channelId=None, username=None)

channelId: The ID of channel.
username: The username of channel user.

Project details


Download files

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

Source Distribution

youtube-scraping-api-0.0.2.tar.gz (11.8 kB view hashes)

Uploaded source

Built Distribution

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page