MatthewChatham / glassdoor-review-scraper

Scrape reviews from Glassdoor
BSD 2-Clause "Simplified" License
180 stars 252 forks source link

Syntax error? #13

Open ghost opened 5 years ago

ghost commented 5 years ago

No matter what I do, I get this:

SyntaxError: invalid syntax [script code] File "main.py", line 286 logger.info(f'Extracting reviews from page {page[0]}')

I think I did everything I needed to, but still nothing changes. Thank you for help!

MatthewChatham commented 5 years ago

@Michael1Scarn thanks for the report. What version of python are you using?

ghost commented 5 years ago

@MatthewChatham the default python on my Mac is 2.7

MatthewChatham commented 5 years ago

Thanks @Michael1Scarn, please use Python 3 for this script. the f-string syntax wasn't available in earlier versions of Python. You can check out this link for more information.