Git Product home page Git Product logo

seedr-api's Introduction

Seedr.cc API

seedr.cc

Unofficial API wrapper for seedr.cc

Example

The Following Code snipet will help you understand how to use this.

var Seedr = require("seedr");
var seedr = new Seedr();
await seedr.login("[email protected]","password");
await seedr.addMagnet("magnet_link");
// Starts downloading, wait till that happens
var contents = await seedr.getVideos();
// An object containing list of all files and folders

Documentation

Logging in

There are two ways to login, that is,

  • using username and password
  • using device code

the username and password method returns a token with short lifetime while device id method returns a 1 year lifetime token.

var Seedr = require("seedr");
var seedr = new Seedr();
await seedr.login("[email protected]","password");

Seedr.cc Devices

var Seedr = require("seedr");
var seedr = new Seedr();
await seedr.getDeviceCode();
// prints a device code and user code, go to seedr.cc/devices and add user code
// after adding user code, pass the device code parameter to getToken function

await seedr.getToken("device_code");
// returns a token with 1 year lifetime

** using an old token to log in directly **

var Seedr = require("seedr");
var seedr = new Seedr();
await seedr.addToken("token");

Adding magnet link

Magnet link can be added using addMagnet function

var Seedr = require("seedr");
var seedr = new Seedr();
await seedr.login("[email protected]","password");

await seedr.addMagnet("magnet_link");

// adds a magnet link, wait till it downloads

Getting contents

To get contents (only videos), use the getVideos function

var Seedr = require("seedr");
var seedr = new Seedr();
await seedr.login("[email protected]","password");

await seedr.getVideos();

/*
Prints Array of Arrays with file data

[
  [
    {
      "fid": 124291671, // folder id
      "id": 636235280, // file id
      "name": "File Name"
    },
    ...
  ],
  ...
]
*/

Deleting contents

To delete Folders use deleteFolder function and to delete files, use deleteFiles function

var Seedr = require("seedr");
var seedr = new Seedr();
await seedr.login("[email protected]","password");

await seedr.deleteFile("file_id");

await seedr.deleteFolder("folder_id");

Contributing

Thank you for your interest in contributing, If you feel like there's something missing or any new feature can be added, just create a PR and I will see the rest.

Help

You can contact me on social media, Everything about me can be found here

Installation

Requirements

  • Node.Js installed

Dev Dependencies

  • Axios

Credits

Contact

Contact me anywhere, just visit my portfolio

License

This project is licensed under MIT License, See LICENSE for more information

seedr-api's People

Contributors

l0u1sg avatar theabbie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

seedr-api's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.