filelist-api

1.0.4 • Public • Published

Filelist API

An api for search and download for the private tracker filelist

npm install filelist-api

it uses cookies.json to keep your cookies for future requests

Usage

const FileList = new (require('filelist-api'))([username], [password]);
// optional
const options = {
    search: query,
    cat: 0, // or array: [4, 6, 19]
    searchin: 0,
    sort: 0,
    page: 0
};
FileList.search("Stargate", options).then(result => {
    FileList.download(result[0].torrentFile);
});

Login is automatic, but if you want to manually login:

FileList.login().then(() => {
    FileList.search("Stargate").then(result => {
        FileList.download(result[0].torrentFile);
    });
}).catch((err) => {
    console.log(err);
});

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i filelist-api

Weekly Downloads

4

Version

1.0.4

License

MIT

Unpacked Size

11.7 kB

Total Files

4

Last publish

Collaborators

  • lynxaegon