Skip to main content

A scraping API for Yify.

Project description

This is my API for scraping Yify

PyPI version

#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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

YifyAPI-0.5.6.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

YifyAPI-0.5.6-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file YifyAPI-0.5.6.tar.gz.

File metadata

  • Download URL: YifyAPI-0.5.6.tar.gz
  • Upload date:
  • Size: 2.8 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

Hashes for YifyAPI-0.5.6.tar.gz
Algorithm Hash digest
SHA256 9f448cf8c53caa0e80d1f94528db8be0c5a0f6019ab3318771efa53af3ffd76b
MD5 4a739a7f05f42c72780c5fd4565e0af7
BLAKE2b-256 2f30970b9c6511cc5b3807a76ac6f6b0db7ae2a782b165bdf797eb0a6c15203e

See more details on using hashes here.

File details

Details for the file YifyAPI-0.5.6-py3-none-any.whl.

File metadata

  • Download URL: YifyAPI-0.5.6-py3-none-any.whl
  • Upload date:
  • Size: 3.5 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

Hashes for YifyAPI-0.5.6-py3-none-any.whl
Algorithm Hash digest
SHA256 a9ab9dc11285578d9caa698c12664403abeb419c858119d5eb41c3b64c4c66c1
MD5 99cd794993189e277fa992081dd61f23
BLAKE2b-256 283d1cff5f255e9d4a3409c023c31899655b302ce28c1b99405d7a3ede5e6c7e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page