With this module we can get magnets of torrents from ilcorsaronero.info. They're not providing any kind of API, so this module just scrape the information from the website.
npm install ilcorsaronero-api into your project
Download this repo and give
Right now the module provide two functions:
With this method we search for torrents.
"categories" is a parameter and it can be a string or an array of string, it's optional and if added the module will avoid completely to scrape every other item resulted from the search that doesn't match the paramaterso, being also faster in this way.
With this method we get latest available torrents. It works the same as the other method, with the difference that, obviously, here any search string is needed.
There is a very simple example in the 'test' folder. This is what it contains:
var icn = ;icn;icn;
Any method will respond with an array of objects. Here an example of an array response with only one object inside of it:
cat: 'BDRiP'name: ' - Star Wars The Return of the Jedi Despecialized Edition ITA ENG AC3 AVCHD 720p v1.0 ZMachine - 'link: 'magnet:?xt=urn:btih: ...'size: '1.05 GB'date: '03.06.15'seeds: '32'peers: '6'
The categories are the ones you can see from the website, capital letters and space must be respected:
I will absolutely improve that piece of code that handle the array of categories in input... it's awful as it is right now, but it works and I needed something that could work very soon.
Released under the GNU 3 license.
If you distribute a copy or make a fork of the project, you have to credit this project as source.
Copyright © 2015, Giacomo cerquone.
All rights reserved.