Answer the question
In order to leave comments, you need to log in
Why is the list visible on the page but not in the source code?
I decided to parse the list of institutions and information about them from the site.
The site has such a list, the code of which is displayed in the developer panel:
But when I open the entire source code of the page, the list elements are no longer there:
Actually, the problem is that my parser, receiving page, does not find list items on it. How is it that they are displayed in the developer toolbar, but not in the source code? And how do I get them out with a parser?
Answer the question
In order to leave comments, you need to log in
the list is not ALREADY not there, but YET is not.
it is loaded by ajax request https://gorzdrav.spb.ru/api/clinic_list/
after the page is loaded by the browser.
accordingly, a parser that does not know how to process js will see only an empty list.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question