import requests
from bs4 import BeautifulSoup
URL = "https://auto.drom.ru/audi/"
headers = {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:100.0) Gecko/20100101 Firefox/100.0"}
html = requests.get(URL, headers = headers)
soup = BeautifulSoup(html.text, "lxml")
cars = soup.find("div",class_ = "css-1173kvb eaczv700").find("div")
for car in cars:
one = car.find("a", class_ = "css-1wltzny ewrty961")
print(one.text)
texts = [element.find('span').text for element in soup.find_all('div', class_='css-17lk78h e3f4v4l2')]