1
0
Fork 0
mirror of https://gitlab.com/news-flash/article_scraper.git synced 2025-07-08 08:30:00 +02:00

somewhat complete readability algorithm

This commit is contained in:
Jan Lukas Gernert 2023-02-17 14:16:01 +01:00
parent 979358fd35
commit 71a8816747
5 changed files with 620 additions and 92 deletions

View file

@ -182,7 +182,7 @@ impl FullTextParser {
let found_body = Self::extract_body(&xpath_ctx, root, config, global_config)?;
if found_body {
if let Err(error) = Readability::extract_body_readability(&document, root) {
if let Err(error) = Readability::extract_body_readability(document, root) {
log::error!("Both ftr and readability failed to find content: {}", error);
return Err(error);
}