Git Product home page Git Product logo

ryuk-me / torrent-api-py Goto Github PK

View Code? Open in Web Editor NEW
286.0 6.0 232.0 130 KB

An Unofficial API for 1337x, Piratebay, Nyaasi, Torlock, Torrent Galaxy, Zooqle, Kickass, Bitsearch, MagnetDL,Libgen, YTS, Limetorrent, TorrentFunk, Glodls, TorrentProject and YourBittorrent

Home Page: https://torrent-api-py-nx0x.onrender.com/docs

License: MIT License

Python 99.81% Procfile 0.05% Dockerfile 0.13%
torrents torrent-api 1337x-api piratebay-api nyaasi-api torrent-galaxy torlock-api magnetdl-api zooqle-api kickass-api

torrent-api-py's Introduction

Torrents Api ✨

An Unofficial API for 1337x, Piratebay, Nyaasi, Torlock, Torrent Galaxy, Zooqle, Kickass, Bitsearch, MagnetDL, Libgen, YTS, Limetorrent, TorrentFunk, Glodls, TorrentProject and YourBittorrent

Installation

# Clone the repo
$ git clone https://github.com/Ryuk-me/Torrent-Api-py

# Go to the repository
$ cd Torrent-Api-py

# Install virtualenv
$ pip install virtualenv

# Create Virtual Env
$ py -3 -m venv api-py

# Activate Virtual Env [Windows]
$ .\api-py\Scripts\activate

# Activate Virtual Env [Linux]
$ source api-py/bin/activate

# Install Dependencies
$ pip install -r requirements.txt

# Start
$ python main.py

# (optional) To Use a PROXY, set the HTTP Proxy environment variable
# You can also use a tor proxy using dperson/torproxy:latest
$ export HTTP_PROXY="http://proxy-host:proxy-port"

# To access API Open any browser/API Testing tool & move to the given URL
$ localhost:8009 

Supported Sites

Website Keyword Url Cloudfare
1337x 1337x https://1337x.to
Torrent Galaxy tgx https://torrentgalaxy.to
Torlock torlock https://www.torlock.com
PirateBay piratebay https://thepiratebay10.org
Nyaasi nyaasi https://nyaa.si
Zooqle zooqle https://zooqle.com
KickAss kickass https://kickasstorrents.to
Bitsearch bitsearch https://bitsearch.to
MagnetDL magnetdl https://www.magnetdl.com
Libgen libgen https://libgen.is
YTS yts https://yts.mx
Limetorrent limetorrent https://www.limetorrents.pro
TorrentFunk torrentfunk https://www.torrentfunk.com
Glodls glodls https://glodls.to
TorrentProject torrentproject https://torrentproject2.com
YourBittorrent ybt https://yourbittorrent.com

Supported Methods and categories

If you want to change the default limit site wise Visit Here

{
        "1337x": {
            "trending_available": True,
            "trending_category": True,
            "search_by_category": True,
            "recent_available": True,
            "recent_category_available": True,
            "categories": ["anime", "music", "games", "tv","apps","documentaries", "other", "xxx", "movies"],
            "limit" : 100
        },
        "torlock": {
            "trending_available": True,
            "trending_category": True,
            "search_by_category": False,
            "recent_available": True,
            "recent_category_available": True,
            "categories": ["anime", "music", "games", "tv","apps", "documentaries", "other", "xxx", "movies", "books", "images"],
            "limit" : 50
        },
        "zooqle": {
            "trending_available": False,
            "trending_category": False,
            "search_by_category": False,
            "recent_available": False,
            "recent_category_available": False,
            "categories": [],
            "limit": 30
        },
        "magnetdl": {
            "trending_available": False,
            "trending_category": False,
            "search_by_category": False,
            "recent_available": True,
            "recent_category_available": True,
            "categories": ["apps", "movies", "music", "games", "tv", "books"],
            "limit": 40
        },
        "tgx": {
            "trending_available": True,
            "trending_category": True,
            "search_by_category": False,
            "recent_available": True,
            "recent_category_available": True,
            "categories": ["anime", "music", "games", "tv",
                           "apps", "documentaries", "other", "xxx", "movies", "books"],
            "limit": 50
        },
        "nyaasi": {
            "trending_available": False,
            "trending_category": False,
            "search_by_category": False,
            "recent_available": True,
            "recent_category_available": False,
            "categories": [],
            "limit": 50

        },
        "piratebay": {
            "trending_available": True,
            "trending_category": False,
            "search_by_category": False,
            "recent_available": True,
            "recent_category_available": True,
            "categories": ["tv"],
            "limit": 50
        },
        "bitsearch": {
            "trending_available": True,
            "trending_category": False,
            "search_by_category": False,
            "recent_available": False,
            "recent_category_available": False,
            "categories": [],
            "limit": 50
        },
        "kickass": {
            "trending_available": True,
            "trending_category": True,
            "search_by_category": False,
            "recent_available": True,
            "recent_category_available": True,
            "categories": ["anime", "music", "games", "tv","apps", "documentaries", "other", "xxx", "movies", "books"],
            "limit": 50
        },
        "libgen'": {
            "trending_available": False,
            "trending_category": False,
            "search_by_category": False,
            "recent_available": False,
            "recent_category_available": False,
            "categories": [],
            "limit": 25
        },
        "yts": {
            "trending_available": True,
            "trending_category": False,
            "search_by_category": False,
            "recent_available": True,
            "recent_category_available": False,
            "categories": [],
            "limit": 20
        },
        "limetorrent": {
            "trending_available": True,
            "trending_category": False,
            "search_by_category": False,
            "recent_available": True,
            "recent_category_available": True,
            "categories": ["anime", "music", "games", "tv",
                           "apps", "other", "movies", "books"],  # applications and tv-shows
            "limit": 50
        },
        "torrentfunk": {
            "trending_available": True,
            "trending_category": True,
            "search_by_category": False,
            "recent_available": True,
            "recent_category_available": True,
            "categories": ["anime", "music", "games", "tv",
                           "apps", "xxx", "movies", "books"],  # television # software #adult # ebooks
            "limit": 50
        },
        "glodls": {
            "trending_available": True,
            "trending_category": False,
            "search_by_category": False,
            "recent_available": True,
            "recent_category_available": False,
            "categories": [],
            "limit": 45
        },
        "torrentproject": {
            "trending_available": False,
            "trending_category": False,
            "search_by_category": False,
            "recent_available": False,
            "recent_category_available": False,
            "categories": [],
            "limit": 20
        },
        "ybt": {
            "trending_available": True,
            "trending_category": True,
            "search_by_category": False,
            "recent_available": True,
            "recent_category_available": True,
            "categories": ["anime", "music", "games", "tv",
                           "apps", "xxx", "movies", "books", "pictures", "other"],  # book -> ebooks
            "limit": 20
        }

    }


API Endpoints

Supported sites list

api/v1/sites


Search

api/v1/search

Parameter Required Type Default Example
site string None api/v1/search?site=1337x
query string None api/v1/search?site=1337x&query=avengers
limit integer Default api/v1/search?site=1337x&query=avengers&limit=20
page integer 1 api/v1/search?site=1337x&query=avengers&limit=0&page=2


Trending

api/v1/trending

Parameter Required Type Default Example
site string None api/v1/trending?site=1337x
limit integer Default api/v1/trending?site=1337x&limit=10
category string None api/v1/trending?site=1337x&limit=0&category=tv
page integer 1 api/v1/trending?site=1337x&limit=6&category=tv&page=2


Recent

api/v1/recent

Parameter Required Type Default Example
site string None api/v1/recent?site=1337x
limit integer Default api/v1/recent?site=1337x&limit=7
category string None api/v1/recent?site=1337x&limit=0&category=tv
page integer 1 api/v1/recent?site=1337x&limit=15&category=tv&page=2


Search By Category

api/v1/category

Parameter Required Type Default Example
site string None api/v1/category?site=1337x
query string None api/v1/category?site=1337x&query=avengers
category string None api/v1/category?site=1337x&query=avengers&category=movies
limit integer Default api/v1/category?site=1337x&query=avengers&category=movies&limit=10
page integer 1 api/v1/category?site=1337x&query=avengers&category=tv&limit=0&page=2


