4 stable releases

1.0.3 Oct 30, 2024
1.0.2 Oct 20, 2024

#837 in Parser implementations

Download history 287/week @ 2024-10-18 125/week @ 2024-10-25 25/week @ 2024-11-01 3/week @ 2024-11-08 3/week @ 2024-11-15 1/week @ 2024-11-22

65 downloads per month

GPL-3.0-or-later

425KB
4K SLoC

article-extractor

This is a non-aysnc fork of article_scraper containing only the article extraction functionallity (does not support web crawling).

It contains two ways of extracting articles from HTML:

1. Rust implementation of Full-Text RSS

This makes use of website specific extraction rules. Which has the advantage of fast & accurate results. The disadvantages however are: the config needs to be updated as the website changes and a new extraction rule is needed for every website.

A central repository of extraction rules and information about writing your own rules can be found here: ftr-site-config. Please consider contributing new rules or updates to it.

article_scraper embeds all the rules in the ftr-site-config repository for convenience. Custom and updated rules can be loaded from a user_configs path.

2. Mozilla Readability

In case the ftr-config based extraction fails the mozilla Readability algorithm will be used as a fall-back. This re-implementation tries to mimic the original as closely as possible.

Dependencies

~8–16MB
~207K SLoC