fix for latest wiki frontend changes

This commit is contained in:
2023-07-18 14:59:59 +01:00
parent edd049a839
commit 24e826cd85
+1 -1
View File
@@ -19,7 +19,7 @@ pub async fn scrape_web() -> StdError<Vec<(String, String)>> {
// Parse CSS selectors to scrape elements // Parse CSS selectors to scrape elements
let gallerybox_sel = let gallerybox_sel =
scraper::Selector::parse("li.gallerybox").map_err(|e| format!("{:?}", e))?; scraper::Selector::parse("li.gallerybox").map_err(|e| format!("{:?}", e))?;
let link_sel = scraper::Selector::parse("a.image").map_err(|e| format!("{:?}", e))?; let link_sel = scraper::Selector::parse("a.mw-file-description").map_err(|e| format!("{:?}", e))?;
let title_sel = scraper::Selector::parse(".gallerytext p").map_err(|e| format!("{:?}", e))?; let title_sel = scraper::Selector::parse(".gallerytext p").map_err(|e| format!("{:?}", e))?;
// Fetch stuff! // Fetch stuff!