Search from all sites

api/v1/all/search

Parameter Required Type Default Example
query string None api/v1/all/search?query=avengers
limit integer Default api/v1/all/search?query=avengers&limit=5
Here limit = 5 will get 5 results from each site.

api/v1/all/search?query=avengers

api/v1/all/search?query=avengers&limit=5


Get trending from all sites

api/v1/all/trending

Parameter Required Type Default Example
limit integer Default api/v1/all/trending?limit=2

api/v1/all/trending

api/v1/all/trending?limit=2


Get recent from all sites

api/v1/all/recent

Parameter Required Type Default Example
limit integer Default api/v1/all/recent?limit=2

api/v1/all/recent

api/v1/all/recent?limit=2


Want to Try api ?

api/v1/search?site=1337x&query=eternals

See response

{
  "data": [
    { 
      "name": "Eternals.2021.1080p.WEBRip.1600MB.DD5.1.x264-GalaxyRG",
      "size": "1.6 GB",
      "date": "Jan. 11th '22",
      "seeders": "3674",
      "leechers": "983",
      "url": "https://1337x.to/torrent/5110228/Eternals-2021-1080p-WEBRip-1600MB-DD5-1-x264-GalaxyRG/",
      "uploader": "TGxGoodies",
      "screenshot": [
        "https://everest.picturedent.org/images/2022/01/11/tmpposter23827.jpg",
        "https://everest.picturedent.org/images/2022/01/11/Harone8014.th.jpg",
        "https://everest.picturedent.org/images/2022/01/11/Harone31320.th.jpg",
        "https://everest.picturedent.org/images/2022/01/11/Harone8129XqiKn.th.jpg",
        "https://everest.picturedent.org/images/2022/01/11/Harone27162.th.jpg",
        "https://everest.picturedent.org/images/2022/01/11/Harone1352.th.jpg",
        "https://everest.picturedent.org/images/2022/01/11/Harone14355.th.jpg"
      ],
      "category": "Movies",
      "files": [
        "Eternals.2021.1080p.WEBRip.1600MB.DD5.1.x264-GalaxyRG.mkv (1.6 GB)",
        "[TGx]Downloaded from torrentgalaxy.to .txt (0.7 KB)"
      ],
      "poster": "https://lx1.dyncdn.cc/cdn/02/0251ab7772c031c1130bc92810758cd4.jpg",
      "magnet": "magnet:?xt=urn:btih:20F8D7C2942B143E6E2A0FB5562CDE7EE1B17822&dn=Eternals.2021.1080p.WEBRip.1600MB.DD5.1.x264-GalaxyRG&tr=udp://open.stealth.si:80/announce&tr=udp://tracker.tiny-vps.com:6969/announce&tr=udp://tracker.opentrackr.org:1337/announce&tr=udp://tracker.torrent.eu.org:451/announce&tr=udp://explodie.org:6969/announce&tr=udp://tracker.cyberia.is:6969/announce&tr=udp://ipv4.tracker.harry.lu:80/announce&tr=udp://p4p.arenabg.com:1337/announce&tr=udp://tracker.birkenwald.de:6969/announce&tr=udp://tracker.moeking.me:6969/announce&tr=udp://opentor.org:2710/announce&tr=udp://tracker.dler.org:6969/announce&tr=udp://9.rarbg.me:2970/announce&tr=https://tracker.foreverpirates.co:443/announce&tr=udp://tracker.opentrackr.org:1337/announce&tr=http://tracker.openbittorrent.com:80/announce&tr=udp://opentracker.i2p.rocks:6969/announce&tr=udp://tracker.internetwarriors.net:1337/announce&tr=udp://tracker.leechers-paradise.org:6969/announce&tr=udp://coppersurfer.tk:6969/announce&tr=udp://tracker.zer0day.to:1337/announce",
      "hash": "20F8D7C2942B143E6E2A0FB5562CDE7EE1B17822"
    }
  ],
  "current_page": 1,
  "total_pages": 7,
  "time": 1.276763677597046,
  "total": 20
}


Donations

If you feel like showing your appreciation for this project, then how about buying me a coffee?

"Buy Me A Coffee"


