rarbgApi

node v6.17.1
version: 2.0.0
endpointsharetweet
This is a playground to test JavaScript. It runs a completely standard copy of Node.js on a virtual server created just for you. Every one of npm’s 300,000+ packages are pre-installed, so try it out:
// Let's show where the Internation Space Station currently is. console.log("Let's see where the ISS is with Node " + process.version); // We can use any package from NPM since they are all built in. var getJSON = require("async-get-json"); // And we can use ES7 async/await to pull the ISS's position from the open API. var result = await getJSON("http://api.open-notify.org/iss-now.json"); // RunKit will automatically display the last statement and try to find its best representation: console.log("result.iss_position: ",result); var rarbgApi = require("rarbg-api"); rarbgApi.search("Despicable").then(data => console.log(data)); /* const RutrackerAPI = require('rutracker-api-2'); const username = ''; const password = ''; const rutracker = new RutrackerAPI(); rutracker.login(username, password) .then((cookie) => { // you can save the cookie to use them later // ... }) .then(() => rutracker.search('React', 'seeds', false)) // Searching for Inception, sorted by seeds from min to max .then((results) => console.log(results)) .catch((err) => { // Something wrong console.log(err); }); rutracker.download('12345') .then((frs) => { console.log(frs); }) .catch((err) => console.error(err)); */
Loading…

no comments

    sign in to comment