Answer the question
In order to leave comments, you need to log in
How to get the contents of a pre tag in Python?
I wanted to parse the given url link to get the data from the tag, but unfortunately I couldn't do it this way:
def get_prices(url):
response = requests.request(url=url method='GET')
print(response.text)
soup = bs(response.text, 'lxml')
print(soup)
[]
<html><body><p>[]</p></body></html>
Answer the question
In order to leave comments, you need to log in
The whole problem is that when you request requests, you are not authorized in Steam and do not receive a response from it
. And when you open it through an authorized browser, you get a dictionary, so I recommend that you go through authorization or load cookies and everything will be fine
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question