DEPLOY

Deploy to Render

Deploy

torrent-api-py's People

Contributors

devilld avatar drew-k-vx avatar hemantapkh avatar lkabuci avatar rotrixlol avatar ryuk-me avatar sandipndev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

torrent-api-py's Issues

"Internal Server Error" returned when running example URLs

Thank you for this great api.

For the last few days I'm receiving "Internal Server Error" when running the herokuapp.com example URLs you provided (links below)
Not sure if the timing coincided with recent Redis shut down (but its my understanding dependencies have already been removed)

https://torrents-api-py3.herokuapp.com/api/v1/all/search?query=avengers&limit=5
https://torrents-api-py3.herokuapp.com/api/v1/search?site=1337x&query=eternals

Redis has shut down

Redis has shut down and since api depends on it, it cannot work.

I use your api instance so please switch to another service if possible. Thank you

torrentgalaxy has CAPTCHA

It fails if too many searches are obtained. I think a header / agent needs to be embedded. This is a new inclusion their end.

api key for description of torrent?

would be great if I also had the description for the torrent as in the avengers torrent

Doctor Strange in the Multiverse of Madness (2022)

Release ........: Doctor.Strange.in.the.Multiverse.of.Madness.2022.720p.BluRay.x264-NeZu
Release Number .: 1048
Release Date ...: 17.07.2022

Movie Info
IMDb ....: https://www.imdb.com/title/tt9419884/
Rating ..: 7.0/10 from...

Import Error

i am facing an issue while deploying Torrents-Api-py on vps

Traceback (most recent call last):
File "main.py", line 8, in
from fastapi import FastAPI, Query
File "/home/ubuntu/.local/lib/python3.8/site-packages/fastapi/init.py", line 7, in
from .applications import FastAPI as FastAPI
File "/home/ubuntu/.local/lib/python3.8/site-packages/fastapi/applications.py", line 15, in
from fastapi import routing
File "/home/ubuntu/.local/lib/python3.8/site-packages/fastapi/routing.py", line 21, in
from fastapi import params
File "/home/ubuntu/.local/lib/python3.8/site-packages/fastapi/params.py", line 4, in
from pydantic.fields import FieldInfo, Undefined
File "pydantic/init.py", line 2, in init pydantic.init
File "pydantic/dataclasses.py", line 52, in init pydantic.dataclasses
# |
ImportError: cannot import name dataclass_transform

synology nas?

hello,
Apologies if this is a lame question but will this work with a synology nas? im trying to get torrent galaxy added in sonarr and it keeps timing out. It used to work very well but now nothing. Tough to find a good indexer since rarbg.

Keyword for supported sites

There should an api keyword (can be supported_sites) which would return the list of currently supported sites. This will make an user's life lot more easier!

Seems to have issues with queries containing more than 3 spaces (testing with 1337x)

If I add more than 3 "words" to the query, the request hangs indefinitely. It is easy to reproduce and the words don't seem to matter, as soon as the request has 3 spaces it ceases to ever respond for some reason. For example:

This request works fine:
localhost:8009/api/v1/category?site=1337x&query=Christmas%20at%20the&category=movies&limit=10

But then when you add a word to complete the movie title, it will hang and never respond:
localhost:8009/api/v1/category?site=1337x&query=Christmas%20at%20the%20chalet&category=movies&limit=10

I was hoping someone might be able to help me find a workaround to this. It could be the number of characters, not entirely sure, but seems to always happen once I add that fourth word. Using a different site (piratebay) and normal search endpoint, it seems to work fine with 4 words, but with 1337x something is going wrong.

Self hosting??

can i install this on my dedicated server without having to use redis or deploying to roku??

i have tried installing but i get an error for fastapi-cache2

