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:
parent
979358fd35
commit
71a8816747
5 changed files with 620 additions and 92 deletions
|
@ -42,7 +42,7 @@ impl Article {
|
|||
};
|
||||
file_name.push_str(".html");
|
||||
let path = path.join(file_name);
|
||||
let mut html_file = File::create(&path)?;
|
||||
let mut html_file = File::create(path)?;
|
||||
html_file.write_all(html.as_bytes())?;
|
||||
return Ok(());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue