from bs4 import BeautifulSoup
import requests
headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36 Edge/18.19041'}
URL = 'https://store.steampowered.com/search/?term=vr'
responce = requests.get(URL)
soup = BeautifulSoup(responce.text, 'lxml')
games = soup.find_all('a',class_='search_result_row ds_collapse_flag app_impression_tracked')
for i in range(10):
print(games)
for title in games:
title = soup.find('span',class_='title')
print(title.text)
view-source:https://store.steampowered.com/search/?term=vr
games = soup.find_all('a',class_='search_result_row ds_collapse_flag')