Saravanan666/pypi-org huggingface dataset:
Package: youtube-livechat-scraper-ohn0
youtube-livechat-scraperA tool to scrape youtube livechat data I came up with while watching vtubers. It rips almost all data from a VOD's livechat including the following:Chat messagesSuperchatsMemberships joinedMemberships gifted and receivedPurchased StickersAll of the data can be wrapped up in a large raw JSON object that also contains lots of metadata from the responses, like the author, the time the message got sent, etc.USAGE:Requires the following python3 packages:NOTE: These packages will be installed via pip when installing the scraper.BeautifulSoupRequestsHow to use:Import the LiveChatScraper from scrapers.liveChatScraper to wherever you want to make the scraping call.Find a VOD URL and copy itCreate a LiveChatScraper object and pass in the VOD's URL.Call the scrape() method on the created scraper object and the scrape will run.Once the scrape is completed, you can call ouputMessages() to get a dictionary with all the scraped data.You can all save the scraped data as a JSON to a fill by calling the writeToFile method passing the OUTPUT_JSON constantexample.py has a working example which saves the data to different formats
Package: youtube-lv
how to downloadpip install youtube-lvhow to updatepip install --upgrade youtube-lvhow to useYoutubefromytlvimportyoutubelive=youtube("https://www.youtube.com/@ShirakamiFubuki")print(live)# return Youtube classYoutube classchannellink :str
link: str | None
status: str | None
islive: bool
title: str | None
picture: str | None
timestamp: float | NoneYoutube status"LIVE" | "READY_TO_LIVE" | "ERROR"| NoneYoutube classTwitchfromytlvimporttwitchlive=twitch("iitifox")print(live)# return twitch classTwitch classlink: str
status: str | None
islive: bool
title: str | None
picture: str | None
avatar: str | NoneTwitch status"LIVE" | "ERROR" | None
Package: youtube-monitor-action
youtube_monitor_actionA utility to perform an action after videos are live on YouTube for a given channel.This module provides the scriptyoutube-monitor-actionusage: youtube-monitor-action [-h] [-n N] [--channel CHANNEL] [--store-config]
                              [--hibernate] [--open-in-browser] [--shutdown]
                              [--verbose] [--quiet] [--version]
                              [--log-file LOG_FILE]

optional arguments:
  -h, --help           show this help message and exit
  -n N                 The number of new videos to watch for
  --channel CHANNEL    (Optional) The channel id to monitor (default: load
                       from config.yaml)
  --store-config       Store channel and other settings in config and exit

Actions:
  --hibernate          Hibernate computer once condition is met
  --open-in-browser    Open new videos in browser
  --shutdown           Shutdown computer once condition is met

debug:
  --verbose, -v        increase verbosity (may be repeated)
  --quiet, -q          decrease verbosity (may be repeated)
  --version, -V        print version and exit

logging:
  --log-file LOG_FILE  File to log to
