An open API service indexing awesome lists of open source software.

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).

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
```