https://github.com/nateshmbhat/pyyify
This is a python library used to get the Top seeded torrents at any given time and get the entire movie details and ratings . Its also useful to search for any movie using different parameters and obtain their magnet link or torrent file of any preferred quality.
https://github.com/nateshmbhat/pyyify
movie-collection python-torrent python-yify torrent torrent-management yify yify-torrents yifysubtitles
Last synced: 4 months ago
JSON representation
This is a python library used to get the Top seeded torrents at any given time and get the entire movie details and ratings . Its also useful to search for any movie using different parameters and obtain their magnet link or torrent file of any preferred quality.
- Host: GitHub
- URL: https://github.com/nateshmbhat/pyyify
- Owner: nateshmbhat
- License: mit
- Created: 2017-11-24T23:10:30.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-08-15T08:47:10.000Z (10 months ago)
- Last Synced: 2025-02-10T15:11:15.227Z (4 months ago)
- Topics: movie-collection, python-torrent, python-yify, torrent, torrent-management, yify, yify-torrents, yifysubtitles
- Language: Python
- Homepage:
- Size: 39.1 KB
- Stars: 59
- Watchers: 4
- Forks: 19
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Yify for Python
===============[](https://pepy.tech/project/pyYify)  [](https://github.com/nateshmbhat/pyYify) [](https://github.com/nateshmbhat/pyYify) [](https://github.com/nateshmbhat/pyYify) [](https://github.com/nateshmbhat/pyYify) [](https://github.com/nateshmbhat)
This is Python Library which is used to get the Top seeded torrents at
any given time and get the entire movie details and ratings .Its also useful to search for any movie using different parameters and
obtain their magnet link or torrent file of any preferred quality.Features :
----------* Search for movie torrents
* Get the details of any movie which includes :
* Torrent details of 720p,1080p,3D quality
* Torrent Magnet links and hashes along with their size and seeds
* imdb_code
* Imdb Rating and MPA rating
* Year
* Runtime
* Summary
* Movie DescriptionAll the above Details are obtained in the form of attributes of
Yify.movie object each object representing a movie.* Get the Top Most Seeded Torrents listed in the Yify Website
* Download the torrent file of a corresponding torrent.
* Start the torrent download directly without having to download it from the user's default torrent client.
Installation :
--------------Python3
-------```pip
pip install pyYify
```or
```pip
pip3 install pyYify
```## Usage :
**First import yify to use its functions.**
```python3
from pyYify import yify
```There are two classes in yify namely 'movie' and 'torrent'.
#### Search for movies.
On searching , it returns a list of movies (movie objects).
```python3
movies_list = yify.search_movies(search_string , quality , minimum_rating , genre)
```The search_string for the movie can be 'Movie Title,IMDb Code, Actor
Name, Director Name'. quality = 'All' , '720p' , '1080p' , '3D'.
minimum_rating is an imdb_rating. genre = See
https://www.imdb.com/genre/ for a list of genres.### Get the top seeded movies from Yify
```python3
movies_list = yify.get_top_seeded_torrents() ;
```Returns a list of movies, each movie object only contains its Name and
Webpage unlike the searching method which has all the details in the
returned movies. To get the rest of the movie details use getinfo()
method.```python3
for movie in movies_list:
movie.getinfo() ;
```* Each movie Object has the following data :
* id
* url
* imdb\_code
* title
* title\_long
* slug
* year
* rating
* runtime
* genres
* summary
* description
* language
* mpa\_rating
* image\_links
* torrentsThe movie.torrents is a list of torrents each of which corresponds to
the torrent of same movie but of different quality. ('720p' , '1080p' or
'3D' )* Each torrent has the following data :
* name
* url
* magnet
* hash
* quality
* seeds
* peers
* size
* date_uploaded```python3
movie1 = movies_list[0]torrent1 = movie1.torrents[0]
print("Magnet link = " , torrent1.magnet)
```### Downloading the Torrent file of a movie
```python3
torrent1.download_torrent_file( savepath , filename )
```### Starting the download directly using magnet link without downloading the torrent file .
This starts the default torrent client prompting the download dialog :
```python3
torrent1.start_download()
```