rules.go 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 // import "miniflux.app/reader/scraper"
  5. // List of predefined scraper rules (alphabetically sorted)
  6. // domain => CSS selectors
  7. var predefinedRules = map[string]string{
  8. "bbc.co.uk": "div.vxp-column--single, div.story-body__inner, ul.gallery-images__list",
  9. "cbc.ca": ".story-content",
  10. "darkreading.com": "#article-main:not(header)",
  11. "developpez.com": "div[itemprop=articleBody]",
  12. "dilbert.com": "span.comic-title-name, img.img-comic",
  13. "financialsamurai.com": "article",
  14. "francetvinfo.fr": ".text",
  15. "github.com": "article.entry-content",
  16. "heise.de": "header .article-content__lead, header .article-image, div.article-layout__content.article-content",
  17. "igen.fr": "section.corps",
  18. "ing.dk": "section.body",
  19. "lapresse.ca": ".amorce, .entry",
  20. "lemonde.fr": "article",
  21. "lepoint.fr": ".art-text",
  22. "lesjoiesducode.fr": ".blog-post-content img",
  23. "lesnumeriques.com": ".text",
  24. "linux.com": "div.content, div[property]",
  25. "mac4ever.com": "div[itemprop=articleBody]",
  26. "monwindows.com": ".blog-post-body",
  27. "npr.org": "#storytext",
  28. "oneindia.com": ".io-article-body",
  29. "opensource.com": "div[property]",
  30. "osnews.com": "div.newscontent1",
  31. "phoronix.com": "div.content",
  32. "pseudo-sciences.org": "#art_main",
  33. "raywenderlich.com": "article",
  34. "slate.fr": ".field-items",
  35. "techcrunch.com": "div.article-entry",
  36. "theoatmeal.com": "div#comic",
  37. "theregister.co.uk": "#body",
  38. "turnoff.us": "article.post-content",
  39. "universfreebox.com": "#corps_corps",
  40. "version2.dk": "section.body",
  41. "wdwnt.com": "div.entry-content",
  42. "wired.com": "main figure, article",
  43. "zeit.de": ".summary, .article-body",
  44. "zdnet.com": "div.storyBody",
  45. "openingsource.org": "article.suxing-popup-gallery",
  46. }