Footprint container uses article instead of div now
This commit is contained in:
parent
57fb4e3497
commit
8db15e6ab8
@ -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")?;
|
||||||
|
Loading…
Reference in New Issue
Block a user