Giter Club home page Giter Club logo

ptpfreeleech's Introduction

ptpfreeleech

PTPFreeleech is a Node.js script that checks currently available PassThePopcorn freeleech torrents and runs a few checks against them. If the checks pass, the torrent's information is logged to the console and (optionally) auto-downloaded or logged to a Discord webhook.

Features

  • Automatically download freeleech torrents to a specified path.
  • Log freeleech torrent information to Discord in a pleasing format.
  • Restrict search parameters using provided criteria & filters.

Installation

Preprequistes

The following packages must be installed for this script to function.

  • Node.js 8.4.0 or later
  • npm or yarn, latest possible version

Assuming the above prerequistes are met, run the following command(s) to install the script's dependencies. Be sure to be within the script's working directory.

$ npm install # Run if using npm.
$ yarn install # Run if using yarn.

Configuration

Below is an example config.example.json. Rename config.example.json to config.json and edit the required values to your needs.

{
  "apiuser": "", // PassThePopcorn ApiUser credential.
  "apikey": "", // PassThePopcorn ApiKey credential.
  "minseeders": -1, // Minimum amount of seeders. Set to -1 to ignore.
  "maxseeders": -1, // Maximum amount of seeders. Set to -1 to ignore.
  "minleechers": -1, // Minimum amount of leechers. Set to -1 to ignore.
  "maxleechers": -1, // Maximum amount of leechers. Set to -1 to ignore.
  "minsize": -1, // Minimum size in megabytes. Set to -1 to ignore.
  "maxsize": -1, // Maximum size in megabytes. Set to -1 to ignore.
  "mintime": -1, // Minimum upload time from current time in seconds. Set to -1 to ignore.
  "maxtime": -1, // Maximum upload time from current time in seconds. Set to -1 to ignore.
  "discord": "", // Discord webhook URI. Optional.
  "autodownload": "" // Automatically download .torrent files in a specified path. Optional.
}

Usage

To start the script, run the following command within the script's working directory.

$ npm run start # Run if using npm.
$ yarn run start # Run if using yarn.

ptpfreeleech's People

Contributors

winneon avatar

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.