Skip to main content

MacOS youtube download, Google Chrome.app play/pause

Project description

Installation

$ [sudo] pip install mac-youtube

Features

  • play(), pause(), playing(), urls() works only in MacOS Google Chrome.app

Functions

function __doc__
mac_youtube.id(url) return video id
mac_youtube.info(video) return info dictionary

Executable modules

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 playing urls
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'

python-readme-generator

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
mac-youtube-2019.4.13.tar.gz (2.7 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page