Git Product home page Git Product logo

nyaa-notifications's Introduction

Nyaa-Notifications

stalk your favorite uploaders and don't miss the drama in the comments


As the RSS feed from nyaa doesn't provide comments and anything after the first page, I had to basically strip down the HTML to retrieve the data I want. Meaning: any changes to nyaa will likely brick this application and make it completely useless... until I fix it.


Supported notification services:

  • SMTP/Mail: (highlight because of newly found release)
  • Discord-Bot:
  • Gotify:

Notes:

  • Email & Discord: The avatar images of users aren't locally parsed. They are attached using their original src link from nyaa. This might be an issue for privacy concerned individuals.

Important information:

Requirements for input domain:

  • Must start at page 1.
  • You have the option to search only the first page, or ALL of them. Think wisely as this could end up downloading the entire website.

Config Notes:

  • You can add multiple Gotify and Email modules as long as you don't change the order of the modules if your database has already been created.
  • The module_type parameter specifies the behavior of the program, don't change it to something random.
  • Discord channels have to be configured separately through the slash command framework (/create, /pause, ...).
  • The discord bot needs the Message Content Intent permission to work. You can activate it in your discord developer portal.

Misc:

  • Hard-coded rate-limits:
    • Nyaa - 2 seconds
    • Gotify - 2 seconds
    • Discord embeds - 1 second
    • Emails - none

Installation:

Clone the repo and run it with cargo run.

You should see a new folder nyaa_notifications. There should be config.toml inside it with a little template. Make sure you understand the structure of it and specify all the necessary and correct parameters. There are no error checks for unsupplied parameters yet, so if you can't read, the binary might exit at any point in time.


Testing:

Testing this program with all its different modules is quite impossible without a nyaa-account. Please contact me on Discord @DepriSheep or create an issue, if you're experiencing any problems.


Please contact me if you'd like to see a specific feature/change.

nyaa-notifications's People

Contributors

vernoxvernax avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

valenciano118

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.