Enhanced: Perform YouTube video searches without the API. Fork of original youtube-search by joetats
Project description
youtube_search-fork
This fork adds the ability to search for channels, latest content of a channel and adds videos published date.
Python function for searching for youtube videos to avoid using their heavily rate-limited API
To avoid using the API, this uses the form on the youtube homepage and scrapes the resulting page.
Example Usage
For a basic search (and all of the current functionality), you can use the search tool as follows:
from youtube_search import YoutubeSearch
videos = YoutubeSearch('search terms', max_results=10).videos_to_json()
channels = YoutubeSearch('search terms', max_results=10).channels_to_json()
print(results)
# returns a json string
########################################
videos = YoutubeSearch('search terms', max_results=10).videos_to_dict()
channels = YoutubeSearch('search terms', max_results=10).channels_to_dict()
print(results)
# returns a dictionary like this:
[{'id': 'UCJWCJC...CieLOLQ', 'name': 'channelName', 'suscriberCountText': '200.000', 'thumbnails': ['URL1', 'URL2'], 'url_suffix': '/user/channelName'}]
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
Close
Hashes for youtube-search-fork-1.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0405cbe5f672f68cd5385fd7d30c779e7e5054853e08d3bf91fc21f0f93491ae |
|
MD5 | 0a9c822608d9e6439f6eb46db14ff11e |
|
BLAKE2b-256 | f569df0544056404024a6db55ef8736ae0ac9cb57d2660d1a5846d83acbe17f9 |