Answer the question
In order to leave comments, you need to log in
Parsing with authorization on nodejs?
Hello!
There was a problem, you need to parse data with authorization (get access to closed pages).
There is a Python code:
sess = requests.Session()
sess.post(".../login/submit", {
"login": login,
"password": password,
"time_zone": "Europe/Moscow"
})
response = sess.get("url")
Answer the question
In order to leave comments, you need to log in
implemented something similar.
in short:
you make a request for authorization, you receive cookies, you remember them and further through the pages with the transfer of these cookies
fetchQueryAuth = await fetch(
_url,
{
"method": "GET",
});
const cookie = fetchQueryAuth.headers.raw()['set-cookie']
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question