Asked a question to extract data from a similar site http://mkrf.ru/ais-egrkn/

It is necessary to make data sampling in the region "Karelia". With the help of the usual lxml library and xpath requests, the data could not be obtained.

getReq = requests.get(URL) # Response 200 AllHtml = html.fromstring(getReq.text) # <Element html at 0x7f18453c8db8> searchObj = AllHtml.xpath('..//*[@id="id_147784807571377968416"]/ymaps/ymaps/ymaps[1]/ymaps[1]') print(searchObj) 

Conclusion: []

Tell the beginner where to dig further :)

  • dots before // are not needed. In general, Firefox + Firebug + FirePath is in your hands - vitidev
  • @vitidev with these Firefox add-ons and this way was obtained. Checked without points. The result is the same. The difficulty is precisely in accessing the tags inside the Yandex map. It should be like a mouse to become available. How I see it - Mihail

0