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
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