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

@ -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(());
}