Answer the question
In order to leave comments, you need to log in
How to get data from the site page for subsequent parsing?
I want to parse data about products with markdown galaxystore . I ran into a problem at the stage of getting the html
page. I use the classic library request
:
url = 'https://galaxystore.ru/discount/'
response = requests.get(url).text
print(response)
urllib
with
write down the answer with the help, and then open it for further parsingAnswer the question
In order to leave comments, you need to log in
This site sets cookies using this js, then redirects to itself again, while with the correct cookie it already produces normal content.
The main logic is here:
salt="1524556899";
document.cookie="ipp_sign="+e+"_"+salt+"_"+md5(e+salt)+"; expires=Tue, 31 Dec 2030 23:59:59 GMT; path=/;";
ipp.setCookie();
window.location.href = "https://galaxystore.ru/discount/?utm_referrer=" + window.location.hash;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question