A scraper for everything on YouTube
Project description
YouTube-Scraping-API
An easy-to-use YouTube API, without any kind of quota, and download any videos on youtube as much as you like.
I'm still working on it, so stay tuned for more updates to come.
Documentation
Installing the API
pip install youtube-scraping-api
Importing the API
from youtube_scraping_api 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: ID of the channel.
username: username of the channel user.
Video
Returns data of the video that matches the video ID.
api.video(videoId)
videoId: The ID of the videos
Download Video
video = api.video(videoId)
video.download(itag=None, path=".", log_progress=True, chunk_size=4096, callback_func=None)
itag: The itag of the video you want to download. Download the best quality if not specified.
path: Destination path of your choice. Downloaded videos will go there.
log_progress: Wether to show download progressbar or not. Default to True.
callback_func: Feature under development
Version
0.0.1 (deleted)
- Not an official release (careless bug found)
0.0.2
- Freshly uploaded this package to PyPi
0.0.3
- Updated README.md
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for youtube-scraping-api-0.0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00fb6c2d8e2e1d8feda6fd4e7e2d17565547247d227220e93a7c777aa643e23d |
|
MD5 | a10851cf35cf9de24a03a1718975df31 |
|
BLAKE2b-256 | 94a3315069dfb5cde9fe9024c2c900a6d522ade73ab0c357376f131ae43660f7 |
Hashes for youtube_scraping_api-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 818564621d131fb9837d38b99307fd3f028b9b3a77149f0758c44d777c061c3d |
|
MD5 | 6cafbe175dc933cd8deb6083de91d0c7 |
|
BLAKE2b-256 | eafd78094a6f649d36be663fdf7d4659ef7e117ebe71ce4d9f0dc99caaa4318d |