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:
parent
bfb31dc188
commit
57df2e6832
5 changed files with 174 additions and 4 deletions
|
@ -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}");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue