Saravanan666/pypi-org huggingface dataset:
Package: youtube-data-api
YouTube Data APIThis is a Python client for theYouTube Data API. Theyoutube-data-apipackage is a wrapper to simplifyGET requestsand JSON response parsing from the API. This package was written for version 3 of the API, with some minor future proofing.InstallWe recommend youinstall this module using pip:pip install youtube-data-apiIf you want to use it from source, you'll have to install the dependencies manually:pip install -r requirements.txtQuickstartIn order to access the API, you'll need to get aservice keyfrom theGoogle Cloud Console.Once you have it you can use the API key to initiate theYouTubeDataAPIclass.from youtube_api import YouTubeDataAPI

api_key = 'AKAIXXXXXXXX'
yt = YouTubeDataAPI(api_key)

yt.search('alexandria ocasio-cortez')Theytobject calls functions that automate the collection of data fields that are both visable and not-visable to everyday users.Please refer to thedocumentationfor details.TestingStatic json files used for test are stored in./tests/data.
To test, command line inputmake test.
For further information, please refer to./tests/readme.md.AuthorsWritten by Leon Yin and Megan Brown. Michael Liu helped write and document tests.If you use this software in your research please cite it as:@misc{leon_yin_2018_1414418,
  author       = {Leon Yin and
                  Megan Brown},
  title        = {SMAPPNYU/youtube-data-api},
  month        = sep,
  year         = 2018,
  doi          = {10.5281/zenodo.1414418},
  url          = {https://doi.org/10.5281/zenodo.1414418}
}ContributionsWe are actively seeking core maintainers and contributors!
We will be documenting best practices and procedures for contributing code
If you see a typo or documentation that is not clear, please make a pull request!
Package: youtube-data-api3
# youtube_dataA python3 library to interact with Youtube Data API.[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
[![CircleCI](https://circleci.com/gh/vtalks/youtube_data_api3.svg?style=svg)](https://circleci.com/gh/vtalks/youtube_data_api3)
[![codecov](https://codecov.io/gh/vtalks/youtube_data_api3/branch/master/graph/badge.svg)](https://codecov.io/gh/vtalks/youtube_data_api3)## LicenseCopyright © 20015-2018 vtalks.net authors.Licensed under the Apache License, Version 2.0 (the “License”);
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Package: youtube_data_extractor
youtube_data_extractorThis is a package that allow you to extract useful information about any youtube video!Installation$pipinstallyoutube_data_extractorUsageTODOContributingInterested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.Licenseyoutube_data_extractorwas created by YunhongFeng. It is licensed under the terms of the MIT license.Creditsyoutube_data_extractorwas created withcookiecutterand thepy-pkgs-cookiecuttertemplate.
Package: youtube-data-py
Getting Started with YouTube Data Api SearchIntroductionSearch for videos on YouTubeInstall the PackageThe package is compatible with Python versions2 >=2.7.9and3 >=3.4.
Install the package from PyPi using the following pip command:pipinstallyoutube-data-py==1.0You can also view the package at:https://pypi.python.org/pypi/youtube-data-pyInitialize the API ClientNote:Documentation for the client can be foundhere.The following parameters are configurable for the API Client:ParameterTypeDescriptionhttp_client_instanceHttpClientThe Http Client passed from the sdk user for making requestsoverride_http_client_configurationboolThe value which determines to override properties of the passed Http Client from the sdk usertimeoutfloatThe value to use for connection timeout.Default: 60max_retriesintThe number of times to retry an endpoint call if it fails.Default: 0backoff_factorfloatA backoff factor to apply between attempts after the second try.Default: 2retry_statusesArray of intThe http statuses on which retry is to be done.Default: [408, 413, 429, 500, 502, 503, 504, 521, 522, 524]retry_methodsArray of stringThe http methods on which retry is to be done.Default: ['GET', 'PUT']The API client can be initialized as follows:fromyoutubedataapisearch.youtubedataapisearch_clientimportYoutubedataapisearchClientfromyoutubedataapisearch.configurationimportEnvironmentclient=YoutubedataapisearchClient(environment=Environment.PRODUCTION,)List of APIsSimple SearchClasses DocumentationUtility ClassesHttpResponseHttpRequest
Package: youtube-django
youtube-djangodocstestspackageInstall$pipinstallyoutube-djangoAdd'youtube_django'to your settings.INSTALLED_APPS=[# [...]'youtube_django',]Run migrations:$pythonmanage.pymigrateAdd the following Google Oauth Settings to yoursettings.py:GOOGLE_OAUTH2_CLIENT_ID = '<Your Client ID from Google Developer Console>'
GOOGLE_OAUTH2_CLIENT_SECRET = '<Your Client Secret from Google Developer Console>'
GOOGLE_OAUTH2_CALLBACK_VIEW = 'oauth2callback'  # your oauth callback view nameAdd your views.Example:fromyoutube_django.viewsimport(VideoUploadView,AuthorizeView,Oauth2CallbackView,)urlpatterns=[path('^yt/upload/',VideoUploadView.as_view(),name='video_upload'),path('^yt/authorize/',AuthorizeView.as_view(),name='authorize'),path('^yt/oauth2callback/',Oauth2CallbackView.as_view(),name='oauth2callback')]
Package: youtubedlapi-server-infusiblecoder
youtubedlapi-server-infusiblecoderA REST API server for getting the info for videos from different sites, powered byyt-dlp.
The installation instructions and the documentation are available atRead the Docs.Aboutyoutubedlapi-server-infusiblecoderis released to the public domain, read theLicensefor more info.Exampleyoutubedlapi-server-infusiblecoder -p 8000 --host 127.0.0.1 --number-processes 1oryoutubedlapi-server-infusiblecoder -p 9191 --host 0.0.0.0 --number-processes 1or for running in bacgroundnohup youtubedlapi-server-infusiblecoder -p 9191 --host 0.0.0.0 --number-processes 1 &Run in BG with A Repeted Job To Restart Server When Its Downcreate a script named 'bgapi.sh' add below code in the filewhile true
do
youtubedlapi-server-infusiblecoder -p 9191 --host 0.0.0.0 --number-processes 1
sleep 2500
donesave it then run this command to run it in the BGnohup ./bgapi.sh &
Package: youtube-dl-cli
A tool that can download the video from youtube and easier to use.1INSTALLpip install youtube-dl-cli2USAGEbatch_run
       [-h] [-f [YLFormat [YLFormat ...]]] [--output_dir OUTPUT_DIR]
       [--write_thumbnail] [-q]
       [URL [URL ...]]

positional arguments:
  URL                   youtube URL

optional arguments:
  -h, --help            show this help message and exit
  -f [YLFormat [YLFormat ...]], --format [YLFormat [YLFormat ...]]
                        The output format. m4a mp4_144p mp4_240p mp4_360p
                        mp4_480p mp4_720p mp4_1080p gp3_176_144 gp3_320_240
                        flv webm mp4_640_360 mp4_1280_720 default:
                        mp4_640_360
  --output_dir OUTPUT_DIR
                        output directory. default: USERPROFILE/Music/my_music/
  --write_thumbnail     Write the thumbnail image to a file
  -q, --quite           Do not print messages to stdout.full command:ydl_cli batch_run "url_1" "url_2"--output_dir="C:/Users/Carson/Downloads"--formatm4a mp4_144p--quiet--write_thumbnailvoice only  :ydl_cli batch_run "url_1"-fm4a3RELEASE NOTE3.10.1.2Add ydl_cmd: You can launch the scripts by the commandydl_cliandydl_cmd.bug-fixes: The output_dir does not work.3.20.1.1publish to PyPI3.30.1.0create setup..circleci/config.yml3.40.0.1create CLI3.50.0.0creating a core class: YoutubeKeeper
Package: youtubedown
youtubedownAsynchronous download using a simple created youtube_dl.Required: ffmpegtesting python version 3.8AsynchronousimportasynciofromyoutubedownimportasyncDownasyncdefmain():Main=awaitasyncDown.lookup(title="My Songs title or url",path="./music_folder/music",format="mp3")# path = music_folder in music.mp3download=awaitMain.download()#return json and install mp3 fileasyncio.run(main())Examples of source codes can be found through"Click".An example of a return value can be found through"Click".
Package: youtube-download-cli
YouTube Download CLIAn elegant CLI tool built in Python that allows you to download videos from YouTube both as MP4 video files and as MP3 audio files.UsageI tried to keep it as basic as possible, after installation the tool can be accessed from terminal. You need to specify a YouTube URL for download. An optional mode to switch between video & audio (mp4 or mp3) downloads. And an optional output directory path. By default all downloaded files will be saved in current working directory from which you launched this script.This tool was tested on MacOS and Ubuntu, and probably won't work on Windows.Helpleo@c6p2~%youtube-download-cli-h

usage:youtube-download-cli[-h][-o[o]][U][M]positionalarguments:Uyoutubevideourlwhichneedstobedownloaded,like"https://www.youtube.com/watch?v=Fd_3EkGr0-4"or"https://youtu.be/Fd_3EkGr0-4"Mdownloadmodecanbe"mp3"/"mp4"/"audio"/"video"optionalarguments:-h,--helpshowthishelpmessageandexit-o[o]outputdirectory(optional,defaultstocurrentworkingdirectory)Download as MP4 videoyoutube-download-cli"https://www.youtube.com/watch?v=Fd_3EkGr0-4"youtube-download-cli"https://www.youtube.com/watch?v=Fd_3EkGr0-4"mp4
youtube-download-cli"https://www.youtube.com/watch?v=Fd_3EkGr0-4"video
youtube-download-cli"https://www.youtube.com/watch?v=Fd_3EkGr0-4"-o"/Users/leo/Downloads"youtube-download-cli"https://www.youtube.com/watch?v=Fd_3EkGr0-4"mp4-o"/Users/leo/Downloads"youtube-download-cli"https://www.youtube.com/watch?v=Fd_3EkGr0-4"video-o"/Users/leo/Downloads"Download as MP3 audioyoutube-download-cli"https://www.youtube.com/watch?v=Fd_3EkGr0-4"mp3
youtube-download-cli"https://www.youtube.com/watch?v=Fd_3EkGr0-4"audio
youtube-download-cli"https://www.youtube.com/watch?v=Fd_3EkGr0-4"mp3-o"/Users/leo/Downloads"youtube-download-cli"https://www.youtube.com/watch?v=Fd_3EkGr0-4"audio-o"/Users/leo/Downloads"InstallationNormal installationpipinstallyoutube-download-cliDevelopment installationgitclonehttps://github.com/jpleorx/youtube-download-cli.gitcdyoutube-download-cli
pipinstall--editable.LinksIn case you’d like to check my other work or contact me:Personal websiteGitHubPyPIDockerHubArticles on MediumLinkedIn (feel free to connect)
Package: youtube-downloader
Youtube downloader is aGUIhelper foryoutube-dl. It provides a graphical interface to download videos from YouTube.com with conveniences like track the download, pause, or select the media format.PreviewDependencyThis software is based onPySide2andyoutube-dl.UsageYoutube downloader’s goal is comfort. To add your download you can just paste the link into the input and hit enter or press button but I strongly recommend to drag a youtube video’s thumbnail and drop it into youtube downloader.Web Browser integrationYoutube Downloader is integrated with Firefox, that's mean it will read currently opened tabs with YouTube's links. It provides a feature to quick download currently played videos from YouTube.ThemeTheme can be customized.InstallationPrepare youtube downloader to work.Manualgitclonehttps://github.com/blooser/youtube-downloader&&cdyoutube-downloader
pythonsetup.pybuild
sudosetup.pyinstallPyPipipinstallyoutube-downloaderLicenseYoutube downloader is a free software released under theGPLv3.
Package: youtube-downloaders
How to useDependencypytubeflaskCLIUSAGEusage: Download [-h] [-v] [-gui] [-web] {video,playlist} ...

Download Youtube CLI

positional arguments:
  {video,playlist}
    video              video to download
    playlist           playlist to download

options:
  -h, --help           show this help message and exit
  -v, --version        show program's version number and exit
  -gui, --gui_console  download videos using Graphical Interface
  -web, --web_console  download videos using Web ConsoleTo download single video:youtube_download video -url "https://www.youtube.com/watch?v=7uCpVOSXk8I" -save "C:\Users\im530\Downloads\dtdt"To download entire playlist:youtube_download playlist -url "https://www.youtube.com/playlist?list=PLW489siXAtnoA_fOdIzMHU8gAZHHfp-T5" -save "C:\Users\im530\Downloads\dtdt" -num 2num : How many videos to be downloaded parallelly.To load the web page:youtube_download -weburl to visithttp://127.0.0.1:5789/InputResponseTo load the GUI:youtube_download -guiInputResponse
Package: youtube-easy-api
An Easy Wrapper for YouTube Data API 3.0This module provides you an easy interface to extract YouTube video metadata including title, comments, and stats. You
must setup yourAPI KEYbefore being able to use this module. If you have your Google API key, you can skip this
section; otherwise, check out this video:Getting Started - Creating an API Key and Querying the API.
You must enter theAPI_KEYwhen you want to initialize theyoutube-easy-apimodule. Check out the examples below.
For more detailed description, you can read this article:An Easy Python Wrapper for YouTube Data API 3.0InstallThe module requires the following libraries:google-api-python-clientgoogle-auth-oauthlibgoogleThe, it can be installed using pip:pip3installyoutube-easy-apiMake sure thepipis upgraded to the latest version.UsageThe module currently support the methods below.search_videosget_metadataYou can search YouTube service by passing asearch_keywordto thesearch_videosmethod. You will
receive an ordered lists of videos according to the search configs.fromyoutube_easy_api.easy_wrapperimport*easy_wrapper=YoutubeEasyWrapper()easy_wrapper.initialize(api_key=API_KEY)results=easy_wrapper.search_videos(search_keyword='python',order='relevance')order_id=1video_id=results[order_id]['video_id']print(video_id)'_uQrJ0TkZlc'You can also extract the metadata of a video by passing itsvideo_idto the methodget_metadata.fromyoutube_easy_api.easy_wrapperimport*easy_wrapper=YoutubeEasyWrapper()easy_wrapper.initialize(api_key=API_KEY)metadata=easy_wrapper.get_metadata(video_id='rdjnkb4ONWk')print(metadata['title'])'The Pink Panther Show Episode 59 - Slink Pink'print(metadata['statistics']['likeCount'])285373And, that's pretty much it!
Package: youtube-extract
youtube_extractExtract metadata for all videos from a youtube channel and exports it into a csv or xlsx file.Be sure to read the csv file using the tab character\tas field separator in your spreadsheet software of choice.As of now it's quite slow and unpredictable, expect ~400 seconds for extracting all videos metadata from a channel containing 400 videos.Fields extractedFieldDescriptionauthorChannel Namechannel_urlChannel URLtitleVideo Titlewebpage_urlVideo URLview_countView Countlike_countLike CountdurationDuration in secondsupload_dateUpload Date in YYYYMMDD FormattagsTagscategoriesCategoriesdescriptionDescriptionthumbnailThumbnail URLbest_formatHighest Format Availablefilesize_bytesFilesize in bytesRequirementspython >=3.8yt-dlppandasopenpyxlInstallationPreferred install methodpip install youtube_extractIf you are an Archlinux user, you can install the AUR packageyoutube_extract-git.Run from sourceFirst method (installing the youtube_extract package)git clone https://github.com/dbeley/youtube_extract
cd youtube_extract
python setup.py install
youtube_extract -hSecond method (installing only the dependencies)git clone https://github.com/dbeley/youtube_extract
cd youtube_extract
pip install -r requirements.txt
python -m youtube_extract -hThird method (installing the youtube_extract package with pipenv)git clone https://github.com/dbeley/youtube_extract
cd youtube_extract
pipenv install '-e .'
pipenv run youtube_extract -hUsageIf installed :youtube_extract CHANNEL_URL
# or xlsx format
youtube_extract CHANNEL_URL -e xlsxOtherwise, in the directory containing the source code :python -m youtube_extract CHANNEL_URL
# or xlsx format
python -m youtube_extract CHANNEL_URL -e xlsxHelpyoutube_extract -husage: youtube_extract [-h] [--debug] [-e EXPORT_FORMAT] [channel_url]

Extract metadata for all videos from a youtube channel into a csv or xlsx
file.

positional arguments:
  channel_url           Youtube channel url.

optional arguments:
  -h, --help            show this help message and exit
  --debug               Display debugging information.
  -e EXPORT_FORMAT, --export_format EXPORT_FORMAT
                        Export format (csv or xlsx). Default : csv.
Package: youtube-extractor
youtube_extractorA utility to extract YouTube video IDs from URLs.InstallationYou can install the package using pip:pip install youtube-extractorUsageTo use this package in your Python application, follow these steps:Import the packagefrom youtube_extractor import extract_video_id_from_urlExtract Video ID from URLvideo_url = 'https://www.youtube.com/watch?v=VIDEO_ID'
video_id = extract_video_id_from_url(video_url)

if video_id:
    print(f'Extracted YouTube Video ID: {video_id}')
else:
    print('Invalid YouTube URL')Replace VIDEO_ID with the actual video ID you want to extract.You can also use the package to extract video IDs from short URLs or YouTube Shorts URLs.Example:short_url = 'https://youtu.be/VIDEO_ID_SHORT'
video_id_short = extract_video_id_from_url(short_url)

if video_id_short:
    print(f'Extracted YouTube Video ID (Short): {video_id_short}')
else:
    print('Invalid YouTube Short URL')Run your application, and you'll be able to extract YouTube video IDs from the provided URLs.LicenseThis package is distributed under the MIT License. See the LICENSE file for more details.Issues and ContributionsIf you encounter any issues or have suggestions for improvements, please open an issue on the GitHub repository.Contributions are welcome! Fork the repository, make your changes, and submit a pull request.CreditsThis package was created by Super Nived.SupportFor questions or support, you can reach out tonivedchandran7@gmail.com
Package: youtube-history-analysis
youtube-history-analysisDocumentation:https://armanckeser.github.io/youtube-history-analysisSource Code:https://github.com/armanckeser/youtube-history-analysisPyPI:https://pypi.org/project/youtube-history-analysis/See how your YouTube interests evolved over timeInstallationpython-mvenvyt-history-venv# On Windows ./yt-history-venv/Scripts/activate.bat# On MAC source ./yt-history-venv/bin/activatepipinstallyoutube-history-analysisUsageGet a YouTube API KeyVisit theGoogle Cloud Console.Click the project drop-down and select or create the project for which you want to add an API key.Click the hamburger menu and select APIs & Services > Credentials.On the Credentials page, click Create credentials > API key.The API key created dialog displays your newly created API key.Remember to restrict the API key so that it can only be used with certain websites or IP addresses by clicking the Edit button for the API key and then setting the restrictions in the Key restriction section.Get your YouTube History as JSONVisitGoogle Takeoutand sign in to your Google account.Scroll down to the "YouTube" section and click All data included.Click the Deselect All button and then select the checkbox next to Watch history.Click the Next button at the bottom of the page.On the next page, you can select the file type and delivery method for your takeout. Make sure to select JSON as the file type.Click the Create export button to start the export process.Once the export is complete, you will receive an email with a link to download your takeout. The downloaded file will be a zip archive containing your YouTube watch history in JSON format.python-myoutube_history_analysis$API_KEY--watch-history-file-path$WATCH_HISTORY_JSON_PATHThis will create anoutputsfolder with a bunch of.csvfiles and a few.pngfiles. Feel free to use the.csvfile to do your own analysis.DevelopmentClone this repositoryRequirements:PoetryPython 3.9+Create a virtual environment and install the dependenciespoetryinstallActivate the virtual environmentpoetryshellTestingpytestDocumentationThe documentation is automatically generated from the content of thedocs directoryand from the docstrings
of the public signatures of the source code. The documentation is updated and published as aGithub project pageautomatically as part each release.ReleasingTrigger theDraft release workflow(pressRun workflow). This will update the changelog & version and create a GitHub release which is inDraftstate.Find the draft release from theGitHub releasesand publish it. When
a release is published, it'll triggerreleaseworkflow which creates PyPI
release and deploys updated documentation.Pre-commitPre-commit hooks run all the auto-formatters (e.g.black,isort), linters (e.g.mypy,flake8), and other quality
checks to make sure the changeset is in good shape before a commit/push happens.You can install the hooks with (runs for each commit):pre-commitinstallOr if you want them to run only for each push:pre-commitinstall-tpre-pushOr if you want e.g. want to run all checks manually for all files:pre-commitrun--all-filesThis project was generated using thewolt-python-package-cookiecuttertemplate.
Package: youtubeinfo
Youtube-InfoMake YouTube queries and get information from videos (including captions, likes, titles, etc.) ready for Jupyter Notebooks.InstallationpipinstallyoutubeinfoUSAGECreate a search objectimportyoutubeinfo.coreasytyt_search=yt.search("Test",developer_key=<YOUR_YOUTUBE_DEVELOPER_KEY>)yt_search.df# DataFrame with YouTube infos (likes, views, title, etc.)Output example:videoIdpublishedAtchannelIdtitle…viewCountlikeCountdislikeCountfavoriteCountcommentCountabcde12342021-06-01 10:00:00+00:00abcde1234abcVideo title example 1…1000006000300200abcde12352021-06-01 11:00:00+00:00abcde1234abcVideo title example 2…2000005000401210abcde12362021-06-01 12:00:00+00:00abcde1234abdVideo title example 3…1000004000500150…………………………Developer keyTo useyoutubeinfoa Google YouTube developer key needs to be created followinghttps://developers.google.com/youtube/registering_an_application?hl=enand can be set as environment variable.Developer key as environment variableLinux: edit ~/.profile and add as last line of code:exportYOUTUBE_DEVELOPER_KEY=<YOUR_YOUTUBE_DEVELOPER_KEY>CaptionsTo get captions, use the argumentcaptions=Trueimportyoutubeinfo.coreasyt# YOUTUBE_DEVELOPER_KEY is not necessary if was set as environment variableyt_search=yt.search("Test",caption=True)yt_search.df# A new column with captions "video_caption" will appearOutput example:videoIdpublishedAtchannelIdtitle…commentCountvideo_captionabcde12342021-06-01 10:00:00+00:00abcde1234abcVideo title example 1…200What they say; words and more words; thanks for watchingabcde12352021-06-01 11:00:00+00:00abcde1234abcVideo title example 2…210Noneabcde12362021-06-01 12:00:00+00:00abcde1234abdVideo title example 3…150Words and more words and more words; thanks for watching…………………
Package: youtubeless
youtubelessGet youtube video information and download links by url!btw i don't know why u need to use this instead of youtube-dl ¯_(ツ)_/¯Usageimport youtubeless

try:
    res = youtubeless.search("https://www.youtube.com/watch?v=UOSF9YCfTB8")
except youtubeless.WrongUrlException:
    print(f"You give me wrong url :/.")
except youtubeless.VideoNotAvailableException as ex:
    print(f"Oh no, this video not available because of {ex}")
else:
    print(f"Oh, {res.author}, i like this boy!")
    if not res.formats:
        print("There is no downloadable formats")
    else:
        print("There are so many download links... Which one should I choose?")
        print(*[f"{f} {f.url}" for f in res.formats], sep='\n')  # all types have __str__ method!It has sync and async search methods:search_async- requiresaiohttpinstalledsearch- requiresrequestsinstalledThey are not installed with library by default!InstallationTo install youtubeless, simply:$ pip install youtubelessAnd don't forget to install aiohttp$ pip install aiohttpor requests$ pip install requsts