feedfinder

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 12, 2020 License: BSD-2-Clause Imports: 4 Imported by: 0

README

feedfinder

A tiny Go package and executable to find RSS and Atom feed URLs from the content of a Web page.

Package usage example

package main

import (
    "fmt"
    "github.com/nlpodyssey/feedfinder"
    "log"
)

func main() {
    feeds, err := feedfinder.FindFeeds("https://blog.golang.org")
    
    if err != nil {
        log.Fatal(err)
    }
    
    for _, feed := range feeds {
        fmt.Println(feed)
    }
}
Command line example
feedfinder https://blog.golang.org

License

Feedfinder is licensed under the BSD 2-Clause "Simplified" License.

Documentation

Index

Constants

View Source
const Version = "0.1.0"

Version is the version of feedfinder.

Variables

This section is empty.

Functions

func FindFeeds

func FindFeeds(url string) ([]string, error)

FindFeeds finds a list of RSS and Atom feeds from a web page.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL