Ryuk-me / Torrent-Api-py

An Unofficial API for 1337x, Piratebay, Nyaasi, Torlock, Torrent Galaxy, Zooqle, Kickass, Bitsearch, MagnetDL,Libgen, YTS, Limetorrent, TorrentFunk, Glodls, TorrentProject and YourBittorrent
https://torrent-api-py-nx0x.onrender.com/docs
MIT License
322 stars 235 forks source link

FastApi getting slow #56

Closed adarshchri closed 1 year ago

adarshchri commented 1 year ago

The API is so good the work is fabulous

little issue the API work is so slow on the

To much slow in 1337x

Ryuk-me commented 1 year ago

@adarshchri it's because for every torrent it makes an individual request to scrap its data, let's suppose there are 20 torrents on a page of 1337x to get data related to those torrents, it makes 20 individual requests, which causes it to be slow, whereas in case of Torrent galaxy I get all required data in a single request i.e., why it is faster. If you want to make it faster try to change the limit of 1337x https://github.com/Ryuk-me/Torrent-Api-py/blob/aa69ec3e96b30b19a2c8a94cf3a32b97b4586442/helper/is_site_available.py#L39 change it to 20/30 then it'll be little bit faster.