Download your favourite movies
Project description
This is my API for scraping Yify
#USAGE
First you have to import it.
from YifyAPI import yify as api
Now you are ready to use it!
Currently the only method is :
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 is the github link
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file YifyAPI-0.0.6.tar.gz.
File metadata
- Download URL: YifyAPI-0.0.6.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7cd19c67f546a03c152feb37fededcc668f2cd9854c9af640f9e3721baebe089
|
|
| MD5 |
64c02977441b45c1843b942844754293
|
|
| BLAKE2b-256 |
c147ef589da661fbbd9b88bb01f25cc6de45bf4ae31c7a02ac07c2153909ded7
|
File details
Details for the file YifyAPI-0.0.6-py3-none-any.whl.
File metadata
- Download URL: YifyAPI-0.0.6-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a5547090d0b243ab1fc5eda3d5d0108c785133611eb51f328d07fab2f1d732c4
|
|
| MD5 |
d023f67cd8c5b04116733c260318bb79
|
|
| BLAKE2b-256 |
e0b6c3882692c74e65b8af9e957b64485eb314751233e85fed8106aa3ab552d8
|