rules.go 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. "financialsamurai.com": "article",
  13. "francetvinfo.fr": ".text",
  14. "github.com": "article.entry-content",
  15. "heise.de": "header .article-content__lead, header .article-image, div.article-layout__content.article-content",
  16. "igen.fr": "section.corps",
  17. "ing.dk": "section.body",
  18. "lapresse.ca": ".amorce, .entry",
  19. "lemonde.fr": "article",
  20. "lepoint.fr": ".art-text",
  21. "lesjoiesducode.fr": ".blog-post-content img",
  22. "lesnumeriques.com": ".text",
  23. "linux.com": "div.content, div[property]",
  24. "medium.com": ".section-content",
  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. "universfreebox.com": "#corps_corps",
  39. "version2.dk": "section.body",
  40. "wdwnt.com": "div.entry-content",
  41. "wired.com": "main figure, article",
  42. "zeit.de": ".summary, .article-body",
  43. "zdnet.com": "div.storyBody",
  44. "openingsource.org": "article.suxing-popup-gallery",
  45. }