mirror of
https://gitlab.com/news-flash/article_scraper.git
synced 2025-07-07 16:15:32 +02:00
fix typo
This commit is contained in:
parent
9e995122c4
commit
8247defe54
1 changed files with 2 additions and 2 deletions
|
@ -115,7 +115,7 @@ impl ArticleScraper {
|
||||||
return Err(error)
|
return Err(error)
|
||||||
}
|
}
|
||||||
|
|
||||||
if let Err(error) = ArticleScraper::eliminate_noscrip_tag(&context) {
|
if let Err(error) = ArticleScraper::eliminate_noscript_tag(&context) {
|
||||||
error!("Eliminating <noscript> tag failed - {}", error);
|
error!("Eliminating <noscript> tag failed - {}", error);
|
||||||
return Err(error)
|
return Err(error)
|
||||||
}
|
}
|
||||||
|
@ -706,7 +706,7 @@ impl ArticleScraper {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
fn eliminate_noscrip_tag(context: &Context) -> Result<(), ScraperError> {
|
fn eliminate_noscript_tag(context: &Context) -> Result<(), ScraperError> {
|
||||||
|
|
||||||
let xpath = "//noscript";
|
let xpath = "//noscript";
|
||||||
let node_vec = Self::evaluate_xpath(context, xpath, false)?;
|
let node_vec = Self::evaluate_xpath(context, xpath, false)?;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue