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

write some docs

This commit is contained in:
Jan Lukas Gernert 2023-04-23 16:35:00 +02:00
parent bfb31dc188
commit 57df2e6832
5 changed files with 174 additions and 4 deletions

View file

@ -154,7 +154,7 @@ async fn extract_readability(
) {
let base_url = base_url.map(|url| Url::parse(&url).expect("invalid base url"));
let html = get_html(html_file, source_url).await;
let result = match Readability::extract_from_str(&html, base_url).await {
let result = match Readability::extract(&html, base_url).await {
Ok(res) => res,
Err(err) => {
log::error!("Failed to extract content with readability: {err}");