Documentation
¶
Index ¶
Constants ¶
View Source
const ( SourceRSSLink model.DiscoverySource = "rss-link" SourceSitemap model.DiscoverySource = "sitemap" SourceDOMContainer model.DiscoverySource = "dom-container" )
Source constants for DiscoveredFeed.Source.
View Source
const (
// AcceptThreshold is the confidence score above which results are accepted without sampling.
AcceptThreshold = 0.70
)
Variables ¶
This section is empty.
Functions ¶
func RefineByUrlPattern ¶
RefineByUrlPattern derives the common URL path prefix from validEntries and returns the pattern and count of allEntries whose URL matches that prefix.
func ReplayDiscovered ¶
ReplayDiscovered replays a previously discovered feed configuration.
func ScrapeFeed ¶
ScrapeFeed runs the universal discovery pipeline against the given DataInput. On success, feed.Entries will contain stub recipes (Url only) and feed.Discovered will describe how they were found.
func UrlPathPattern ¶
UrlPathPattern returns the common path prefix of the given URLs as a plain string. Example: ["/recipes/pasta", "/recipes/chicken"] → "/recipes/"
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.