Saravanan666/pypi-org huggingface dataset:
Package: yt.recipe.relativeworkaround
# yt.recipe.relativeworkaroundThis is a buildout recipe that will fix an annoying with buildout: when therelative-paths options is turned on, it will still use the absolute path when referencingthe buildout root:# buildout.cfg[buildout]relative-paths = true[scripts]recipe = z3c.recipe.scripts:scriptseggs =fabricinterpreter = pythonThe result is absloute paths still added in various places:$ cat parts/scripts/site.py | grep `pwd`'/Users/yusuket/stash/TOOL/shipit'Run this recipe at the end of your build, and it will do it's best tocorrect them to the proper values.
Package: yt-ripper
Terminal scriptto download videos and convert tomp3By JonaThis script will be one of my tools to learn python and terminal utilitiesImportantThe dependencies of this script is the packagepython3,pytube,coloramaand ffmpeg in linuxif you dont have pip install with:apt install python3-pipOr your package manager for your distroAnd install ffmpeg with the command:In Debian and Ubuntu Based:apt install ffmpegIn Fedora and CentOS:dnf install ffmpeg ffmpeg-develIn ArchLinux:pacman -R ffmpeg4.0And verify you have ffmpeg with:ffmpeg --versionInstallationpip install yt_ripperInit virtual envpython3-mvenv.envinstall Dependenciespipinstall-rrequirements.txtRun clipython3yt_ripper/main.pyDemo Video
Package: ytrss
Program to automatic download any types of files from Internet.DescriptionYTRSS is a program that checks defined sources and downloads a movie or sound files
from them and arrange them to podcast files. It can be highly configured with many plugins
that add any other destinations.The program in basic version useyoutube_dlscript to download files, so it cooperates
with all services implements by this library. However user can extends this capabilities by
his own custom plugins with external Downloaders.InstallationThe installation can be carried out in two ways. You can download
packages from PyPi repository or install it from sources.For installation from PyPi you can usepipprogram. It is likely
that you must usepip3insteadpip.pip install ytrssYou can also use source from github repository to installytrss. To
make that download code and invoke command:python setup.py installTo checking the installation you can use to callytrss. Unittest can be also
helpful with verification.Unit testytrsshave a few unittest that you can use to checking code correctness. You can
call it fromsetup.pyfile or usingytrss.testsmodule after installation. Check
one of below command and try it yourself.python setup.py test
python -m ytrss.testsOther informationFor more information about installation, configuration and bash completion read the documentation.AuthorRafal Kobelrafalkobel@rafyco.pl
Package: ytsaurus-pyspark
Apache SparkSpark is a unified analytics engine for large-scale data processing. It provides
high-level APIs in Scala, Java, Python, and R, and an optimized engine that
supports general computation graphs for data analysis. It also supports a
rich set of higher-level tools including Spark SQL for SQL and DataFrames,
MLlib for machine learning, GraphX for graph processing,
and Structured Streaming for stream processing.https://spark.apache.org/Online DocumentationYou can find the latest Spark documentation, including a programming
guide, on theproject web pagePython PackagingThis README file only contains basic information related to pip installed PySpark.
This packaging is currently experimental and may change in future versions (although we will do our best to keep compatibility).
Using PySpark requires the Spark JARs, and if you are building this from source please see the builder instructions at"Building Spark".The Python packaging for Spark is not intended to replace all of the other use cases. This Python packaged version of Spark is suitable for interacting with an existing cluster (be it Spark standalone, YARN, or Mesos) - but does not contain the tools required to set up your own standalone Spark cluster. You can download the full version of Spark from theApache Spark downloads page.NOTE:If you are using this with a Spark standalone cluster you must ensure that the version (including minor version) matches or you may experience odd errors.Python RequirementsAt its core PySpark depends on Py4J, but some additional sub-packages have their own extra requirements for some features (including numpy, pandas, and pyarrow).
Package: yts-downloader
yts-downloader ·Python CLI to download YTS movies using their APITutorials and helpful contentrealpythonDemystefying Setuptools Entry PointsPython Packaging from Init to DeployUsageyts-downloader -hfor helpyts-downloader <movie name>to search for the movie inyts.amdatabase and download it.eg:yts-downloader 'aquaman'Buildingpython setup.py sdist bdist_wheelDeploying on TestPyPItwine upload --repository-url https://test.pypi.org/legacy/ dist/*Deploying on PyPItwine upload dist/*:tada: Live here:yts-downloader:tada:Download via:pip install yts-downloaderPS: I, in no way support piracy. This "tool" was created as a simple application of their APIHistory0.1.0 (2019-05-02)First release0.1.1 (2019-05-02)Potential bug fix0.1.2 (2019-08-04)Upper case movie title bug fix
Package: yt-songs
YT Songs searches, downloads and normalizes the titles of a list of songs from youtube using youtube-dl.InstallationInstall with pip:pipinstall-Uyt-songsUsageCreate a songs file liketest_songsand run:yt-songsgetSONGS_FILEDST_FOLDEROptions:-vor–verboseto print the full youtube-dl output.-sor–skipto skip the normalization.-nNUMBER or–numberNUMBER to download a search result other than the first.-cFILE or–configFILE to use a different  config file. It may be useful to have multiple config files for different needs.ConfigurationSince yt-songs runs on top of youtube-dl, anyyoutube-dl optioncan be used for yt-songs, with exception ofloggerandprogress_hooks, which are set internally.The following command opens the YAML config file in the user’s preferred editor:yt-songsconfig-eThe options for yt-songs are:name_templateAname templatefor youtube-dl’s output. This option overwrites its youtube-dl analogue outtmpl in ydl_opts.temp_folderA temporary folder to store the files before normalizing the titles.replacementsThe replacements to perform with regular expressions in order to normalize the titles.ydl_optsYoutube-dl options.RequirementsFFmpegorLibavPython >= 2.7 or >= 3.3LicenseMIT licensed. See the bundledLICENSEfile for more details.
Package: ytsort
YTSortThis program sorts the already downloaded youtube videos present in a folder by renaming them and adding serial number before their names.RequirementsYoutube Data API v3 is required. Get it fromhereInstallRecommended (To install pipx clickhere)pipx install ytsortorpip install ytsortOr upgrade by:pipx upgrade ytsortorpip install --upgrade ytsortUsageSet Youtube API Key to the environment variable 'YOUTUBE_DATA_API_KEY' (for ease of use, but not required).Execute:ytsortUsage: ytsort [OPTIONS]

