mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-14 05:42:32 +00:00
cleanup log spam
This commit is contained in:
1 parent
6a86f43a92
commit
d41cec6c90
2 files changed
+7
-7
No files matched your search
@@ -35,12 +35,12 @@ pub async fn cnn_article_scraper(url: &str) -> AnyhowResult<OriginalHtmlWithWebS
|
||||
|
||||
let matches = document.select(&article_content_selector);
|
||||
|
||||
for mat in matches.into_iter() {
|
||||
let matches2 = mat.select(&selector2);
|
||||
for mat2 in matches2.into_iter() {
|
||||
println!("\n\n{:?}\n\n", mat2);
|
||||
}
|
||||
}
|
||||
//for mat in matches.into_iter() {
|
||||
// let matches2 = mat.select(&selector2);
|
||||
// for mat2 in matches2.into_iter() {
|
||||
// println!("\n\n{:?}\n\n", mat2);
|
||||
// }
|
||||
//}
|
||||
|
||||
Ok(OriginalHtmlWithWebScrapingResult {
|
||||
original_html: downloaded_document,
|
||||
|
||||
@@ -19,7 +19,7 @@ pub async fn theguardian_scraper_test() -> AnyhowResult<Vec<WebScrapingTarget>>
|
||||
let mut targets = Vec::with_capacity(channel.items.len());
|
||||
|
||||
for item in channel.items {
|
||||
println!("\n\nitem: {:?}", item);
|
||||
//println!("\n\nitem: {:?}", item);
|
||||
|
||||
let canonical_url = match item.link {
|
||||
Some(url) => url.clone(),
|
||||
|
||||
Reference in new issue
Block a user