root@server:~/Torrent-Api-py# pip3 install -r requirements.txt Collecting aiohttp (from -r requirements.txt (line 1)) Downloading https://files.pythonhosted.org/packages/f6/3b/2e3b8a5b19cdceb532c61d83077a09afe1f120cb876fb771b0ce577cc0ea/aiohttp-3.8.1-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (1.1MB) 100% |████████████████████████████████| 1.1MB 799kB/s Collecting fastapi (from -r requirements.txt (line 2)) Downloading https://files.pythonhosted.org/packages/61/0f/427f0af121b226e62237e430f5bf4485e0ae1565b3f5b782613b59f30abc/fastapi-0.78.0-py3-none-any.whl (54kB) 100% |████████████████████████████████| 61kB 5.9MB/s Collecting uvicorn[standard] (from -r requirements.txt (line 3)) Downloading https://files.pythonhosted.org/packages/a0/bb/1f93757efc22e6e047021dd10255ae471e7930cfc1676ad18b9c70de48e5/uvicorn-0.17.0-py3-none-any.whl (54kB) 100% |████████████████████████████████| 61kB 6.1MB/s Collecting beautifulsoup4 (from -r requirements.txt (line 4)) Downloading https://files.pythonhosted.org/packages/9c/d8/909c4089dbe4ade9f9705f143c9f13f065049a9d5e7d34c828aefdd0a97c/beautifulsoup4-4.11.1-py3-none-any.whl (128kB) 100% |████████████████████████████████| 133kB 5.4MB/s Collecting aioredis (from -r requirements.txt (line 5)) Downloading https://files.pythonhosted.org/packages/9b/a9/0da089c3ae7a31cbcd2dcf0214f6f571e1295d292b6139e2bac68ec081d0/aioredis-2.0.1-py3-none-any.whl (71kB) 100% |████████████████████████████████| 71kB 4.8MB/s Collecting cloudscraper (from -r requirements.txt (line 6)) Downloading https://files.pythonhosted.org/packages/85/4e/96e23b05beaa2fea2972294d7c0d73d0f055822bdb4a8ffa5f88293820ff/cloudscraper-1.2.60-py2.py3-none-any.whl (97kB) 100% |████████████████████████████████| 102kB 5.8MB/s Collecting fastapi-cache2 (from -r requirements.txt (line 7)) Could not find a version that satisfies the requirement fastapi-cache2 (from -r requirements.txt (line 7)) (from versions: ) No matching distribution found for fastapi-cache2 (from -r requirements.txt (line 7))

any help would be great thanks :)

yts cannot paginate/1337x has no magnet link

1 YTS:
The content of the first page is the same as the content of the second page.

2 1337x:
1337x has no magnet link
The json content is:
{"data":[{"name":"The Flash 2023 HDTS 1080p x264 AAC 2GB - HushRips.","size":"2.5 GB","date":"8pm Jun. 23rd","seeders":"1764","leechers":"333","url":"https://1337x.proxyninja.org/torrent/5701517/The-Flash-2023-HDTS-1080p-x264-AAC-2GB-HushRips/","uploader":"mazemaze16"}],"time":2.792140483856201,"total":1}

New update

Any pln to update api or any pln to adding new website no update from 1 month plz bro add more website lovee your work bro

Change port argument type

Hi !
Thanks for your work.

The entry point has by default a string as the port argument which leads to the following error :

Traceback (most recent call last):
  File "/usr/lib64/python3.10/logging/__init__.py", line 1100, in emit
    msg = self.format(record)
  File "/usr/lib64/python3.10/logging/__init__.py", line 943, in format
    return fmt.format(record)
  File "/usr/lib64/python3.10/logging/__init__.py", line 678, in format
    record.message = record.getMessage()
  File "/usr/lib64/python3.10/logging/__init__.py", line 368, in getMessage
    msg = msg % self.args
TypeError: %d format: a real number is required, not str
Call stack:
  File "/home/ben/Torrent-Api-py/main.py", line 233, in <module>
    uvicorn.run(app, host="0.0.0.0", port='8080')
...

Change string as a int remove the error and still works.

In main.py change the

if __name__ == "__main__":
    uvicorn.run(app, host="0.0.0.0", port='8080')

by

if __name__ == "__main__":
    uvicorn.run(app, host="0.0.0.0", port=8080)

Heroku Internal Server Error?

Hi,

I did fork and deploy on heroku but I'm receiving Internal Server Error when I try https://xxxxxx.herokuapp.com/api/v1/search?site=1337x&query=QxR

I would appreciate your help with this problem

Edit:
İt seems same problem still occurs for me?

