leoncvlt / blinkist-scraper

📚 Python tool to download book summaries and audio from Blinkist.com, and generate some pretty output
191 stars 35 forks source link

SyntaxError: invalid syntax #13

Closed 0xCuter closed 4 years ago

0xCuter commented 4 years ago

I get this syntax error while running main.py

File "main.py", line 59 print(f"[#] Processed {processed_books} books in {formatted_time}") ^ SyntaxError: invalid syntax

If I try commenting that line I get other syntax errors in other files... I guess there is something wrong with my configuration

leoncvlt commented 4 years ago

Which Python version are you using? I think fstrings are supported from Python 3.6 onwards

0xCuter commented 4 years ago

I resolved that, but now I get this other error when I try to run it

selenium.common.exceptions.WebDriverException: Message: unknown error: DevToolsActivePort file doesn't exist

0xCuter commented 4 years ago

I resolved adding this line in the scraper chrome_options.add_argument('--no-sandbox')

But now when chrome opens up I get this when loading the login page:

Error response Error code: 502 Message: Bad Gateway. Error code explanation: 502 - Invalid responses from another server/proxy.`

When I load the same page in another tab it works perfectly

0xCuter commented 4 years ago

Ok, I resolved uncommenting the line You already put in the scraper for this error... It looks like it's working fine Thank You