Bläddra i källkod

Update yelp scrapper as yelp forntend change little bit

Mohidul Islam 4 år sedan
förälder
incheckning
051f424eee
1 ändrade filer med 1 tillägg och 1 borttagningar
  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])
             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_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)
             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:
             if date > max_date:
                 review = {
                 review = {