rules.go 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
  2. // SPDX-License-Identifier: Apache-2.0
  3. package scraper // import "miniflux.app/v2/internal/reader/scraper"
  4. // List of predefined scraper rules (alphabetically sorted)
  5. // domain => CSS selectors
  6. var predefinedRules = map[string]string{
  7. "arstechnica.com": "div.post-content",
  8. "bbc.co.uk": "div.vxp-column--single, div.story-body__inner, ul.gallery-images__list",
  9. "blog.cloudflare.com": "div.post-content",
  10. "cbc.ca": ".story-content",
  11. "darkreading.com": "div.ArticleBase-Body",
  12. "developpez.com": "div[itemprop=articleBody]",
  13. "dilbert.com": "span.comic-title-name, img.img-comic",
  14. "explosm.net": "div#comic",
  15. "financialsamurai.com": "article",
  16. "francetvinfo.fr": ".text",
  17. "github.com": "article.entry-content",
  18. "heise.de": "header .article-content__lead, header .article-image, div.article-layout__content.article-content",
  19. "igen.fr": "section.corps",
  20. "ikiwiki.iki.fi": ".page.group",
  21. "ilpost.it": ".entry-content",
  22. "ing.dk": "section.body",
  23. "lapresse.ca": ".amorce, .entry",
  24. "lemonde.fr": "article",
  25. "lepoint.fr": ".art-text",
  26. "lesjoiesducode.fr": ".blog-post-content img",
  27. "lesnumeriques.com": ".text",
  28. "linux.com": "div.content, div[property]",
  29. "mac4ever.com": "div[itemprop=articleBody]",
  30. "monwindows.com": ".blog-post-body",
  31. "npr.org": "#storytext",
  32. "oneindia.com": ".io-article-body",
  33. "opensource.com": "div[property]",
  34. "openingsource.org": "article.suxing-popup-gallery",
  35. "osnews.com": "div.newscontent1",
  36. "phoronix.com": "div.content",
  37. "pitchfork.com": "#main-content",
  38. "pseudo-sciences.org": "#art_main",
  39. "quantamagazine.org": ".outer--content, figure, script",
  40. "raywenderlich.com": "article",
  41. "royalroad.com": ".author-note-portlet,.chapter-content",
  42. "slate.fr": ".field-items",
  43. "smbc-comics.com": "div#cc-comicbody, div#aftercomic",
  44. "swordscomic.com": "img#comic-image, div#info-frame.tab-content-area",
  45. "techcrunch.com": "div.entry-content",
  46. "theoatmeal.com": "div#comic",
  47. "theregister.com": "#top-col-story h2, #body",
  48. "theverge.com": "h2.inline:nth-child(2),h2.duet--article--dangerously-set-cms-markup,figure.w-full,div.duet--article--article-body-component",
  49. "turnoff.us": "article.post-content",
  50. "universfreebox.com": "#corps_corps",
  51. "version2.dk": "section.body",
  52. "wdwnt.com": "div.entry-content",
  53. "webtoons.com": ".viewer_img,p.author_text",
  54. "wired.com": "main figure, article",
  55. "zeit.de": ".summary, .article-body",
  56. "zdnet.com": "div.storyBody",
  57. }