/tubesearch

Python script using the YouTube Data List API to search through videos. Requires a Google API Key

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

tubesearch

Python script using the YouTube Data List API to search through videos. Requires a Google API Key

Create an API key at https://console.developers.google.com/apis

Then add it to a file in your home directory ($HOME) named .google_key.

Arguments:

-h, --help Show this help message and exit
-q QUERY, --query QUERY Search terms separated by '+'. example: -q pop+music.
-r RESULTS, --results RESULTS The number of items returned from 0 to 50 (default is 5)
-s SAFE, --safesearch SAFE Safesearch level, strict, none or moderate (default is none)
-t TYPE, --type TYPE Type of content; video, playlist or channel (default is any)
-d DIMENSION, --dimension DIMENSION The dimension of the video; 2d or 3d (default is either)
-x DEFINITION, --definition DEFINITION Video quality; high or standard. (default is either)
-l DURATION, --length DURATION Length of the video; short, medium, long. (defaults is any)
-o ORDER, --order ORDER The order to sort by- date, rating, relevance, viewCount, title (default is relevance)
-a DATE, --after DATE Show content published after the listed date, using format:1970-01-01