From 24e826cd853f1e158cc31075b11773c6b107298c Mon Sep 17 00:00:00 2001 From: Sam Willcocks Date: Tue, 18 Jul 2023 14:59:59 +0100 Subject: [PATCH] fix for latest wiki frontend changes --- src/wiki.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wiki.rs b/src/wiki.rs index be3c0ed..07c508d 100644 --- a/src/wiki.rs +++ b/src/wiki.rs @@ -19,7 +19,7 @@ pub async fn scrape_web() -> StdError> { // Parse CSS selectors to scrape elements let gallerybox_sel = 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))?; // Fetch stuff!