1
0
Fork 0
unweb/youtube.com
2021-06-07 22:24:54 +02:00
..
README add youtube search script 2021-06-07 22:24:54 +02:00
search.pl add youtube search script 2021-06-07 22:24:54 +02:00

Search youtube.

The script can only show the first page of results.

Usage: ./search.pl [--sort][--uploaded][--type][--duration][--features] QUERY

Options:
--sort upload|views|rating|relevance
--uploaded hour|day|week|month|year
--type video|channel|playlist|movie
--duration short|long
--features live|4k|hd|sub|cc|360|vr180|3d|hdr|location|purchased

Dependencies:
	use Encode;
	use JSON::XS;
	use HTML::TreeBuilder 5 -weak;
	use LWP;
	use LWP::UserAgent;
	use MIME::Base64;
	use Getopt::Long;