rss

package
v0.0.0-...-9b45353 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Plugin = &dc.Plugin{
	Name:        "rss",
	Entrypoints: []string{".*"},
	ConfigCreator: func(url string, ho *dc.HandlerOpts) (string, *dc.Config, error) {
		f, err := getFeed(context.TODO(), ho.Client, url)
		if err != nil {
			return "", nil, err
		}

		return f.Title, &dc.Config{
			Type:        dc.FullScrape,
			Entrypoints: []string{url},
		}, nil
	},
	Scheduler: dc.DefaultScheduler,
	Routes: map[string]dc.Handler{
		`(.*)`: rssFeed,
	},
}

Plugin is a plugin that can scrape rss feeds TODO: - [ ] strip images that don't matter

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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