rules.go 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. "explosm.net": "div#comic",
  14. "financialsamurai.com": "article",
  15. "francetvinfo.fr": ".text",
  16. "github.com": "article.entry-content",
  17. "heise.de": "header .article-content__lead, header .article-image, div.article-layout__content.article-content",
  18. "igen.fr": "section.corps",
  19. "ikiwiki.iki.fi": ".page.group",
  20. "ing.dk": "section.body",
  21. "lapresse.ca": ".amorce, .entry",
  22. "lemonde.fr": "article",
  23. "lepoint.fr": ".art-text",
  24. "lesjoiesducode.fr": ".blog-post-content img",
  25. "lesnumeriques.com": ".text",
  26. "linux.com": "div.content, div[property]",
  27. "mac4ever.com": "div[itemprop=articleBody]",
  28. "monwindows.com": ".blog-post-body",
  29. "npr.org": "#storytext",
  30. "oneindia.com": ".io-article-body",
  31. "opensource.com": "div[property]",
  32. "openingsource.org": "article.suxing-popup-gallery",
  33. "osnews.com": "div.newscontent1",
  34. "phoronix.com": "div.content",
  35. "pseudo-sciences.org": "#art_main",
  36. "quantamagazine.org": ".outer--content, figure, script",
  37. "raywenderlich.com": "article",
  38. "royalroad.com": ".author-note-portlet,.chapter-content",
  39. "slate.fr": ".field-items",
  40. "smbc-comics.com": "div#cc-comicbody, div#aftercomic",
  41. "swordscomic.com": "img#comic-image, div#info-frame.tab-content-area",
  42. "techcrunch.com": "div.article-entry",
  43. "theoatmeal.com": "div#comic",
  44. "theregister.com": "#top-col-story h2, #body",
  45. "theverge.com": "h2.inline:nth-child(2),h2.duet--article--dangerously-set-cms-markup,figure.w-full,div.duet--article--article-body-component",
  46. "turnoff.us": "article.post-content",
  47. "universfreebox.com": "#corps_corps",
  48. "version2.dk": "section.body",
  49. "wdwnt.com": "div.entry-content",
  50. "wired.com": "main figure, article",
  51. "zeit.de": ".summary, .article-body",
  52. "zdnet.com": "div.storyBody",
  53. }