A mangadex rss generator for the new site (v5).
-
Clone this repo.
git clone https://github.com/marceloslacerda/mangadex-rss cd mangadex-rss
-
Install the requirements (preferrably using virtual environments or using the
--user
option).pip install -r requirements.txt
-
Set your mangadex credentials.
export username=myusername export password=mypassword
-
[OPTIONAL] Set some other environment variables to customize the behavior.
# This sets the generator should put the generated feed file. export feed_file=/var/www/html/manga-feed.rss # Set which languages to filter. export languages='en,es' # Set how many chapters to fetch per run (default 10) export fetch_limit=20
-
Run.
python main.py
It connects to mangadex api using your credentials and pulls the latest changes to the manga you are following and turns that into a RSS xml that's written to the chosen feed_file
.
There are several ways to use the rss file, in my particular case I used tt-rss on my personal vps.
That might be too complicated or costly for most. Some rss readers might be able to open the file normally. I know that liferea (example image below) is not only capable of reading local rss files but is also will regularly check it for changes, other readers might be able to do the same.
I personally use a cron job that calls mangadex-rss every 5th minute of each hour.
5 * * * * root /opt/mangadex-rss/md-rss
The md-rss
file is just an executable script that calls mangadex-rss with my credentials.
#!/bin/sh -e
cd "$(dirname $0)"
. venv/bin/activate
export username=...
export password='...'
export feed_file=/var/www/html/manga.rss
python3 main.py
If you are going the route of running mangadex-rss on your local computer you might want to run the job as a regular user cron job.
For any other questions or suggestions, please open an issue and I'll try to respond to the best of my abilities.
As usual, code contributions are welcome.