Footprint container uses article instead of div now

This commit is contained in:
Sebastian Hugentobler 2024-03-08 09:29:31 +01:00
parent 57fb4e3497
commit 8db15e6ab8
Signed by: shu
GPG Key ID: BB32CF3CA052C2F0

View File

@ -31,7 +31,7 @@ pub async fn feed_title(feed_url: &str) -> Result<String, ScrapeError> {
} }
pub async fn fetch_footprints(feed_url: &str) -> Result<Vec<Footprint>, ScrapeError> { pub async fn fetch_footprints(feed_url: &str) -> Result<Vec<Footprint>, ScrapeError> {
let footprint_selector = Selector::parse("li.footprint div.footprint-container")?; let footprint_selector = Selector::parse("li.footprint article.footprint-container")?;
let footprint_title_selector = Selector::parse("div.title > h2.headline > a")?; let footprint_title_selector = Selector::parse("div.title > h2.headline > a")?;
let footprint_date_selector = Selector::parse("div.title > span.date > span.desc")?; let footprint_date_selector = Selector::parse("div.title > span.date > span.desc")?;
let more_selector = Selector::parse("a#footprintListLoadMore")?; let more_selector = Selector::parse("a#footprintListLoadMore")?;