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

https://github.com/y-yagi/rssfinder


https://github.com/y-yagi/rssfinder

golang rss

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

          

# rssfinder

[![Build Status](https://github.com/y-yagi/rssfinder/actions/workflows/ci.yml/badge.svg)](https://github.com/y-yagi/rssfinder/actions/workflows/ci.yml)
[![Go Reference](https://pkg.go.dev/badge/github.com/y-yagi/rssfinder.svg)](https://pkg.go.dev/github.com/y-yagi/rssfinder)

`rssfinder` is a library that finds RSS feeds from an URL.

Example:

```go
package main

import (
"fmt"

"github.com/y-yagi/rssfinder"
)

func main() {
feeds, err := rssfinder.Find("https://github.com/y-yagi/rssfinder/releases")
if err != nil {
fmt.Printf("Find error: %v\n", err)
return
}

for _, feed := range feeds {
fmt.Printf("Type: '%v', Title: '%v', Href: '%v'\n", feed.Type, feed.Title, feed.Href)
// Type: 'application/atom+xml', Title: 'rssfinder Release Notes', Href: 'https://github.com/y-yagi/rssfinder/releases.atom'
// Type: 'application/atom+xml', Title: 'rssfinder Tags', Href: 'https://github.com/y-yagi/rssfinder/tags.atom'
}
}
```