我使用 selenium 进行网络爬行,获取 url 时出现语法错误
url = https://www.pwc.co.uk/services/economics-policy/insights/women-in-work-index.html
driver.get(url)
异常
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
最佳答案
url 必须是字符串
url = "https://www.pwc.co.uk/services/economics-policy/insights/women-in-work-index.html"
关于python - 我使用 selenium 进行网络爬行,获取 url 时出现语法错误,请帮我找到原因,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59135952/