TorrentSpider is a web application that can search torrent across multiple providers.
Built with React.js ( create-react-app ). The website is live here http://torrentspider.ga
Available providers are
- ThePirateBay
- KickassTorrents
- TorrentProject
- Rarbg
- Torrent9
- Torrentz2
- 1337x
- ExtraTorrent
Developing
API
This project use API that I made using Glitch. You can see the API source code here:
https://glitch.com/~torrent-search
the API itself use express.js and npm packeage torrent-search-api. I just use the public providers.
const TorrentSearchApi = require('torrent-search-api');
const torrentSearch = new TorrentSearchApi();
torrentSearch.enablePublicProviders();
and then in express routing
app.get("/search", function (req, res) {
var query = req.query.q || ''
var limit = req.query.limit || 20
var category = req.query.category || ''
torrentSearch.search(query)
.then(torrents => {
res.json(torrents)
})
});
Front-end
The website is a single-page application built with React. I'm using create-react-app for bootstrapping my project. I just make it as simple as possible for making users easy to search. So I just made few components.
And i'm using react-coin-hive for monetizing my website.
Deploying
I use Netlify for deploying this web-app. Buying free domain at freenom.
And here we go.
http://torrentspider.ga
How to contribute?
You can fork the project, and install it locally. Then use this styleguide for contributing. https://github.com/airbnb/javascript/tree/master/react
Future
The only issues here is server performance. It took several seconds for me to completing search request. Since the api is served from glitch which is free server.
Thank you and happy torrenting
Posted on Utopian.io - Rewarding Open Source Contributors