https://github.com/kitlith/ao3rss_rs
RSS feed generator for AO3 fics
https://github.com/kitlith/ao3rss_rs
Last synced: 8 months ago
JSON representation
RSS feed generator for AO3 fics
- Host: GitHub
- URL: https://github.com/kitlith/ao3rss_rs
- Owner: kitlith
- Created: 2020-09-19T02:16:49.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-01T23:38:51.000Z (over 5 years ago)
- Last Synced: 2025-02-12T17:51:39.592Z (over 1 year ago)
- Language: Rust
- Size: 43.9 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ao3rss but Rust
Heavily based off/inspired by [ao3rss](https://github.com/FalacerSelene/ao3rss).
## Usage
Usage is basically the same as the original ao3rss.
- `GET /work/`: Generates an RSS feed for the given ao3 work, with one item per chapter.
- (eventually) `GET /series/`: Generates an RSS feed for the given ao3 series, with one item per chapter in every work in the series.
## Differences between this and the original ao3rss
- Feed is generated using a library, instead of templated text.
- The RSS library in question could probably use some usability improvements, but I still think it's a step up.
- Scrapes `https://archiveofourown.org/works/?view_full_work=true` instead of `https://archiveofourown.org/works//navigate`
- This lets me pull the summaries and content for every chapter, at the cost of having the dates for each individual chapter.
- In the future, it should be feasible to scrape both and combine the data, but I figured this was enough for the moment.
- Features a keep-alive interval. Every second that the RSS feed has not been generated, `` will be sent.
- This is an ugly hack. There's probably another way around this. (If I knew what it was, I wouldn't be doing this.)
- This is enabled by the `keepalive` feature, which can be disabled by passing `--no-default-features` to cargo when building.
## TODO
- Configuration. Everything is kinda hardcoded at the moment.
- Print a line to stdout per request.
- Add feeds for series, and possibly other things.
- Detect one-shots, and remove chapter numbers from titles accordingly.