Python爬虫时,有时候会报错TypeError:XXX takes no arguments
除了因为__init__两边少了两个下划线之外,还有一点就是
浏览器设置的redirect数,可能会被强制中止
关闭redirect(重定向)
加上参数 allow_redirects = False,默认是 allow_redirects = True
参考https://www.jianshu.com/p/19f631cbb21a
Python爬虫时,有时候会报错TypeError:XXX takes no arguments
除了因为__init__两边少了两个下划线之外,还有一点就是
浏览器设置的redirect数,可能会被强制中止
关闭redirect(重定向)
加上参数 allow_redirects = False,默认是 allow_redirects = True
参考https://www.jianshu.com/p/19f631cbb21a