Skip to content

Send notifications for both new uploads and comments as an email, discord embed or gotify push notification.

License

Notifications You must be signed in to change notification settings

Vernoxvernax/Nyaa-Notifications

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Send notifications for both new uploads and comments as an email, discord embed or gotify push notification.

Topics

Resources

License

Stars

Watchers

Forks

Languages