Browse Source

Fix itinerary scraping bug

master
Kenneth Bruen 2 years ago
parent
commit
dd273558e4
Signed by: kbruen
GPG Key ID: C1980A470C3EE5B1
  1. 2
      scraper/src/Scrapers/Route.cs

2
scraper/src/Scrapers/Route.cs

@ -105,7 +105,7 @@ public static class RouteScraper {
var itinerary = new Itinerary();
var cardDivs = itineraryLi.QuerySelectorAll(":scope > div > div > div > div");
var detailsDivs = cardDivs[3]
var detailsDivs = cardDivs.Last()
.QuerySelectorAll(":scope > div > div")[1]
.QuerySelectorAll(":scope > div");
var trainItineraryAndDetailsLis = detailsDivs[0]

Loading…
Cancel
Save