Lorem ipsum i am too lazy figure what it does yourself
You might be lazy too so here ya go:
Please dont start a test torrent download on my website it works you dont need to just wastes my drive space. Be careful when adding torrents to my deployment as it is deployed everytime i commit code here so your downloads may be interrupted.
If you only want telegram bot to be workinh set value of DISABLE_WEB env var to true.
Set a variable with key "SITE" and value is the link of your site. eg. "https://\
Set a enviorment variable with key "TELEGRAM_TOKEN" and token of your bot as value. How to get token To set a enviorment variable go to heroku dashboard open the app then go to Settings > Config vars > Reveal Config vars.
The library used for web scrapping the torrent sites requires a custom buildpack on heroku. By default the search will happen on your deployment and you will need to configure the buildpack as described below. But if you don't want to do that you can specify and env SEARCH_SITE and set value to https://torrent-aio-bot.herokuapp.com/ . The frwd slash at end is necessary. This will make all the searches go thru my deployment and you don't need to configure buildpack.
Go to the build packs section in settings and click add buildpack and enter "https://github.com/jontewks/puppeteer-heroku-buildpack.git" as buildpack url then click save changes. And then do a dummy git commit so that heroku will buid it using the buildpack this time. Then set the SEARCH_SITE env to same value as SITE.
Use this torrent for testing or when downloading to setup drive it is well seeded and downloads in ~10s
magnet:?xt=urn:btih:dd8255ecdc7ca55fb0bbf81323d87062db1f6d1c&dn=Big+Buck+Bunny
To change the pirate bay site, visit the site you would like to use search something there, copy the url eg. https://thepiratebay.org/search/whatisearched and replace the search with {term} so the url looks like https://thepiratebay.org/search/{term} ans set this to env var PIRATEBAY_SITE
Same, if you want to change the limetorrents site visit the site you want to use and search for something, then replace the thing you searched for with {term} so final url looks like https://limetorrents.at/search?search={term} and set this value to env var LIMETORRENT_SITE
Simillarly the enviorment variable for 1337x is O337X_SITE
Prefix: https://\
Endpoint | Params | Return |
---|---|---|
/torrent/download | link: string | { error: bool, link: string, infohash: string errorMessage?: string } |
/torrent/list | none | {error: bool, torrents: [ torrent, torrent, ... ]} |
/torrent/remove | link: string | { error: bool, errorMessage?: string } |
/torrent/status | link: string | {error: bool, status: torrent, errorMessage?: string} |
link is magnet uri of the torrent
torrent: {
magnetURI: string,
speed: string,
downloaded: string,
total: string,
progress: number,
timeRemaining: number,
redableTimeRemaining: string,
downloadLink: string,
status: string,
done: bool
}
Endpoint | Params | Return |
---|---|---|
/search/{site} | query: string, site?: string | {error: bool, results: [ result, ... ], totalResults: number, } |
/details/{site} | query: string | {error: bool, torrent } |
query is what you want to search for or the link of the torrent page site is the link to homepage of proxy to use must have a trailing '/'
result: {
name: string,
link: string,
seeds: number,
details: string
}
torrent: {
title: string,
info: string,
downloadLink: string,
details: [ { infoTitle: string, infoText: string } ]
}
sites available: piratebay, 1337x, limetorrent