1

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
1
  • Please provide your code in the question and not image, you need to pass the url as a string to the variable like so url = "someurl/here/" Commented Dec 2, 2019 at 9:34

1 Answer 1

2

the url needs to be a string

url = "https://www.pwc.co.uk/services/economics-policy/insights/women-in-work-index.html"
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.