PeNN catchy
PeNN catchy

Reputation: 11

i was using selenium for web crawling and syntax error came up from getting url , help me finding the reason

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

Answers (1)

Constantin Trepadus
Constantin Trepadus

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

Related Questions