Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

A script to automate the searching part of youtube-dl

Project description

Preview and download YouTube videos from channels that you have "subscribed" to. A script to automate the searching part of youtube-dl.

Picture

Installation

sudo pip3 install newget --upgrade

is the easiest way to install if you are on a ~nix system.

Otherwise I'd recommend downloading the script from the src folder and running it straight from the terminal.

Usage

newget

Will launch the app if it was installed with pip.

Then iterate through the feed links in feeds.txt and tries to print them

add FEED_URL

Adds the url of what feed you gave it and restarts to pull it.

However this is designed around YouTube. So if you throw any YouTube channel link at it will parse it and add the feed.

commands
help
?

All three will display the commands. When you reload the commands disappear. However delete does not work in old:

deleteprev

will delete the previous line written to feeds.txt and reload the file.

get FEED_NUMBER/s

This uses youtube-dl to download whatever feed link you pointed it at.

Works with comma separated values ex 1,7,14 and will iterate and download them all

vlc FEED_NUMBER/s

will try to stream the feed to vlc (However this is buggy with vlc. Expect errors).

Also works with comma separated values ex 1,7,14 Will add them to a vlc playlist

When VLC closes it will reload the feeds

stream FEED_NUMBER/s

This will use the youtube-dl -o - pipe to vlc. Objectively less buggy than straight vlc streaming. However this does not support playlists. Breaks the pipe everytime.

reload
r

Redraws the screen and tries to pull the feeds in feeds.txt Will also work in old:

exit
e

Closes the current menu, if in new: ends the program. If in old: it returns you to new:

getall FEED_NUMBER

Downloads all videos on a channel. Like the WHOLE thing ALL videos. (You've been warned)

If there are any feed related issues a lot of problems can be solved by editing the feeds.txt file directly. This is also where it gets the urls to pull feeds from.

Windows

I've tried to keep windows users in mind. So most of the commands work on windows aswell. However strait command line VLC does not.

Also to note, I use a lot of ANSI colors in the terminal to makes things easier to see. On windows, powershell will accept these properly if you disable legacy console in the settings.

Bugs

You can submit issues here on the Gitlab page.

As far as known bugs. Youtube has this issue between 5-6 Eastern time it will limit the feed reading. Not error but will just be extra slow. If left it will eventually pull them.

Contributing

If you would like to contribute or suggest any improvements to the project, please submit a merge request.

Todo

  1. Add more youtube-dl control (Extra description files etc.)
  2. Allow for easier bulk downloading
  3. Remove items that have been there for more than 2 weeks(hard maybe)
  4. Add titles to the downloaded list for easier identifying (Could be bad if i want to check this for old gets)
  5. Have a separate file for select feeds to be automatically downloaded every time a new feed is available
  6. See about adding support for other sites ex(vimeo/twitch/souncloud/pornhub)

License

GNU General Public License, version 3 (GPLv3)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for newget, version 0.0.8
Filename, size File type Python version Upload date Hashes
Filename, size newget-0.0.8.tar.gz (11.2 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page