Package: youtube-mp3
Request a converted to mp3 youtube video from youtube-mp3.org.Depends on: python 2.7/3.4/3.5, requests, docoptUsage:youtube-mp3.py [–autoend] [–chunk=<bytes>] <url> <path>Examples:youtube-mp3.py –autoendhttps://www.youtube.com/watch?v=YE7VzlLtp-4./bunny.mp3Options:-h, –help
–autoend    auto append “.mp3” to the file if not present.
–chunk=<bytes>  buffer size when writing to file [default: 2048].NOTE:There are limitations to using the service. You cannot download video longer than 20 minutes.
Also, the video could be marked to be not downloadable.
Package: youtubemusicapifork
youtubemusicapi is a Python 3 library to send requests to the YouTube Music API.
It emulates YouTube Music web client requests using the user’s cookie data for authentication.It improves on the authentication mechanism and allows users who implement their choice of auth flow (OAuth 2.0 PKCE
recommended for web based applications) to pass the auth token.It decouples the library from using OAuth 2.0 for TV and Limited Input Devices.This package is being used in production. I don’t plan on updating the library with more features than
I need. Contributions are open!FeaturesAuthentication and authorization:inject token information from external clientBrowsing:search (including all filters) and suggestionsget artist information and releases (songs, videos, albums, singles, related artists)get user information (videos, playlists)get albumsget song metadataget watch playlists (next songs when you press play/radio/shuffle in YouTube Music)get song lyricsExploring music:get moods and genres playlistsget latest charts (globally and per country)Library management:get library contents: playlists, songs, artists, albums and subscriptionsadd/remove library content: rate songs, albums and playlists, subscribe/unsubscribe artistsget and modify play historyPlaylists:create and delete playlistsmodify playlists: edit metadata, add/move/remove tracksget playlist contentsget playlist suggestionsUploads:upload songs and remove them againlist uploaded songs, artists and albumsLocalization:all regions are supported (seelocations FAQ16 languages are supported (seelanguages FAQIf you find something missing or broken,
check theFAQor
feel free to create anissue.UsagefromytmusicapiimportYTMusicyt=YTMusic('oauth.json')playlistId=yt.create_playlist('test','test description')search_results=yt.search('Oasis Wonderwall')yt.add_playlist_items(playlistId,[search_results[0]['videoId']])Thetestsare also a great source of usage examples.RequirementsPython 3.8 or higher -https://www.python.orgSetup and UsageSee theDocumentationfor detailed instructionsContributingPull requests are welcome. There are still some features that are not yet implemented.
Please, refer toCONTRIBUTING.rstfor guidance.
Package: youtube-playlist-downloader
YouTube Playlist DownloaderThis package provides a script to download YouTube playlists for a user.
It has been tested with bothCPythonandPyPy.Installationpipinstallyoutube-playlist-downloaderUsageTo use it, you will need to have access to OAuth 2.0 client credentials
for Google developer project. You can followBefore You Startsection inGetting Startedpage. Once your project is created, create OAuth 2.0 client credentials
inconsole.
Download*.jsonfile and use it as asecretfilepositional argument
at command line. The command by default saves user OAuth tokens incredentialsfolder in the working directory. Next time when the script runs from that directory,
reauthentication is not necessary for corresponding profile,
unless--forceoption is used.
Credential folder can also be provided with-eoption.
Credential file path could also be provided with-coption,
and that will override other options.Here are few commands you can:youtube-playlist-downloader-h# For helpyoutube-playlist-downloader\--profilejoe4939\--outfoldermyplaylists\--formatjson\--formatdefault\my_app_client_secret.json
Package: youtube_playlist_randomizer
youtube-playlist-randomizerTakes a youtube list shuffles it around and saves it as a new playlistSummarySince the Chromecast can not shuffle an youtube list, and I sometimes want to just lay back and watch my favourite playlist in random order i came up with this pacakge.
This is a simple python package that takes a youtube playlist as input randomizes it and saves the youtube playlist.Installationpipinstallyoutube-playlist-randomizerCLI Documentation-h,--helpshowthishelpmessageandexit--versionshowprogramsversionnumberandexit-nspecifytheamountofinsertstoexecute-v,--verbosesetlogleveltoINFO-vv,--very-verbosesetlogleveltoDEBUG-iINPUT,--inputINPUTspecifythesecretclientjsonfiledefault='client_secret.json'ConfigThis scripts needs a client_secret.json file you can get one by going togoogle docsand follow step 1 of that tutorial and save the client_secret.json to disk.UsageAfter installing and getting the client secret file just run and follow the instructions in the folder you saved the json file.youtube-playlist-randomizer-iclient_secret.jsonChangelogLicenseMIT
Package: youtube-playman
youtube-playmanDownloads and updates local copies of YouTube PlaylistsA simple yet powerful script to download and manage local copies of youtube music playlistsSetupLinux:Cloning the repository:#clone the repo$gitclonehttps://github.com/animesh-chouhan/yt-comment-scraper.git$cdyoutube-playmanRunning the script:#run the script directly$chmod+x./download.sh
$./download.sh

OR#create a hard link to the local binary folder#this will add the downloader to the path variable$ln./download.sh~/.local/bin/download#directly running the script$downloadAdd Jobs To cron:#creating a cron job that will update the playlists automatically$crontab-e#this will open a editor and add this entry to the file#don't forget the newline after the last entryPATH="/usr/local/bin:/usr/bin:/bin:/home/<YOUR-USERNAME>/.local/bin"@dailyprintf"update-all"|downloadFor more details refer toubuntu cron wiki.Usage exampleClick on the play button to see an example download.For more examples and usage, please refer to theWiki.Built Withyoutube-dl- Command-line program to download videos from YouTubeContributingFork the repo (https://github.com/animesh-chouhan/youtube-playman/)Create your feature branch (git checkout -b feature/fooBar)Commit your changes (git commit -am 'Add some fooBar')Push to the branch (git push origin feature/fooBar)Create a new Pull RequestLicenseMIT License
copyright (c) 2020Animesh Singh Chouhan. Please have a look at thelicensefor more details.
Package: youtube-python
#### Python - Youtube Data API v3youtube-pythonis a simple client for youtube api. It uses [Youtube Data API v3](https://developers.google.com/youtube/v3/).## Installation` sudo pip installyoutube-python`## Using`python from youtube import API api =API(client_id='',client_secret='',api_key='',access_token='optional')`## Referenceshttps://developers.google.com/youtube/v3/docs/videos`python video =api.get('videos',id='B7FJV9KIn58')`## Referenceshttps://developers.google.com/youtube/v3/docs/channels/list`python video =api.get('channels',id='UCLFZ5qAH-l_WiRd_EOzX2og')`## Contributing
[https://github.com/rohitkhatri/youtube-python](https://github.com/rohitkhatri/youtube-python)## Youtube Data API v3
[Youtube Data API v3 Doc](https://developers.google.com/youtube/v3/)
Package: youtube-python-sdk
# youtube-python-sdk===================#### Python - Youtube Data API v3**youtube-python** is a simple client for youtube api. It uses [Youtube Data API v3](https://developers.google.com/youtube/v3/).## Installation```sudo pip install youtube-python```## Using```pythonfrom youtube import YouTubeapi = youtube.YouTube(api_key='')```## References https://developers.google.com/youtube/v3/docs/videos```pythonvideo = api.get('videos', id='B7FJV9KIn58')```## References https://developers.google.com/youtube/v3/docs/channels/list```pythonvideo = api.get('channels', id='UCLFZ5qAH-l_WiRd_EOzX2og')```## Contributing[https://github.com/rohitkhatri/youtube-python](https://github.com/rohitkhatri/youtube-python)## Youtube Data API v3[Youtube Data API v3 Doc](https://developers.google.com/youtube/v3/)
Package: youtuber
Python Package: YouTuberContains several useful features that can be used for youtube related projects.
This package is intended to provide useful features for video editing, including crawling through the YouTube Data API v3 and Selenium.Installationpip install youtuberfromyoutuberimportAutoCrawlerDEVELOPER_KEY="enter_your_dev_api_key"# Enter your DEV API KEY at https://console.cloud.google.com/apis/api/youtube.googleapis.com/credentials?project=sincere-canyon-278402CHOROME_PATH=r'C:\Program Files\chromedriver.exe'# Enter path of 'chromdriver.exe'auto=AutoCrawler(DEVELOPER_KEY,CHOROME_PATH)search_keyword='chatGPT'# Youtube Search Keywordmax_link_len=2# How many videos you target to crawl?max_comment_pg_len=2# How many comment pages you target to crawl?save_path='./enter/any/path/result.csv'df=auto.run(search_keyword,max_link_len,max_comment_pg_len,save_path)TutorialMain tutorial:https://github.com/DSDanielPark/youtuber/blob/main/doc/tutorial.ipynbSub tutorial folder: Tutorials for each function can be found inthis folder.Features1.YoutubeAPIRetrieve YouTube search results.You can get your 'Youtube Data API v3' key inhere, and you can find some guide inhere.fromyoutuberimportYoutubeAPIDEVELOPER_KEY="enter_your_api_key"youtuber_v3=YoutubeAPI(DEVELOPER_KEY)links=youtuber_v3.get_links('chatGPT',3)#YouTube Search Keyword = 'chatGPT', return 3 links.links['https://www.youtube.com/watch?v=xxxxx','https://www.youtube.com/watch?v=xxxxx','https://www.youtube.com/watch?v=xxxxx']2.YoutubeCrawlerRetrieve comment data.fromyoutuberimportYoutubeCrawlerchrome_driver=r'C:\Program Files\chromedriver.exe'youtuber_crawl=YoutubeCrawler(chrome_driver)df=youtuber_crawl.get_comment_df(links,1)#if you enter 1, only 1 page of comments will be searched.df#You can get pd.DataFrame object.References[1] YouTube Data API v3:https://developers.google.com/youtube/v3/getting-started?hl=ko[2] Selenium python:https://selenium-python.readthedocs.io/Important Warning:All legal responsibilities associated with the use of the package lie with the user.The Python package "youtuber" provides code for Python users to easily access data through the YouTube Data API v3 and Selenium. All licenses follow those of the API and dependent packages, and all responsibility for handling data and using the package lies with the user. There is no monetary compensation received for the use of this code, and it should be noted that there is no liability for the use of the code.
Package: youtuber-ai-chatbot
Accurate Answers for YouTube VideosOverviewyoutuber_ai_chatbot is a Python package that utilizes artificial intelligence to provide accurate answers for YouTube videos. It leverages natural language processing techniques to analyze video transcripts and generate responses to user queries.FeaturesExtracts and processes YouTube video transcriptsGenerates accurate answers to user queriesSupports multiple languages for transcript analysisIntegrates with Streamlit for easy deployment and interactionInstallationTo install youtuber_ai_chatbot, use pip:pipinstallyoutuber_ai_chatbotUsageOnce installed, you can import the package and use it in your Python code:fromyoutuber_ai_chatbotimportYouTubeChatbot# Create a chatbot instancechatbot=YouTubeChatbot()# Create a database from a YouTube video URLvideo_url="https://www.youtube.com/watch?v=<video_id>"db=chatbot.create_db_from_youtube_video_url(video_url)# Get a response for a user queryquestion="What is the main topic of the video?"response=chatbot.get_response_from_query(db,question)print(response)ContributingContributions are welcome! If you have any bug reports, feature requests, or suggestions, please open an issue on the project’s GitHub repository.LicenseThis project is licensed under the MIT License. See theLICENSEfile for more information.
Package: youtube-related
Youtube Related Video FetcherInstallationpython3-mpipinstallyoutube-relatedExampleBasic usageimportyoutube_relatedprint(youtube_related.fetch('Some Youtube Video URL'))YouTube’s featured video may be repeated regularly, and deque was used to prevent this.fromyoutube_relatedimportpreventDuplicationAvoider:preventDuplication=preventDuplication()print(Avoider.get('Some Youtube Video URL'))
Package: youtube-rss-subscriber
YouTube RSS SubscriberYouTube RSS Subscriber (yrs) allows you to subscribe to YouTube channels without the
need of a YouTube account.yrsuses a local database (sqlite by default) to keep track of the subscribed channels,
which are updated making use of the RSS feed that YouTube publishes. This update needs to
happen viayrs update, running it either manually or via cron.Installationpip install youtube-rss-subscriberBasic usageFirst you'll need to subscribe to some channels. Lets subsribe to "This Old Tony" as an example:$ yrs subscribe https://www.youtube.com/user/featony
Config file created in /home/mruiz/.yrs/config.yml
Subscribed to "This Old Tony"If this is the first you runyrs, it'll create a config file under your home directory.
By default it also creates an empty sqlite database that will be used to keep track of subscribed
channels and old/new videos. The subscribe command checks the RSS feed for the channel, and records all
the video entries currently published.After subscribing, the channels and the videos can be listed:$ yrs list-channels
ID                        Name           URL                                     Autodownload
------------------------  -------------  ------------------------------------  --------------
UC5NO8MgTQKHAWXp6z8Xl7yQ  This Old Tony  https://www.youtube.com/user/featony               0

$ yrs list-videos "This Old Tony"
ID           Title                           URL                                          Published
-----------  ------------------------------  -------------------------------------------  -------------------
JN-Pkbeu52E  Consoling a Milling Machine     https://www.youtube.com/watch?v=JN-Pkbeu52E  2020-10-31 20:47:14
...The ID of the videos can be used to download them:$ yrs download JN-Pkbeu52E
[youtube] JN-Pkbeu52E: Downloading webpage
[download] Destination: Consoling a Milling Machine-JN-Pkbeu52E.mp4
[download] 100% of 76.29MiB in 00:09After some time, you will probably want to check if there's anything new on your subscribed channels:$ yrs update
Channel:  This Old Tony
Title:  NOW We're Cook'n with Argon!!
URL:  https://www.youtube.com/watch?v=O_Fo7mfZg7k

Channel:  This Old Tony
Title:  VCARVE Branding / Logo Irons - SECRET SANTA 2020!
URL:  https://www.youtube.com/watch?v=f9qN9LIChh4

Channel:  This Old Tony
Title:  Getting a Handle on Ron Covell
URL:  https://www.youtube.com/watch?v=8zb92v5Vz40To unsubscribe from a channel:$ yrs unsubscribe "This Old Tony"
Package: youtube-scraping-api
YouTube-Scraping-APIAn 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.Documentationhttps://ytsa.thecodeblog.netVersions0.0.1 (deleted)Not an official release (careless bug found)0.0.2Freshly uploaded this package to PyPi0.0.3/0.0.4/0.0.5Updated README.md0.1.0Video caption feature added0.1.1Updated README.md0.1.2minor bug fixed on video download1.0.0Major code refactoringChannel feature completedQuery suggestions feature addedDocstring for every methods and classes addedDocumentation added1.1.0Major bug fixedFeature to scrape search query suggestions added1.1.1Version log updated1.1.2Minor bug fixedUser can now parse raw metadata from channel object1.1.3Minor bug fixedProxies added1.1.4get_all_filtersfunction added
Package: youtube-sdk-py
YoutubeSDKPython SDK for accessing Youtube APIs.RequirementsPython 3Requests library$ pip install requestsInstallationInstall from pip$ pip install youtube-sdk-pyUsageYou can just initialize with an api key:importyoutubesdkyoutube=youtubesdk.Connection(api_key='your api key')Access various methods in this format# Channelchannel=youtube.get_channel(channel_id='UCp03YiAWc48Ay9Ew4Nu6_UA')# Videovideo=youtube.get_video(video_id='rbfOxR3OiW8')# Comment Threadscomment_threads=youtube.get_comment_threads(video_id='EkDuCWOHBVU')# Commentscomments=youtube.get_comments(comment_id='UgwNpeGtLn59UjTrW7N4AaABAg')# Playlist Itemsplaylist_items=youtube.get_playlist_items(playlist_id='PL9a4goxNJut0xjwPV4CZlIJUGuOzwrih0')# Playlistsplaylists=youtube.get_playlists(channel_id='UCp03YiAWc48Ay9Ew4Nu6_UA')# Searchsearch=youtube.get_search(channel_id='UCp03YiAWc48Ay9Ew4Nu6_UA',query='full stack')# Quotaapi_units=youtube.api_units_calculator(channel_id='UCp03YiAWc48Ay9Ew4Nu6_UA')# Channel Statistics - This would return data in the below schemachannel_stats=youtube.get_channel_stats(channel_id='UCp03YiAWc48Ay9Ew4Nu6_UA'){'apiUnitsConsumed':api_units,'channelInfo':channel_info,'detailedVideoStats':{'most':{'views':most_viewed_video,'likes':most_liked_video,'dislikes':most_disliked_video,'comments':most_comments_video},'least':{'views':least_viewed_video,'likes':least_liked_video,'dislikes':least_disliked_video,'comments':least_comments_video}}}LicenseThis project is licensed under the MIT License - see theLICENSEfile for details
Package: youtube-search
youtube_searchPython function for searching for youtube videos to avoid using their heavily rate-limited APITo avoid using the API, this uses the form on the youtube homepage and scrapes the resulting page.Example UsageFor a basic search (and all of the current functionality), you can use the search tool as follows:pip install youtube-searchfromyoutube_searchimportYoutubeSearchresults=YoutubeSearch('search terms',max_results=10).to_json()print(results)# returns a json string########################################results=YoutubeSearch('search terms',max_results=10).to_dict()print(results)# returns a dictionary
Package: youtube-search-fork
youtube_search-forkThis fork adds the ability to search for channels, latest content of a channel, channel information, channel vidoes, and adds videos published date and channelId.
It works scrapping the Youtube pages.Search on youtube avoiding the use their heavily rate-limited API.No need for Google account.No limits.Reasonably fast.Installationpip install youtube-search-forkExample UsageFor a basic search (and all of the current functionality), you can use the search tool as follows:Get Youtube channel videos and channel info and parse it to JSON.fromyoutube_searchimportYoutubeSearchvideos=YoutubeSearch('search terms',max_results=10).videos_to_json()channels=YoutubeSearch('search terms',max_results=10).channels_to_json()This will get all the videos from the search query intovideosand all the found channels intochannelsand parse it in a JSON format.Get Youtube search videos and channels and parse it to a dict.fromyoutube_searchimportYoutubeSearchvideos=YoutubeSearch('search terms',max_results=10).videos_to_dict()channels=YoutubeSearch('search terms',max_results=10).channels_to_dict()This will get all the videos from the search query intovideosand all the found channels intochannelsand parse it in a Python dictionary.Get a specific channel info and videos:fromyoutube_searchimportYoutubeSearchdata=YoutubeSearch.channelInfo(channel_id)channelInfo=data[0]channelVideoList=data[1]This will get all the videos and their data from the specified channel (channelID needed) intochannelVideoListand the channel data (suscribers, username, etc) intochannelVideoList.You can requestonlythe channel info:fromyoutube_searchimportYoutubeSearch# The second (and optional) parameter is `includeVideos`. By default is se to True.channelOnlyData=YoutubeSearch.channelInfo(channel_id,False)channelInfo=data[0]Same as before, but just the channel data.FormatsChannel info format:{'id': 'UCjr2bPAyPV.....8Q', 'name': 'Channel Name', 'avatar': 'https://yt3.ggpht.com/a/AATXAJzuPoT_2M54dus-P2qXgnbY0MPxbkzvwv3muxQn=s176-c-k-c0x00ffffff-no-rj', 'subCount': '24K'}Video list format:[{'videoTitle': 'Video title goes here', 'id': 'video_id_here', 'channelName': 'Channel Name', 'timeStamp': '17 hours ago', 'views': '13,661 views', 'videoThumb': 'https://i.ytimg.com/vi/3eC4Hp4MNBA/hqdefault.jpg?sqp=-oaymwEiCKgBEF5IWvKriqkDFQgBFQAAAAAYASUAAMhCPQCAokN4AQ==&rs=AOn4....5o_2mazZd40g_xc_3917M5w', 'channelUrl': '/channel/UCjr2bPA.......gT3W8Q'}, {...}, {...}, ...]
Package: youtube-search-music
youtube_searchPython function for searching for youtube music videos wrapping the youtube api to automaticly search for music.Example UsageFor a basic search (and all of the current functionality), you can use the search tool as follows:pip install youtube-search_musicfromyoutube_search_musicimportYoutubeMusicSearchresults=YoutubeSearch('YOURAPIKEY').search(query)print(results)