在脱发过程中遇到的各种疑难杂症
- 症状一:PyCharm中的HTML、Json文件等只有一行
- 症状二:在使用爬虫过程中运行后出现大面积红色HTML文本
- 症状三:报错 requests.exceptions.MissingSchema
- 症状四:报错 ValueError: binary mode doesn't take an encoding argument
- 症状五:爬取到图片后文件只有乱码看不到图片
- 症状六:报错 requests.exceptions.InvalidHeader: Invalid return character or leading space in header: user-agent
- 症状七:程序报错selenium.common.exceptions.SessionNotCreatedException: Message: session not created: No matching capabilities found
- 症状八:程序报错 TypeError: 'module' object is not callable
- 症状九:PyCharm无法导入自定义包
- 症状十:程序报错SyntaxError: f-string: unmatched '('
症状一:PyCharm中的HTML、Json文件等只有一行
症状二:在使用爬虫过程中运行后出现大面积红色HTML文本
症状三:报错 requests.exceptions.MissingSchema
症状四:报错 ValueError: binary mode doesn’t take an encoding argument
症状五:爬取到图片后文件只有乱码看不到图片
症状六:报错 requests.exceptions.InvalidHeader: Invalid return character or leading space in header: user-agent
症状七:程序报错selenium.common.exceptions.SessionNotCreatedException: Message: session not created: No matching capabilities found
症状八:程序报错 TypeError: ‘module’ object is not callable
症状九:PyCharm无法导入自定义包
症状十:程序报错SyntaxError: f-string: unmatched ‘(’