TorrentSpider webapp, search torrent across multiple providers

in #utopian-io7 years ago (edited)

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

image.png

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.

image.png

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

Sort:  

Thank you for the contribution. It has been approved.

You should mention that the site uses coinhive.

You can contact us on Discord.
[utopian-moderator]

Hey @mkt, I just gave you a tip for your hard work on moderation. Upvote this comment to support the utopian moderators and increase your future rewards!

okay, the article is updated

Thanks! I personally would also add a note to the website. The official implementation example even includes an opt-in dialogue. Look here: https://markus-kottlaender.de

okay, is that feature provided by coinhive ?

yes, here: https://coinhive.com/documentation/miner
you don't have to use this... of course this will drop the number of miners dramatically ;)
but I just prefer this transparent approach instead of just silently using the visitors cpu power.

Hey @damaera I am @utopian-io. I have just upvoted you!

Achievements

  • You have less than 500 followers. Just gave you a gift to help you succeed!
  • This is your first accepted contribution here in Utopian. Welcome!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x