Karlheinzniebuhr / the-weather-scraper

A Lightweight Weather Scraper
108 stars 36 forks source link

station name invalid syntax #4

Closed cerebrum2020 closed 3 years ago

cerebrum2020 commented 3 years ago

Hi Karl,

I try to understand the problem but I'm a newbie with python....

Followed all the indication, update the requirements. Tested on mac and with linux, same problem.

Running the code I receive this error:


File "weather_scraper.py", line 45 file_name = f'{station_name}.csv' ^ SyntaxError: invalid syntax


I've also manually created the empty file, changed the code with a pre-choosed file name. No way to solve

many thanks for your support

Karlheinzniebuhr commented 3 years ago

Hi, thanks for the feedback. I will make sure to add to the documentation that this has only been tested on Windows. Feel free to send a pull request for a Linux adaptation. BTW make sure you are using python 3.9.1

cerebrum2020 commented 3 years ago

Good news.... Updating my Python app in MacOsx now the code work !

I've just some

list index out of range! probably caused by an empty row in the data

but the csv file is created. I'll check contents and data.

Many thanks, fast and solved !!