Reputation: 11
I was using selenium for web crawling and syntax error came up from getting url
url = https://www.pwc.co.uk/services/economics-policy/insights/women-in-work-index.html
driver.get(url)
Exception
File "<ipython-input-9-49259ef7fb39>", line 1
url = https://www.pwc.co.uk/services/economics-policy/insights/women-in-work-index.html
^
SyntaxError: invalid syntax
Upvotes: 1
Views: 75
Reputation: 503
the url needs to be a string
url = "https://www.pwc.co.uk/services/economics-policy/insights/women-in-work-index.html"
Upvotes: 2