Ver Fonte

Update yelp scrapper as yelp forntend change little bit

Mohidul Islam há 4 anos atrás
pai
commit
051f424eee
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      yelp/scrapper.py

+ 1 - 1
yelp/scrapper.py

@@ -45,7 +45,7 @@ def scrape_reviews(location_url, max_date, n_pages):
             rating = int(rating_div.div.get('aria-label').split()[0])
             date_posted = review_content.find('span', class_='lemon--span__373c0__3997G text__373c0__2Kxyz text-color--mid__373c0__jCeOG text-align--left__373c0__2XGa-').text
             date = date_string2timezone(date_posted)
-            review_text = review_content.find('span', class_='lemon--span__373c0__3997G raw__373c0__3rKqk').text
+            review_text = review_content.find('span', class_='lemon--span__373c0__3997G raw__373c0__3rcx7').text
 
             if date > max_date:
                 review = {