Metadata-Version: 2.1
Name: mhyt
Version: 3.5.5
Summary: download files from youtube using simple code
Home-page: https://github.com/matan-h/mhyt
Author: matan h
Author-email: matan.honig2@gmail.com
License: MIT
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.0
Description-Content-Type: text/markdown
Requires-Dist: youtube-dl
Requires-Dist: imageio-ffmpeg

# mhyt


mhyt is a Python library for
download movies and music from youtube

mhyt can run in python 3+

## examples
```python
from mhyt import yt_download
url = "https://www.youtube.com/watch?v=0BVqFYParRs"
file = "Clouds.mp4"
yt_download(url,file)
#########################
file = "Clouds_music.mp3"
yt_download(url,file,ismusic=True)
```
The audio example is not fully working because ytdl downloads a webm format. To fix this you can do:
```python
from mhyt import yt_download
url = "https://www.youtube.com/watch?v=0BVqFYParRs"
file = "Clouds_music.mp3"
tmp_file = "Clouds_music.webm"
yt_download(url,tmp_file,ismusic=True,codec  = "mp3")
```
Clouds_music.mp3 will be in correct mp3 format. It will create and delete Clouds_music.webm (the tmp file) automatically.
### Installing
To install with pip:
```
(sudo) pip install mhyt
```

## Built With
* [youtube_dl](https://github.com/ytdl-org/youtube-dl) - to download files from youtube
* [imageio-ffmpeg](https://github.com/imageio/imageio-ffmpeg) - to download ffmpeg 
## Author
**matan h**
## License
This project is licensed under the MIT License.

## created by
This library uploaded and manage using [libtool](https://github.com/matan-h/libtool)




