MatthewChatham / glassdoor-review-scraper

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

Generic Error when Trying to Run #16

Open Drew2019 opened 5 years ago

Drew2019 commented 5 years ago

When try to run example data pull, the following error pops up - any ideas on syntax fix?

python main.py --headless --url "https://www.glassdoor.com/Overview/Working-at-Wells-Fargo-EI_IE8876.11,22.htm" --limit 1000 -f wells_fargo_reviews.csv File "", line 1 python main.py --headless --url "https://www.glassdoor.com/Overview/Working-at-Wells-Fargo-EI_IE8876.11,22.htm" --limit 1000 -f wells_fargo_reviews.csv ^ SyntaxError: invalid syntax

I'm a novice Python user running this from Spyder, which was recently downloaded so versions should be up to date.

mchatham-fk commented 5 years ago

@Drew2019 my guess is that you ran the command in the Python interpreter instead of the command line. Open up a terminal and try running it again.

Drew2019 commented 5 years ago

@MatthewChatham - much thanks for the fast reply. Yeah, I ran it in the editor of Spyder. Opening a terminal for Python 3.7, I'm still getting similar errors, though now with the "requirements.txt" command also. This is user error I'm sure, given I don't work in the Python language.

MatthewChatham commented 5 years ago

@Drew2019 you need to run the commands from the command line, not the python terminal.