Open ghost opened 5 years ago
def scrape_years(review):
try:
res = review.find_element_by_class_name('mainText').text.strip('"')
except Exception:
res = np.nan
return res
Replace the scrape_years function by this function.
I'm getting a no such element error that I don't know how to fix. Help please.