今天继续学习python爬虫。
在防止爬虫的网站上,可以添加报头伪装成浏览器访问。
但是在爬取的格式上还有问题,出现了TypeError: expected string or bytes-like object报错。