11 lines
327 B
Plaintext
11 lines
327 B
Plaintext
|
#!/usr/bin/env python
|
||
|
|
||
|
from youtube_search import YoutubeSearch # pip install youtube-search
|
||
|
from sys import argv
|
||
|
|
||
|
for result in YoutubeSearch(' '.join(argv[1:])).to_dict():
|
||
|
print(result['duration'],
|
||
|
f"https://www.youtube.com{result['url_suffix']}",
|
||
|
f"{result['title']} -- {result['channel']}",
|
||
|
sep='\t')
|