Amila Welihinda
Amila Welihinda
I'm interested in helping with this migration. Would a PR for the migration be welcome?
Travis is used to check, on every push, PR, and merge, if a build is failing or not. Its really useful for guaranteeing that your project works correctly.
> making four requests every time seems inefficient Although it makes 4 requests, it only completes one of them and kills the other requests when the first response is received....
In the Parser.js file, there's already a `maxConcurrentRequests` variable. All we need to do is allow it to be configurable.
Initial partial-working commit ready at [amilajack/PirateBayServer](github.com/amilajack/PirateBayServer). Endpoint example: https://pirate-bay-endpoint.herokuapp.com/search/game%20of%20thrones
Should check it's dependencies for browser support: [cheeriojs/cheerio](github.com/cheeriojs/cheerio) [request/request](github.com/request/request)
Opened an issue for possible browser support: t3chnoboy/thepiratebay/issues/33
Version 1.1.2 swaps [request/request](github.com/request/request) and zlib for [isomorphic-fetch](https://github.com/matthew-andrews/isomorphic-fetch).
I just checked and cheerio can run inside the browser. However, it is quite computationally expensive. Thinking of adding web worker and child process support that will wrap cheerio. Any...
yup! I got it. That's why we migrated to fetch and are adding cross platform multithreaded support (instead of supporting only the node environment). Also CORS will be taken care...