selector

package
v0.0.0-...-f6732a9 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Comments = []Rule{
	commentsRule1,
	commentsRule2,
	commentsRule3,
	commentsRule4,
}
View Source
var Content = []Rule{
	contentRule1,
	contentRule2,
	contentRule3,
	contentRule4,
	contentRule5,
}
View Source
var DiscardedComments = []Rule{
	discardedCommentsRule1,
	discardedCommentsRule2,
	discardedCommentsRule3,
}
View Source
var DiscardedImage = []Rule{
	discardedImageRule1,
}
View Source
var DiscardedPaywall = []Rule{
	discardedPaywallRule1,
}
View Source
var DiscardedTeaser = []Rule{
	discardedTeaserRule1,
}
View Source
var MetaAuthor = []Rule{
	metaAuthorRule1,
	metaAuthorRule2,
	metaAuthorRule3,
}
View Source
var MetaAuthorDiscard = []Rule{
	metaAuthorDiscardRule1,
	metaAuthorDiscardRule2,
}
View Source
var MetaCategories = []Rule{
	metaCategoriesRule1,
	metaCategoriesRule2,
	metaCategoriesRule3,
	metaCategoriesRule4,
	metaCategoriesRule5,
	metaCategoriesRule6,
}
View Source
var MetaTags = []Rule{
	metaTagsRule1,
	metaTagsRule2,
	metaTagsRule3,
	metaTagsRule4,
}
View Source
var MetaTitle = []Rule{
	metaTitleRule1,
	metaTitleRule2,
	metaTitleRule3,
}
View Source
var OverallDiscardedContent = []Rule{
	overallDiscardedContentRule1,
	overallDiscardedContentRule2,
}
View Source
var PrecisionDiscardedContent = []Rule{
	precisionDiscardedContentRule1,
	precisionDiscardedContentRule2,
}
View Source
var RemovedComments = []Rule{
	removedCommentsRule1,
}

Functions

func Query

func Query(root *html.Node, selector Rule) *html.Node

func QueryAll

func QueryAll(root *html.Node, selector Rule) []*html.Node

Types

type Rule

type Rule func(*html.Node) bool

Jump to

Keyboard shortcuts

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