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

22 lines
498 B
Plaintext

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;