I am trying to scrape data for restaurants from trip advisor but I only want to go to pages that have 50 reviews or more. For example, I can't figure how to accomplish this with :not(:contains since if I say :not(:contains("41") it will also eliminate 141 and 417 as well. Since the selector doesn't exist for listings with 0 reviews, they get skipped. I also want to skip restaurants with 1-49 reviews.
Thank you for any help you can provide.
Url: https://www.tripadvisor.com/Restaurants-g40541-Brunswick_Maine.html
Sitemap:
{"_id":"brunswick_restaurants","startUrl":["https://www.tripadvisor.com/Restaurants-g40541-Brunswick_Maine.html"],"selectors":[{"id":"restaurant","type":"SelectorLink","parentSelectors":["_root"],"selector":"._1p0FLy4t a","multiple":true,"delay":0},{"id":"excellent","type":"SelectorText","parentSelectors":["restaurant"],"selector":"[data-value='5'] span.row_num.is-shown-at-tablet","multiple":false,"regex":"","delay":0}]}