add several newspapers #36
@ -92,7 +92,7 @@ where
|
|||||||
//
|
//
|
||||||
let image_urls = {
|
let image_urls = {
|
||||||
let document = Document::from(&html);
|
let document = Document::from(&html);
|
||||||
let imgs = document.select("img");
|
let imgs = document.select("img:not([src^=\"data:\"])");
|
||||||
|
|
||||||
imgs.iter()
|
imgs.iter()
|
||||||
.map(|image| {
|
.map(|image| {
|
||||||
@ -115,7 +115,7 @@ where
|
|||||||
|
|
||||||
let html = {
|
let html = {
|
||||||
let document = Document::from(&html);
|
let document = Document::from(&html);
|
||||||
let imgs = document.select("img");
|
let imgs = document.select("img:not([src^=\"data:\"])");
|
||||||
|
|
||||||
imgs.iter()
|
imgs.iter()
|
||||||
.zip(downloaded_images.iter())
|
.zip(downloaded_images.iter())
|
||||||
|
Loading…
Reference in New Issue
Block a user