Metadata-Version: 2.1
Name: YifyAPI
Version: 0.6.1
Summary: A scraping API for Yify.
Home-page: https://github.com/ArjixGamer/YifyAPI
Author: ArjixGamer
Author-email: arjixg53@gmail.com
License: UNKNOWN
Keywords: movies,yify,torrents,download,hd
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: beautifulsoup4 (>=4.6.0)
Requires-Dist: requests (>=2.18.4)

This is my API for scraping [Yify](https://www.yts.mx)

[![PyPI version](https://badge.fury.io/py/YifyAPI.png)](https://badge.fury.io/py/YifyAPI)

**#USAGE**

First you have to import it.

```python
from YifyAPI import yify as api
```

Now you are ready to use it!

Currently the only method is :

```python 
api.search_yify(query: str)
```

It will return a list with dictionaries for each movie result found, example below:

```
{
 'title': 'Sonic the Hedgehog', 
 'year': '2020', 
 'link': 'https://yts.mx/movies/sonic-the-hedgehog-2020', 
 'image': 'https://img.yts.mx/assets/images/movies/sonic_the_hedgehog_2020/medium-cover.jpg', 
 'qualities': {
     '720p': {
         'size': '908.03 MB', 
         'magnet': 'magnet:?.....'}, 
     '1080p': {
         'size': '1.82 GB', 
         'magnet': 'magnet:?.....'}
 }
}
```

if something goes bad and there was an error then it will return this:

```
{'status': "error"}
```

So make sure to check if the response is equal to the one above with an if statement.



If you encounter any bug with my code or you want to contribute in any way then [here](https://github.com/ArjixGamer/YifyAPI) is the github link

