Skip to content

A Go library for finding RSS feed URLs from the given URL

License

Notifications You must be signed in to change notification settings

sapuri/feed-finder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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

About

A Go library for finding RSS feed URLs from the given URL

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages