import requests
from selectolax.parser import HTMLParser
def get_html(url):
response = requests.get(url=url)
html = response.text
tree = HTMLParser(html)
items = tree.css('div[data-marker="item"]')
for item in items:
print(item.css_first('h3').text())
def main():
url = 'https://www.avito.ru/samara/zapchasti_i_aksessuary/ekipirovka-ASgBAgICAUQKoGQ?cd=1&f=ASgBAgECAUQKoGQBRcaaDBR7ImZyb20iOjAsInRvIjo1MDAwfQ'
get_html(url)
if __name__ == '__main__':
main()
data-marker="item"
requests.get(url=url)