Redis issue on heruko? I dont think it got removed correctly

2022-08-19T16:35:36.663157+00:00 heroku[web.1]: State changed from crashed to starting

2022-08-19T16:35:39.386347+00:00 heroku[web.1]: Starting process with command gunicorn -w 4 -k uvicorn.workers.UvicornWorker main:app

2022-08-19T16:35:40.641048+00:00 app[web.1]: [2022-08-19 16:35:40 +0000] [4] [INFO] Starting gunicorn 20.1.0

2022-08-19T16:35:40.641501+00:00 app[web.1]: [2022-08-19 16:35:40 +0000] [4] [INFO] Listening at: http://0.0.0.0:55238 (4)

2022-08-19T16:35:40.641558+00:00 app[web.1]: [2022-08-19 16:35:40 +0000] [4] [INFO] Using worker: uvicorn.workers.UvicornWorker

2022-08-19T16:35:40.647742+00:00 app[web.1]: [2022-08-19 16:35:40 +0000] [9] [INFO] Booting worker with pid: 9

2022-08-19T16:35:40.743433+00:00 app[web.1]: [2022-08-19 16:35:40 +0000] [10] [INFO] Booting worker with pid: 10

2022-08-19T16:35:40.819807+00:00 app[web.1]: [2022-08-19 16:35:40 +0000] [11] [INFO] Booting worker with pid: 11

2022-08-19T16:35:40.833925+00:00 app[web.1]: [2022-08-19 16:35:40 +0000] [12] [INFO] Booting worker with pid: 12

2022-08-19T16:35:40.963947+00:00 app[web.1]: [2022-08-19 16:35:40 +0000] [9] [ERROR] Exception in worker process

2022-08-19T16:35:40.963983+00:00 app[web.1]: Traceback (most recent call last):

2022-08-19T16:35:40.963986+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.10/site-packages/gunicorn/arbiter.py", line 589, in spawn_worker

2022-08-19T16:35:40.963987+00:00 app[web.1]: worker.init_process()

2022-08-19T16:35:40.963987+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.10/site-packages/uvicorn/workers.py", line 66, in init_process

2022-08-19T16:35:40.963988+00:00 app[web.1]: super(UvicornWorker, self).init_process()

2022-08-19T16:35:40.963988+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.10/site-packages/gunicorn/workers/base.py", line 134, in init_process

2022-08-19T16:35:40.963988+00:00 app[web.1]: self.load_wsgi()

2022-08-19T16:35:40.963989+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.10/site-packages/gunicorn/workers/base.py", line 146, in load_wsgi

2022-08-19T16:35:40.963989+00:00 app[web.1]: self.wsgi = self.app.wsgi()

2022-08-19T16:35:40.963990+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.10/site-packages/gunicorn/app/base.py", line 67, in wsgi

2022-08-19T16:35:40.963990+00:00 app[web.1]: self.callable = self.load()

2022-08-19T16:35:40.963990+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py", line 58, in load

2022-08-19T16:35:40.963990+00:00 app[web.1]: return self.load_wsgiapp()

2022-08-19T16:35:40.963991+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py", line 48, in load_wsgiapp

2022-08-19T16:35:40.963991+00:00 app[web.1]: return util.import_app(self.app_uri)

2022-08-19T16:35:40.963991+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.10/site-packages/gunicorn/util.py", line 359, in import_app

2022-08-19T16:35:40.963991+00:00 app[web.1]: mod = importlib.import_module(module)

2022-08-19T16:35:40.963995+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.10/importlib/init.py", line 126, in import_module

2022-08-19T16:35:40.963995+00:00 app[web.1]: return _bootstrap._gcd_import(name[level:], package, level)

2022-08-19T16:35:40.963996+00:00 app[web.1]: File "", line 1050, in _gcd_import

2022-08-19T16:35:40.963996+00:00 app[web.1]: File "", line 1027, in _find_and_load

2022-08-19T16:35:40.963996+00:00 app[web.1]: File "", line 1006, in _find_and_load_unlocked

2022-08-19T16:35:40.963997+00:00 app[web.1]: File "", line 688, in _load_unlocked

