Мой код выдаёт мне ошибку:
Traceback (most recent call last):
File "c:/Users/leona/Desktop/Web-Scrapping PYTHON/main.py", line 72, in <module>
soup = BeautifulSoup(html, 'html.parser')
File "C:\Users\leona\AppData\Local\Programs\Python\Python37-32\lib\site-packages\bs4\__init__.py", line 245, in __init__
elif len(markup) <= 256 and (
TypeError: object of type 'NoneType' has no len()
И я не знаю, ПОЧЕМУ
Это для Python 3.7 с Beautifulsoup
myresult = mycursor.fetchall()
for url in myresult:
url = url[0]
dom = dominio(url)
print('### ' + dom + ' ###')
html = simple_get(url)
soup = BeautifulSoup(html, 'html.parser')
for link in soup.find_all(href=re.compile(dom)):