Code Monkey home page Code Monkey logo

nyaa-dl's Introduction

nyaa-dl

nyaa-dl is a command line program to download torrents files from nyaa.

Don't use this for illegal download purposes. I'm not responsible for any trouble.

Installation

Please download commands from Releases Page.

  • Windows (64bit): nyaa-dl_x.x.x_Windows_x86_64.exe
  • Windows (32bit): nyaa-dl_x.x.x_Windows_i386.exe

If you want to build it yourself, run make or go build -o ./nyaa-dl.out cmd/nyaa-dl/main.go.

Usage

See ./nyaa-dl.exe --help for more usage.

Configuration

First, prepare a json configuration file, e.g. config.json.

{
    "targets": [
        {
            "title": "Art - Doujinshi",
            "domain": "nyaa.example.com",
            "requiredDownloads": 6000,
            "maxPage": 2,
            "category": "1_2",
            "query": "MyFavoriteArtist",
            "trustedOnly": true
        }
    ]
}

You can specify multiple targets, and a target speficitaions are here.

  • title: Free title.
  • domain: The domain of nyaa. e.g. nyaa.example.com from https://nyaa.example.com.
  • requiredDownloads: Minimum number of downloads threshold to download.
  • maxPage: Max page to check torrent files.
  • category (Optional): The value of c from https://nyaa.example.com/?c=1_2.
  • query (Optional): The value of q from https://nyaa.example.com/?q=YourSearchQuery.
  • trustedOnly: The flag whether is downloading from only trusted user uploaded files.

Running

For example, you can exec nyaa-dl like ./nyaa-dl.exe --config="./config.json" --output="./my-torrents".
This command crawls nyaa by ./config.json and saves torrent files to ./my-torrents. When executed it a second time, skips to download already downloaded torrent files. So basically you don't have to remove torrent files in ./my-torrents.

nyaa-dl's People

Contributors

johnrabin2357 avatar

Watchers

 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.