2022-08-19T16:35:40.963997+00:00 app[web.1]: File "", line 883, in exec_module

2022-08-19T16:35:40.963997+00:00 app[web.1]: File "", line 241, in _call_with_frames_removed

2022-08-19T16:35:40.963997+00:00 app[web.1]: File "/app/main.py", line 12, in

2022-08-19T16:35:40.963998+00:00 app[web.1]: from fastapi_cache.backends.redis import RedisBackend

2022-08-19T16:35:40.963998+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.10/site-packages/fastapi_cache/backends/redis.py", line 3, in

2022-08-19T16:35:40.963998+00:00 app[web.1]: from redis.asyncio.client import Redis

2022-08-19T16:35:40.963999+00:00 app[web.1]: ModuleNotFoundError: No module named 'redis'

2022-08-19T16:35:40.963999+00:00 app[web.1]: [2022-08-19 16:35:40 +0000] [9] [INFO] Worker exiting (pid: 9)

2022-08-19T16:35:41.146504+00:00 heroku[web.1]: State changed from starting to up

2022-08-19T16:35:41.367131+00:00 app[web.1]: [2022-08-19 16:35:41 +0000] [4] [WARNING] Worker with pid 12 was terminated due to signal 15

2022-08-19T16:35:41.368091+00:00 app[web.1]: [2022-08-19 16:35:41 +0000] [4] [WARNING] Worker with pid 11 was terminated due to signal 15

2022-08-19T16:35:41.368274+00:00 app[web.1]: [2022-08-19 16:35:41 +0000] [4] [WARNING] Worker with pid 10 was terminated due to signal 15

2022-08-19T16:35:41.464592+00:00 app[web.1]: [2022-08-19 16:35:41 +0000] [4] [INFO] Shutting down: Master

2022-08-19T16:35:41.464670+00:00 app[web.1]: [2022-08-19 16:35:41 +0000] [4] [INFO] Reason: Worker failed to boot.

2022-08-19T16:35:41.667960+00:00 heroku[web.1]: Process exited with status 3

2022-08-19T16:35:41.766381+00:00 heroku[web.1]: State changed from up to crashed

Frozenlist error

Frozenlist distribution not found, it is log. Kindly update version or remove it from requirement.txt

FastApi getting slow

The API is so good the work is fabulous

little issue the API work is so slow on the

To much slow in 1337x

{"error":"website blocked change ip or domain"}

This query https://torrents-api-py3.herokuapp.com/api/v1/search?site=bitsearch&query=avengers&page=1 gives an error {"error":"website blocked change ip or domain"}.

Noticed the above error occurs when the query is a single word. The query gave true results when I tried manually in the BitSearch website, but it gives an error when the same is down through the API.

Also, API gives true results when any extra word is added and the query is modified to a non single word like "avengers 2021".

Anyway, thanks a lot for the API. Brilliant work mate 🙌🏽

[Need Help] What does Website blocked mean?

I get this error, whenever I try to query 1337x on a oracle server, I understand something is blocked , whether it's the IP of my server blacklisted on 1337x or My network blocking the 1337x , I'm not clear on this. I tried some work arounds like using Tor to scrape the site. based on whats the issue is I can check on workarounds properly. please help on this

{"error":"website blocked change ip or domain"}

tbp broken

could you check tbp api? it doesnt work anymore. 1337x etc. works fine.

reproduce with https://torrent-api-py-nx0x.onrender.com/api/v1/search?site=piratebay&query=avengers

thank you.

Always 403 Forbidden on 1337x?

The http://localhost:8009/api/v1/search?site=1337x&query=avengers page was loading for a long time. So I went ahead and printed out the response:

This is the logs:

