MacOS youtube download, Google Chrome.app play/pause
Project description
Install
$ [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 |
mac_youtube.pause() |
pause youtube videos |
mac_youtube.play() |
continue play youtube video |
mac_youtube.playing() |
return True if youtube video is playing |
mac_youtube.urls() |
return list of opened youtube videos |
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'
readme-md - README.md generator
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-2018.12.18.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for mac_youtube-2018.12.18-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed471148bdd164aeb5f122eee30c8c6c3397313dbed42d6b8d28efbd5e821f8b |
|
MD5 | d72e327d166a24ba391bec6f2a7be507 |
|
BLAKE2b-256 | 29009b2bb615a37ff7252d30c3eba11b6de4d4f9342cbad15455a7a59477f163 |