MacOS youtube download, Google Chrome.app play/pause
Project description
Installation
$ [sudo] pip install mac-youtube
Features
play()
,pause()
,playing()
,urls()
works only in MacOSGoogle Chrome.app
Functions
function | __doc__ |
---|---|
mac_youtube.id(url) |
return video id |
mac_youtube.info(video) |
return info dictionary |
CLI
usage | __doc__ |
---|---|
python -m mac_youtube.download url ... |
download youtube video and print path |
python -m mac_youtube.pause |
pause youtube videos |
python -m mac_youtube.play |
continue play youtube video |
python -m mac_youtube.playing |
print true if youtube video playing, else false |
python -m mac_youtube.urls |
print youtube urls |
Examples
>>> import mac_youtube
>>> mac_youtube.urls()
['https://www.youtube.com/watch?v=cvaIgq5j2Q8','https://www.youtube.com/watch?v=YrhYhI3L32c']
>>> mac_youtube.play()
>>> mac_youtube.playing()
['https://www.youtube.com/watch?v=cvaIgq5j2Q8']
>>> mac_youtube.pause()
info
>>> info = mac_youtube.info("cvaIgq5j2Q8")
>>> "%s.%s" % (info["title"], info["ext"])
'Nightcore - Angel With A Shotgun.webm'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mac-youtube-2019.3.22.tar.gz
(2.6 kB
view hashes)
Built Distribution
Close
Hashes for mac_youtube-2019.3.22-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73ceef18301da45a2f6f0ff3adf7ac01450ac3979ef88c987dee82e0b1f1dec2 |
|
MD5 | 1c1865b41e2718d121973b6341bdc8c1 |
|
BLAKE2b-256 | 077b765ba64fe2d1dffc04fcb1c509179379879d37c5b84a8ee695d0840003af |