Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sapuri/feed-finder
A Go library for finding RSS feed URLs from the given URL
https://github.com/sapuri/feed-finder
atom feed golang library rss
Last synced: 13 days ago
JSON representation
A Go library for finding RSS feed URLs from the given URL
- Host: GitHub
- URL: https://github.com/sapuri/feed-finder
- Owner: sapuri
- License: mit
- Created: 2021-01-24T10:24:31.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-02-04T16:55:35.000Z (almost 4 years ago)
- Last Synced: 2024-06-20T13:41:11.769Z (6 months ago)
- Topics: atom, feed, golang, library, rss
- Language: Go
- Homepage:
- Size: 19.5 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# feed-finder
A Go library for finding RSS feed URLs from the given URL## Installation
```
go get github.com/sapuri/feed-finder
```(optional) To run unit tests:
```
make test
```## Examples
```go
package mainimport (
"context"
"fmt"
"log""github.com/sapuri/feed-finder/feedfinder"
)func main() {
ctx := context.Background()
const siteURL = "https://www3.nhk.or.jp/news/"ff := feedfinder.New()
feeds, err := ff.FindFeeds(ctx, siteURL)
if err != nil {
log.Fatal(err)
}for _, feed := range feeds {
fmt.Println(feed.Title)
fmt.Println(feed.URL)
}
}
```