Answer the question
In order to leave comments, you need to log in
The parser on STEAM does not work. I can’t find the component, I can’t understand. What is the problem?
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)
Answer the question
In order to leave comments, you need to log in
Open through Code page.
view-source:https://store.steampowered.com/search/?term=vr
games = soup.find_all('a',class_='search_result_row ds_collapse_flag')
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question