|
发表于 2021-8-26 12:27:06
|
显示全部楼层
本帖最后由 arthur.hui 于 2021-8-26 12:31 编辑
Traceback (most recent call last):
File "c:\Users\huilei\Documents\GitHub\Tonghuashun.py", line 48, in <module>
main(offset=i)
File "c:\Users\huilei\Documents\GitHub\Tonghuashun.py", line 43, in main
data.extend(parse_one_page(html))
File "c:\Users\huilei\Documents\GitHub\Tonghuashun.py", line 23, in parse_one_page
soup = BeautifulSoup(html, 'lxml')
File "C:\Users\huilei\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\bs4\__init__.py", line 310, in __init__
elif len(markup) <= 256 and (
TypeError: object of type 'NoneType' has no len() |
|