Skip to content

Commit

Permalink
fix: update XPATHs due to class name update
Browse files Browse the repository at this point in the history
  • Loading branch information
ngshiheng committed Nov 15, 2024
1 parent a25bace commit a87e4cc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/crawler/xpath.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ const (
// E.g.: https://guide.michelin.com/en/singapore-region/singapore/restaurant/les-amis
restaurantDetailXPath = "//*[@class='restaurant-details']"

restaurantAddressXPath = "//*[@class='restaurant-details__heading--address']"
restaurantDescriptionXPath = "//*[@class='restaurant-details__description--text ']"
restaurantDistinctionXPath = "//*[@class='restaurant-details__classification--list']//*[contains(@class, 'classification-item')]//*[contains(@class, 'classfication-content') and not(descendant::img) and not(descendant::span)]"
restaurantAddressXPath = "//*[@class='data-sheet__block--text'][1]"
restaurantDescriptionXPath = "//*[@class='data-sheet__description']"
restaurantDistinctionXPath = "//*[@class='data-sheet__classification-item--content']"
restaurantFacilitiesAndServicesXPath = "//*[@class='restaurant-details__services']//li"
restaurantGoogleMapsXPath = "//*[@class='google-map__static']/iframe"
restaurantNameXPath = "//*[@class='restaurant-details__heading--title']"
restaurantNameXPath = "//*[@class='data-sheet__title']"
restaurantPhoneNumberXPath = "//a[@data-event='CTA_tel']"
restaurantPriceAndCuisineXPath = "//*[@class='restaurant-details__heading-price']"
restaurantPriceAndCuisineXPath = "//*[@class='data-sheet__block--text'][2]"
restaurantWebsiteUrlXPath = "//a[@data-event='CTA_website']"
)

0 comments on commit a87e4cc

Please sign in to comment.