C
C
CityzenUNDEAD2020-12-11 19:12:52
Parsing
CityzenUNDEAD, 2020-12-11 19:12:52

How to use cookies in parsing?

I'm trying to parse a site using the HttpWebRequest class, in response I receive this markup

<html>
<head>
<script>function set_cookie(){var now = new Date();var time = now.getTime();time += 19360000 * 1000;now.setTime(time);document.cookie='beget=begetok'+'; expires='+now.toGMTString()+'; path=/';}set_cookie();location.reload();;
</script>
</head>
<body>
</body>
</html>

The site requires cookies, as I understand it. The question is, what kind of cookies does he need? Of course, you can look in chrome dev tools which headers are sent upon request, but I think cookies can change, but I need parsing from the desired site to be constant.
Where can I get the necessary cookies for the request?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question