T
T
timbios2021-07-13 00:15:29
Parsing
timbios, 2021-07-13 00:15:29

Unable to parse data from edbo site. How to do it?

Hello!

There was a problem parsing data from the site. None of it works. I'm trying to parse a node.

link from where I'm trying to parse Node

code:

const body = {          
qualification: "1",
education_base: "40",          
speciality: userSpecMessage,
region: "",          
university: dbAllData.uniPath.auto.choosed.fullData.university_id,          
study_program: "",          
education_form: "",           
course: "",           };       

const userSearchSpecQuery = await fetch("https://vstup.edbo.gov.ua/offers-universities/",         
{method: "POST",  mode: "cors",  body: JSON.stringify(body),  }  );


there is a powershell request that works out with a bang
when you try to transfer it to postman or something else in response, either an error or 200 and an empty body
can obviously pull out what you need, the question is what is in the powershell request, which is not in the same fetch in node or browser

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Victor L, 2021-07-13
@timbios

in the Referer headers is needed
60ecc1b0b1a4b226689194.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question