mirror of
https://github.com/miniflux/v2.git
synced 2024-08-28 12:01:29 +02:00
dcf87bd642
This is a somewhat complex React site so the rules could be a little fragile. Text content seems to be always inside .outer--content, and most h6 elements are fluff like "read later" or pointers to other articles. However, h6.byline and h6.post__title__kicker are relevant to the current article. Figure captions are sometimes inside both figure and div.outer--content elements, sometimes only inside figure, so take both and remove the intersection. The figure elements sometimes contain multiple copies of images or videos, and we just take them all. Math articles seem to use Mathjax, which we don't add. |
||
---|---|---|
.. | ||
testdata | ||
doc.go | ||
rules.go | ||
scraper.go | ||
scraper_test.go |