Good day!

My problem is that the page

http://www.bm.ru/ru/ofisy-banka/bankomaty/?mode102=1®ion102=77&city102=77000000

If you save it completely and parse:

htmlFile = Jsoup.parse(new File("c:/test.html"), "UTF-8"); title = htmlFile.title(); List<Element> elms = htmlFile.select(".atm-table-point"); 

That sheet is filled with elements. And if you do this, it is empty:

 htmlFile = Jsoup.connect("http://www.bm.ru/ru/ofisy-banka/bankomaty/?mode102=1&region102=77&city102=77000000") .userAgent("Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36") .execute().parse(); 

What could be the problem?

  • The fact that the list of ATMs is pulled by javascript, and is not given immediately in the text of the page. - Nofate
  • I already understood that with dynamic pages the problem is with jsoup, I have already used selenium. Thank. - rozetta

0