https://github.com/jeziellago/rustium
Medium rss feed api built with Rust (study project).
https://github.com/jeziellago/rustium
api json medium rest rust xml
Last synced: 7 months ago
JSON representation
Medium rss feed api built with Rust (study project).
- Host: GitHub
- URL: https://github.com/jeziellago/rustium
- Owner: jeziellago
- License: mit
- Created: 2021-06-17T12:48:39.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-06-18T18:16:20.000Z (over 4 years ago)
- Last Synced: 2025-02-05T10:34:45.409Z (8 months ago)
- Topics: api, json, medium, rest, rust, xml
- Language: Rust
- Homepage:
- Size: 7.81 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Rustium
Medium feed as Json built with Rust.
## How it works?
`rustium-api` makes requests to `https://medium.com/AUTHOR/feed`, receiving RSS as `xml` and converting to Json.
### Medium RSS Feed (example)
```xml
https://medium.com/@jeziellago?source=rss-e3c73726655c------2
https://cdn-images-1.medium.com/fit/c/150/150/1*wU_0x6MywryLcBgBPD2GAQ.jpeg
Stories by Jeziel Lago on Medium
https://medium.com/@jeziellago?source=rss-e3c73726655c------2
Medium
...
https://example.medium.com/post
https://medium.com/p/4ec4041fa260
...
...
...
```
### Rustium enable Feed as Json
```json
{
"posts": [
{
"title": "Something about anything",
"link": "https://example.medium.com/some-post-title",
"category": ["tech", "rust", "api"],
"content": ""
},
...
]
}
```
## Request
```text
GET
http://localhost:3030/posts/AUTHOR
```
## Run
```
$ cd rustium-sample
$ cargo run
```