All Projects → Tatsh → youtube-unofficial

Tatsh / youtube-unofficial

Licence: MIT license
Access parts of your account unavailable through normal YouTube API access.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to youtube-unofficial

timestampy
🕒 Bunch of utilities useful when working with UNIX timestamps
Stars: ✭ 21 (-36.36%)
Mutual labels:  utility, utilities
Saws
A supercharged AWS command line interface (CLI).
Stars: ✭ 4,886 (+14706.06%)
Mutual labels:  utility, utilities
Cryptocmd
Cryptocurrency historical price data library in Python. Data from https://coinmarketcap.com.
Stars: ✭ 299 (+806.06%)
Mutual labels:  utility, scraper
vmutils
cross platform library to manipulate and extract information of memory regions
Stars: ✭ 22 (-33.33%)
Mutual labels:  utility, utilities
Util
A collection of useful utility functions
Stars: ✭ 201 (+509.09%)
Mutual labels:  utility, utilities
proxy-pants
Secured and reliable Proxy based utilities for more or less common tasks.
Stars: ✭ 36 (+9.09%)
Mutual labels:  utility, utilities
Lodash Php
Easy to use utility functions for everyday PHP projects. This is a port of the Lodash JS library to PHP
Stars: ✭ 412 (+1148.48%)
Mutual labels:  utility, utilities
bat
Battery management utility for Linux laptops.
Stars: ✭ 107 (+224.24%)
Mutual labels:  utility, utilities
Ridereceipts
🚕 Simple automation desktop app to download and organize your receipts from Uber/Lyft. Try out our new Ride Receipts PRO !
Stars: ✭ 117 (+254.55%)
Mutual labels:  utility, scraper
Schematics Utilities
🛠️ Useful exported utilities for working with Schematics
Stars: ✭ 73 (+121.21%)
Mutual labels:  utility, utilities
assign-one-project-github-action
Automatically add an issue or pull request to specific GitHub Project(s) when you create and/or label them.
Stars: ✭ 140 (+324.24%)
Mutual labels:  utility, utilities
ios
CoThings's iOS application. CoThings is a realtime counter for shared things.
Stars: ✭ 13 (-60.61%)
Mutual labels:  utility, utilities
Haxor News
Browse Hacker News like a haxor: A Hacker News command line interface (CLI).
Stars: ✭ 3,342 (+10027.27%)
Mutual labels:  utility, utilities
Utils
A collection of useful PHP functions, mini classes and snippets that you need and can use every day.
Stars: ✭ 750 (+2172.73%)
Mutual labels:  utility, utilities
Gitlab Cli
Create a merge request from command line in gitlab
Stars: ✭ 224 (+578.79%)
Mutual labels:  utility, utilities
gut
🍱 yet another collection of go utilities & tools
Stars: ✭ 24 (-27.27%)
Mutual labels:  utility, utilities
DropPoint
Make drag-and-drop easier using DropPoint. Drag content without having to open side-by-side windows
Stars: ✭ 303 (+818.18%)
Mutual labels:  utility
OLX Scraper
📻 An OLX Scraper using Scrapy + MongoDB. It Scrapes recent ads posted regarding requested product and dumps to NOSQL MONGODB.
Stars: ✭ 15 (-54.55%)
Mutual labels:  scraper
xcursorlocate
cursor location indicator for x11
Stars: ✭ 16 (-51.52%)
Mutual labels:  utility
puppeteer-extensions
Convenience functions for the Puppeteer
Stars: ✭ 26 (-21.21%)
Mutual labels:  utilities

Unofficial YouTube API client

Use this library to do things the real YouTube API does not let you do. DO NOT USE THIS FOR ANY ACCOUNT OTHER THAN YOUR OWN!

This library supports Python 3.6+.

Use a netrc file

Please note for the time being, logging in is not working. For more details, see this youtube-dl issue.

Every command can take a --username and --password argument.

You should consider using a netrc file for your login. Example at ~/.netrc:

machine youtube login LOGIN password YOUR_PASSWORD

You can specify a custom netrc file with the --netrc argument.

Usage

Command line

  • youtube-clear-history - Clear your Watch History
  • youtube-clear-search-history - Clear your Search History
  • youtube-clear-watch-later - Clear your Watch Later queue
  • youtube-print-history-ids - Print Watch History video IDs
  • youtube-print-playlist-ids - Print video IDs from a specific playlist
  • youtube-print-watch-later-ids - Print Watch Later video IDs
  • youtube-remove-history-entries - Remove videos from your Watch History
  • youtube-remove-videoid - Remove a video from a playlist
  • youtube-remove-watch-later-videoid - Remove a video from your Watch Later queue
  • youtube-toggle-search-history - Turn on/off Search History
  • youtube-toggle-watch-history - Turn on/off Watch History

Every command takes a --debug argument.

You can use exported cookies in Netscape format with the --cookies COOKIES_FILE argument. By default, cookies are read from ~/.local/share/cookies/youtube.txt.

Some commands accept a -j/--json argument to print machine-readable output.

Download commands

  • ytdl-history - Use youtube-dl to download your history
  • ytdl-liked - Use youtube-dl to download your liked videos
  • ytdl-playlist - Use youtube-dl to download a playlist
  • ytdl-watch-later - Use youtube-dl to download your Watch Later playlist

For downloads to work, youtube-dl must be in PATH. To pass arguments to youtube-dl, specify -- before those arguments. Example with arguments to youtube-dl:

ytdl-history --output-dir ~/Downloads --delete-after -- --extract-audio --audio-format m4a --audio-quality 0

Each download command has a -D/--delete-after option, which makes the script delete the entry from the set of videos after a successful download.

In Python

from os.path import expanduser
from youtube_unofficial import YouTube

yt = YouTube(cookies_path=expanduser('~/my-cookies-file.txt'), logged_in=True)

# Clear watch history
yt.clear_watch_history()

# Remove a single video ID from Watch Later queue
yt.remove_video_id_from_playlist('WL', video_id)

# Clear entire Watch Later queue
yt.clear_watch_later()

Contributing

For a new feature to be accepted, it must be something that cannot be achieved with Google's official API.

Code must run through mypy and pylint based on the project settings.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].