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: about 1 year 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 (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-02-04T16:55:35.000Z (over 5 years ago)
- Last Synced: 2025-03-27T10:01:40.348Z (over 1 year ago)
- Topics: atom, feed, golang, library, rss
- Language: Go
- Homepage:
- Size: 19.5 KB
- Stars: 3
- Watchers: 1
- 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 main
import (
"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)
}
}
```