rules.go 978 B

1234567891011121314151617181920212223242526
  1. // Copyright 2017 Frédéric Guillot. All rights reserved.
  2. // Use of this source code is governed by the Apache 2.0
  3. // license that can be found in the LICENSE file.
  4. package scraper
  5. // List of predefined scraper rules (alphabetically sorted)
  6. // domain => CSS selectors
  7. var predefinedRules = map[string]string{
  8. "cbc.ca": ".story-content",
  9. "github.com": "article.entry-content",
  10. "igen.fr": "section.corps",
  11. "ing.dk": "section.body",
  12. "lapresse.ca": ".amorce, .entry",
  13. "lemonde.fr": "div#articleBody",
  14. "lesjoiesducode.fr": ".blog-post-content img",
  15. "linux.com": "div.content, div[property]",
  16. "medium.com": ".section-content",
  17. "opensource.com": "div[property]",
  18. "osnews.com": "div.newscontent1",
  19. "phoronix.com": "div.content",
  20. "techcrunch.com": "div.article-entry",
  21. "theregister.co.uk": "#body",
  22. "version2.dk": "section.body",
  23. "wired.com": "main figure, article",
  24. }