Options:

  -c, --character TEXT    Character after serial.
  -z, --zero              Add zero before serial numbers to make them all of
                          equal length.
  -x, --nozero            Don't add zero before serial numbers.
  -d, --defaults          Change the default configurations and exit.
  -r, --remove-serial     Remove the serial numbers from the local files upto
                          the given character
  --help                  Show this message and exit.Install from sourcePoetry is required. For installation clickhere.Download the source and install the dependencies by running:git clone https://github.com/aqdasak/YTSort.git
cd YTSort
poetry installNot required but for ease of usea) Set Youtube API Key to the environment variable 'YOUTUBE_DATA_API_KEY'orb) edit theconfig.py:'api_key': os.environ.get('YOUTUBE_DATA_API_KEY'),to'api_key': <Your Youtube API key>,RunIn the source folder containing pyproject.tomlpoetry shellthen cd into the folder containing youtube videos and execute:ytsort
Package: ytspace
YT-SpaceA terminal based YouTube video and music downloader, it uses the python package calledpytubeto download them from YT.This is my school project on Python-MySQL connectivity.InstallationTo install this project, clone this repository and runmain.py. You need to have Python3.6 or newer and MySQL server installed already. To install other required modules, execute this in your terminal.$ pip install mysql-connector pytubeNow clone this repository and runmain.py$ git clone https://github.com/Yugam4254/YT-Space.git
$ cd YT-Space
$ python main.pyHow To UseAfter runningmain.pyyou'll be prompted to enter your local MySQL server username and password.After the successful login, you can choose from the following 8 menu options to continue.Example of downloading a song:Thank you for checking out my project.
Package: yt-stream-recorder
yt_stream_recorderScript for recording YouTube streams. You only need to run it once, and while it is running it will record all streams on the selected channelnavigationinstallationinstallation via terminallicenseinstallationyt_stream_recorder.sh- for linuxyt_stream_recorder.bat- for windowsjust download and runinstallation via terminalinstall on linux:curl -sSL gmankab.github.io/yt_stream_recorder.sh | shinstall on any os:pip install yt_stream_recorderlaunch on any os:python -m yt_stream_recorderlicensegnu gpl 3
Package: ytstudio
Youtube StudioUnofficial Async YouTube Studio API. Set of features limited or not provided by official YouTube API!This is the Python version ofthis project. All thanks going to@adasq:)InstallationYou can install withPIP.pip install ytstudioFeaturesLook at the documentation:Click hereFully AsyncUploading Video-Example(NOT LIMITED- official API's videos.insert charges you 1600 quota units)Deleting Video-ExampleEdit Video-ExampleGet Video(s)-ExampleLoginYou need cookies for login. Use an cookie manager(EditThisCookie) forneeded cookies.Also you need SESSION_TOKEN for (upload/edit/delete) video.How to get Session Token?TO-DOBetter DocumentationBetter TestsMore FunctionsAuthorYusuf Usta,yusuf@usta.emailNoteThis library is in no way affiliated with YouTube or Google. Use at your own discretion. Do not spam with this.
Package: ytsub
=====ytsub=====ytsub provides a command-line interface to do things with your Youtube subscriptions. You might find it most useful for filtering thosevideos using grep, or setting up an auto-downloader using the excellentyoutube-dl. An example usage might look like this::$ ytsub list | grep 'FTB\|Feed The Beast' | awk -F"\t" '{print $2}' | tee >(youtube-dl -a /dev/stdin >/dev/tty) | ytsub mark-watchedThe above gets list of all unwatched subscription videos, filters out ones that don't include the string 'FTB' or 'Feed The Beast' in their titles, gets youtube-dl to start downloading them, and marks them as watched.install=======Installing is pretty easy on linux systems1. Install pip (python package manager) if you don't have it::$ sudo apt-get install python-pip2. Download ytsub.  To get the latest stable release, head to https://github.com/JWill392/ytsub/tags and click one of the download links for the latest tag.3. Open archive, take out the archive in /dist -- should look like: ytsub-<version number>.tar.gz. Don't uncompress it.4. Run pip install with the dist archive::$ sudo pip install ytsub-<version number>.tar.gz  --upgradeThat's it.  It's runnable like any other command::$ ytsub list -c 1 -t 0Alternatively, you can use git:1. sudo apt-get install python-pip git2. git clone -b release https://github.com/JWill392/ytsub.git3. sudo pip install ytsub/dist/<press tab -- should be just the one dist archive in here> --upgrade4. rm -rf ytsub
Package: yt-subs-migrate
YouTube Subscriptions Migration is a Python program that allow user to migrate their channel subscriptions from one account to another.Dependencies.google-auth-oauthlib>=1.0.0google-api-python-client>=2.89.0tqdmUsage.Command line arguments.usage: yt-subs-migrate [-h] -s SOURCE_CHANNEL_ID -c CLIENT_SECRET [-T TEST]

Migrate YouTube subscriptions from one account to another

options:
  -h, --help            show this help message and exit
  -s SOURCE_CHANNEL_ID, --source-channel-id SOURCE_CHANNEL_ID
                        source channel's ID
  -c CLIENT_SECRET, --client-secret CLIENT_SECRET
                        client secret of destination account
  -T TEST, --test TEST  only fetch information, don't migrateRun instruction.Setting up OAuth2 and get client secret. You can choose any Google account.Go toGoogle Cloud API Credentials. Create a OAuth client ID with type as a Desktop client. Download the client secret JSON file and.Go toOAuth consent screenand create one.The scopes must contain:/auth/userinfo.email/auth/userinfo.profile/auth/youtube.readonly/auth/youtube/auth/youtube.force-sslYou can publish the screen and wait for Google verification. Or add the email of of your destination account as test user so that you don't have to wait (even if the screen is on the same account as the destiantion account).Run the program. You need to supply the source YouTube channel ID and the path to the client secret JSON file.You will be asked to authenticate.IMPORTANT, authenticate theDESTINATION ACCOUNT- the account you want to migrate subscriptions to - not the source account.Wait for the program to finnish.Note.Currently, with a normal Google account, YouTube Data API have a limit quota of 10,000 per day. Toinserta subscriptions costs 50 quotas. To fetch the subscription info cost 1 quota. This means that the program can only migrate about less than 200 subscriptions per day. You might have to re-run the program on multiple days to completely finish the migration.The program should not attempt to subscribe to an already subscribed channel.License.The program itself is licensed underGNU GPL v3.
Package: ytsubtitles
Youtube subtitles downloaderDownload closed captions from youtube videos (both manual and automatically generated), and convert them to srt formatpython implementationUsage exampleytsubtitlesZXD4X6INh7w--lang=it>out.srtAcknowledgementsOriginal js implementation:https://github.com/syzer/youtube-captions-scraper/blob/master/src/index.jsSRT conversion:http://code.activestate.com/recipes/577459-convert-a-youtube-transcript-in-srt-subtitle/
Package: yt-summarizer
YouTube Video SummarizerThe YouTube Video Summarizer is a Python script that allows you to extract video transcripts based on the video id, and summarize the
text content using the GPT-3.5 Turbo model. You can apply the script to video of any language under the condition the video creator do
not disable the transcript of the videos intentionally. By default video in German and English will be summarized in these languages,
Summaries of videos spoken in all other languages will be in English.Summarizing long YouTube videos and interesting videos which have high number of viewers in different languages can offer several advantages:Time-saving: Summaries provide a concise overview of the video's content, allowing viewers to quickly grasp the main points without
spending significant time watching the entire video. This is particularly beneficial for busy individuals who want to extract key
information efficiently.Enhanced accessibility: Videos in different languages may have a language barrier for viewers who don't understand the spoken
language. Summarizing these videos can help bridge the gap by providing a summarized version in a language that viewers understand,
making the content more accessible and inclusive.Improved comprehension: Some videos, especially those covering complex or technical topics, may be challenging to understand fully.
Summaries provide a simplified version of the content, breaking it down into key ideas and concepts. This aids comprehension, ensuring
that viewers grasp the essential information.Multilingual support: YouTube is a global platform with a diverse audience. Summarizing videos in different languages caters to
viewers from various language backgrounds, enabling them to access and understand the content better. This expands the reach and impact
of the video, reaching a wider audience.Content curation: Summarizing popular videos with a high number of viewers helps curate and highlight the most relevant information.
By distilling the main points, viewers can quickly evaluate whether the video aligns with their interests or needs. This can save time
for viewers who are exploring multiple videos within a particular topic.Overall, summarizing long YouTube videos and interesting videos with a high number of viewers in different languages offers time-saving
benefits, accessibility improvements, enhanced comprehension, multilingual support, content curation, and knowledge sharing
opportunities.PrerequisitesPython 3.xGoogle API KeyOpenAI API Keyusageyou have to pass your Youtube API Key and OpenAI API Key as parameters to the YouTubeVideoSummarizer constructor as followingsummarizer = YouTubeVideoSummarizer(your Youtube API Key, your OpenAI API Key)thentranscript,lang = summarizer.get_transcript(video_id)and afterwards callsummary = summarizer.summarize_text(transcript,lang)and if you want to save it to a file ( text or audio file )summarizer.write_to_textfile(video_id,summary)orsummarizer.convert_to_audio(summary)
Package: ytt
ytt module For Pythonfor install this module, Run This command:pip install yttfor import:from ytt import yttUsage:start_all(YouTube_channel_id,telegram_bot_token,bot_chatID,send_channel_or_group_id=None):
  Using this function in your Python application, you can download all the videos of a YouTube channel and transfer them to Telegram.
    YouTube_channel_id (str): ID of Youtube Channel You want To send All videos of This channel to Telegram,
    telegram_bot_token (str): Your Telegram Bot Token (If you have not made a telegram bot, create a bot through this bot in Telegram: @BotFather),
    bot_chatID (str): ChatID of your Telegram Channel, Group or Chat,
    send_channel_or_group_id (bool): If You want to append Your channel or Group ID to the end of post, You can send True, But if you Do not want to Use it, leave it empty!Download_only(YouTube_channel_id):
    Download All videos Of a Youtube Channel Only.
      YouTube_channel_id (str): ID of YouTube channelupload_downloaded_videos(telegram_bot_token,bot_chatID,send_channel_or_group_id=None):
  Upload Downloaded videos with Download_only Function to Telegram
    Usage:
      telegram_bot_token (str): Your Telegram Bot Token (If you have not made a telegram bot, create a bot through this bot in Telegram: @BotFather),
      bot_chatID (str): ChatID of your Telegram Channel, Group or Chat,
      send_channel_or_group_id (bool): If You want to append Your channel or Group ID to the end of post, You can send True, But if you Do not want to Use it, leave it empty!
Package: yt-transcript-dl
yt-transcript-dlTODOInitial setupBefore we can start we need to do some initial configuration. First we need to install all the dependencies. You can do this by executing the following command:makeinstallYou might have noticed that an initial commit was performed. This initial commit contains the starting point of the cookiecutter template plus the generatedpyproject.toml.Now it's time to configure your remote GitHub repository:gitremoteaddorigin<REMOTEADDRESS>Configuring the main branchPush the currentmainbranch to the remote, using the following commands:gitbranch-Mmain
gitpush-uoriginmainConfiguring the develop branchNext, we will create adevelopbranch. You can use the following commands:gitcheckout-bdevelop
gitpush--set-upstreamorigindevelopTip: You can now set the default branch todevelop!Configure PyPiTo automatically upload release toPyPitype the following command:makereleaseYou will be prompted for your username and password. After you created the initial release you can navigate to yourprojects. For your package, navigate toManage,SettingsandCreate a token for k8s-image-registry-secret.Pick an username and set the scope to the package you just created. Use the generated token to create a secret in GitHub.On GitHub in your repository, go toSettings,Security,Secretsand thenActions. Here you will be able to create the repository secret.UsePYPI_API_TOKENas the name and the token from the previous step as the secret value.[Optional] Codecov.ioYou can add the following to your.github/workflows/ci.ymlfile to enableCodecov.io-name:Upload coverage to Codecovuses:codecov/codecov-action@v2with:fail_ci_if_error:truetoken:${{ secrets.CODECOV_TOKEN }}files:./reports/coverage.xml-name:Code Coverage Summary Reportuses:irongut/CodeCoverageSummary@v1.1.0with:filename:reports/coverage.xmlbadge:truefail_below_min:trueformat:markdownoutput:boththresholds:95 100Configure Codecov.ioLogin tocodecov.iolocate your repository. Navigate to theSettingsand thenGeneral. There you will find theCODECOV_TOKENthat you need to add to your GitHub repository.Go toSettings,Security,Secretsand thenActions. Here you will be able to create the repository secret.Configure coverage reportYou will need to add the following totesttarget in theMakefile:.PHONY:testtest:complexity-baseline## Run the tests defined in the projectpytest--junitxml=reports/pytest.xml--cov-reportxml:reports/coverage.xml
Package: ytty
Ytty - Powerful tool for parsing, downloading and uploading videos from youtube based on selenium.-WARINING!!!-You must have Google Chrome installed for google auth bypass!-How to use?--Quickstart-fromyttyimport*if__name__=='__main__':session=shadow_session()options=YTOptions()options.parse.search='FREE FIRE MOD MENU'options.parse.period=1options.parse.max=10videos=parse_videos(session,options)video=get_video(videos[0]['link'])session.quit()session=google_session('login','password')options.upload.video=videooptions.upload.title=videos[0]['title']options.upload.description='''This you can write description for videoThat text written for example, you can write this what do you want :)'''options.upload.tags=['tags','writes','in a','taglist','add','some tags','this']options.upload.preview=get_thumbnail(videos[0]['id'])upload_video(session,options)-Parsing videos-fromyttyimport*if__name__=='__main__':session=shadow_session()#headless chrome session without loginoptions=YTOptions()options.parse.search='FREE FIRE MOD MENU'#Search requestoptions.parse.period=1#Period from 0 to 2 when -> 0 - Today | 1 - a Week | 2 - a Month (Default is 2)options.parse.max=10#Limit of parsing video (Default is 20)videos=parse_videos(session,options)forvideoinvideos:title=video['title']#video titlelink=video['link']#video linkid=video['id']#video idsession.quit()#For close session-Download thumbnails (previews)-forvideoinvideos:get_thumbnail(video['id'])#returns filename of preview-Download videos-forvideoinvideos:get_video(video['link'])#returns filename of video-Download video with uniqualization-forvideoinvideos:options=YTOptions()options.download.unique=True# if use vidspinner (ffmpeg to uniqualize, but it for Windows only)get_video(video['link'],options)-Upload videos-forvideoinvideos:session=google_session('login','password')#session with login in google (no headless)options=YTOptions()options.upload.video='C:/path-to/video.mp4'options.upload.title=videos[0]['title']options.upload.description='''This you can write description for videoThat text written for example, you can write this what do you want :)'''options.upload.tags=['tags','writes','in a','taglist','add','some tags','this']options.upload.preview='C:/path-to/thumbnails.jpg'upload_video(session,options)-Upload video as premiere and access management-forvideoinvideos:options.upload.acess='PUBLIC'#is default | UNLISTED - Acess by link | PRIVATE - Restricted access | SCHEDULE - Planned release (not yet configurable)options.upload.premiere=True
Package: ytu
ytuA library to extract information from YouTube URLs. Currently provides the functionvideo_idto retrieve the video ID from a YouTube URL.Usageimport ytu

url = 'https://www.youtube.com/watch?v=dQw4w9WgXcQ'
if ytu.is_youtube(url):
    print(ytu.video_id(url))CreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.2.0 (2019-07-27)Addis_youtubefunction to check if a URL belongs to a recognized YouTube domain.Add type hints to ytu functions and drop Python 3.4 support accordingly.Renameget_param_valuetoparam_value.0.1.0 (2019-07-27)First release on PyPI.