Преглед на файлове

Add scraping rules for theverge.com

jgbresson преди 3 години
родител
ревизия
7f6ce16d85
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      reader/scraper/rules.go

+ 1 - 0
reader/scraper/rules.go

@@ -44,6 +44,7 @@ var predefinedRules = map[string]string{
 	"techcrunch.com":       "div.article-entry",
 	"techcrunch.com":       "div.article-entry",
 	"theoatmeal.com":       "div#comic",
 	"theoatmeal.com":       "div#comic",
 	"theregister.com":      "#top-col-story h2, #body",
 	"theregister.com":      "#top-col-story h2, #body",
+	"theverge.com":         "h2.inline:nth-child(2),h2.duet--article--dangerously-set-cms-markup,figure.w-full,div.duet--article--article-body-component",
 	"turnoff.us":           "article.post-content",
 	"turnoff.us":           "article.post-content",
 	"universfreebox.com":   "#corps_corps",
 	"universfreebox.com":   "#corps_corps",
 	"version2.dk":          "section.body",
 	"version2.dk":          "section.body",