Add more scraper rules
This commit is contained in:
parent
44799b05f8
commit
d4839b5597
1 changed files with 2 additions and 0 deletions
|
@ -7,8 +7,10 @@ package scraper
|
|||
// List of predefined scraper rules (alphabetically sorted)
|
||||
// domain => CSS selectors
|
||||
var predefinedRules = map[string]string{
|
||||
"cbc.ca": ".story-content",
|
||||
"github.com": "article.entry-content",
|
||||
"igen.fr": "section.corps",
|
||||
"lapresse.ca": ".amorce, .entry",
|
||||
"lemonde.fr": "div#articleBody",
|
||||
"lesjoiesducode.fr": ".blog-post-content img",
|
||||
"linux.com": "div.content, div[property]",
|
||||
|
|
Loading…
Reference in a new issue