Metadata-Version: 2.1
Name: mac-youtube
Version: 2019.3.22
Summary: MacOS youtube download, Google Chrome.app play/pause
Home-page: https://github.com/looking-for-a-job/mac-youtube.py
License: UNKNOWN
Keywords: youtube
Platform: UNKNOWN
Classifier: License :: Public Domain
Classifier: Operating System :: MacOS
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Topic :: Software Development
Description-Content-Type: text/markdown
Requires-Dist: click
Requires-Dist: google-chrome
Requires-Dist: public
Requires-Dist: runcmd
Requires-Dist: setuptools
Requires-Dist: youtube-dl

<!--
https://pypi.org/project/readme-generator/
-->

[![](https://img.shields.io/badge/OS-MacOS-blue.svg?longCache=True)]()
[![](https://img.shields.io/pypi/pyversions/mac-youtube.svg?longCache=True)](https://pypi.org/project/mac-youtube/)

#### Installation
```bash
$ [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

#### 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
```python
>>> 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
```python
>>> info = mac_youtube.info("cvaIgq5j2Q8")
>>> "%s.%s" % (info["title"], info["ext"])
'Nightcore - Angel With A Shotgun.webm'
```

<p align="center">
    <a href="https://pypi.org/project/readme-generator/">readme-generator</a>
</p>