<ClientResponse(https://1337x.to/search/avengers/226/) [403 Forbidden]>
<CIMultiDictProxy('Date': 'Sat, 05 Aug 2023 11:41:25 GMT', 'Content-Type': 'text/html; charset=UTF-8', 'Transfer-Encoding': 'chunked', 'Connection': 'close', 'Cross-Origin-Embedder-Policy': 'require-corp', 'Cross-Origin-Opener-Policy': 'same-origin', 'Cross-Origin-Resource-Policy': 'same-origin', 'Origin-Agent-Cluster': '?1', 'Permissions-Policy': 'accelerometer=(),autoplay=(),camera=(),clipboard-read=(),clipboard-write=(),geolocation=(),gyroscope=(),hid=(),interest-cohort=(),magnetometer=(),microphone=(),payment=(),publickey-credentials-get=(),screen-wake-lock=(),serial=(),sync-xhr=(),usb=()', 'Referrer-Policy': 'same-origin', 'X-Frame-Options': 'SAMEORIGIN', 'cf-mitigated': 'challenge', 'Cache-Control': 'private, max-age=0, no-store, no-cache, must-revalidate, post-check=0, pre-check=0', 'Expires': 'Thu, 01 Jan 1970 00:00:01 GMT', 'Report-To': '{"endpoints":[{"url":"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=Hvmo1kU2Ujcb%2FzsBCn%2BbF%2FTiZIy6vofMYx7niEY0EtJtmnPt7fDXVJVqGehfPzNVDQxKEWtoguFbCuERrG7zULRZS5lyhBVPz5zS3CSpo4nDjpYngbN0GTg%2BBw%3D%3D"}],"group":"cf-nel","max_age":604800}', 'NEL': '{"success_fraction":0,"report_to":"cf-nel","max_age":604800}', 'Vary': 'Accept-Encoding', 'Server': 'cloudflare', 'CF-RAY': '7f1ec5574e4468b5-BUD', 'Content-Encoding': 'gzip', 'alt-svc': 'h3=":443"; ma=86400')>

Are you able to query 1337x? I was using a tor proxy though. 1337x is blocked by default in my country. It could be that it is doing some Cloudflare verification. Will debug more.

REDIS URI

CAN'T GET REDIS URI.
REDIS WILL BE SHUTTING DOWN THEIR PLATFORM IN AUGUST AT THE MOMENT THERE'S NO SIGN UP BUTTON. PLEASE HELP.

When query towards magnetdl has " : " in it, search will fail and result in {"error":"Website Blocked Change IP or Website Domain."}

As can be derived from the title, searchstring does not accomodate the use of " : ", when browsing for a title like avengers: endgame it will result in a failure, even though that is the official title as per the Omdb specs. Fix is fairly easy, replacing " : " by a space or " . ".

Logs:

INFO: #:56980 - "GET /api/v1/search?site=magnetdl&query=avengers&limit=1 HTTP/1.1" 200 OK
INFO: #:57017 - "GET /api/v1/search?site=magnetdl&query=avengers:endgame&limit=1 HTTP/1.1" 403 Forbidden

{"Title":"Avengers: Endgame","Year":"2019","Rated":"PG-13","Released":"26 Apr 2019","Runtime":"181 min","Genre":"Action, Adventure, Drama","Director":"Anthony Russo, Joe Russo","Writer":"Christopher Markus, Stephen McFeely, Stan Lee","Actors":"Robert Downey Jr., Chris Evans, Mark Ruffalo","Plot":"After the devastating events of Avengers: Infinity War (2018), the universe is in ruins. With the help of remaining allies, the Avengers assemble once more in order to reverse Thanos' actions and restore balance to the universe.","Language":"English, Japanese, Xhosa, German","Country":"United States","Awards":"Nominated for 1 Oscar. 70 wins & 133 nominations total","Poster":"https://m.media-amazon.com/images/M/MV5BMTc5MDE2ODcwNV5BMl5BanBnXkFtZTgwMzI2NzQ2NzM@._V1_SX300.jpg","Ratings":[{"Source":"Internet Movie Database","Value":"8.4/10"},{"Source":"Rotten Tomatoes","Value":"94%"},{"Source":"Metacritic","Value":"78/100"}],"Metascore":"78","imdbRating":"8.4","imdbVotes":"1,246,637","imdbID":"tt4154796","Type":"movie","DVD":"30 Jul 2019","BoxOffice":"$858,373,000","Production":"N/A","Website":"N/A","Response":"True"}

Torlock :/

Not showing any result. And then it shows error that, the application crashes.

Rarbg option

Thank you for this great api, would be great if you would add Rarbg as a source to.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.