![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
爬虫
nikii_
这个作者很懒,什么都没留下…
展开
-
在Python中,如何解决:EOL while scanning string literal和IndentationError: expected an indented block
我们从报错中发现:EOL是指项目生命周期的最后阶段的最后一步,scanning string literal(扫描字符串)时出问题了,可以看到User-Agent后面的属性值用’'括起来了,问题就在这里,这是一个多行字符串,需要使用三引号。...原创 2021-01-23 12:16:27 · 2661 阅读 · 0 评论 -
HTTP请求头之User-Agent
这是User-Agent属性取值搭配Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0)Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)Mozilla/5.0 (compatib原创 2021-01-23 12:00:07 · 3726 阅读 · 0 评论