mirror of
https://github.com/catdevnull/preciazo.git
synced 2024-11-22 22:26:19 +00:00
parent
8617a0b2a5
commit
905d94a55e
1 changed files with 5 additions and 1 deletions
|
@ -56,7 +56,11 @@ pub fn parse(url: String, dom: &tl::VDom) -> Result<PrecioPoint, anyhow::Error>
|
||||||
.find_map(|n| n.as_tag())
|
.find_map(|n| n.as_tag())
|
||||||
.map(|t| t.inner_text(dom.parser()))
|
.map(|t| t.inner_text(dom.parser()))
|
||||||
// https://github.com/catdevnull/preciazo/issues/24
|
// https://github.com/catdevnull/preciazo/issues/24
|
||||||
.map(|s| html_escape::decode_html_entities(s.trim()).to_string());
|
.map(|s| {
|
||||||
|
html_escape::decode_html_entities(s.trim())
|
||||||
|
.trim()
|
||||||
|
.to_string()
|
||||||
|
});
|
||||||
|
|
||||||
let image_url = dom
|
let image_url = dom
|
||||||
.query_selector(".zoomImage1")
|
.query_selector(".zoomImage1")
|
||||||
|
|
Loading…
Reference in a new issue