Install the rssfinder using the following command:
go get github.com/numb95/rssfinder
Import it in the project:
import "github.com/numb95/rssfinder"
Index
func FindRSSFeeds(url string) ([]string, error)
FindRSSFeeds finds the RSS feeds in a webpage.
Example Code
package main
import (
"fmt"
"github.com/numb95/rssfinder"
)
func main() {
url := "https://goodarzi.net"
rss, err := rssfinder.FindRSSFeeds(url)
if err != nil {
panic(err)
}
for _, feed := range rss {
fmt.Println(feed)
}
}
License
This project is licensed under the MIT license