Вопрос Не работает метод find в python

Регистрация
13 Авг 2013
Сообщения
75
Репутация
0
Спасибо
0
Монет
0
import requests

from bs4 import BeautifulSoup

with open("index.html/index.html", "r") as file:

src = file.read()



soup = BeautifulSoup(src, 'lxml')

all_items = soup.find('div', class_="cdk-virtual-scroll-content-wrapper", style="transform: translateY(0px);")

print (all_items)

print(soup.find('div', class_="cdk-virtual-scroll-content-wrapper", style="transform: translateY(0px);"))

find почему-то не сортирует текст и в ответе выдаёт None
310023246_e0e85d57860bdedc10331c871f03acf6_800.png

 
Покажи html
 
Назад
Сверху