How to use Jsoup on a site with lazyload scrollLoader.js

I have a problem with jsoup due to lazyload scrollLoader.js I get to the site using java code, I have listed only 50 image names from jsoup. But when scrolling down the site there are many image downloads constantly. My question is, is it possible to send the number of images to the URL that Jsoup.connect() uses to get the whole image from the site?

here is the site: http://www.logowik.com

And this is the use of the script on the site:

 <script type="text/javascript"> $(document).ready(function(e) { CalculateColumns(); recordCount = 50; groupID = "0"; catID = "0"; query = ""; userEntry = ""; groupInterval = "0"; AddEvent(window, "resize", CalculateColumns); document["scrollLoader"] = new scrollLoader({evn : getGrids, seize : 1}); document["scrollLoader"].DoScroll(); addLogoClickEvent(); }); </script> 

I publish these parameters using url like: http://www.logowik.com/index.php?g=1&groupID=1&catID=0 with this url I get 50 images, due to recordCount = 50 in the script . but I can not publish this parameter for url. For 100 images, I try this URL: http://www.logowik.com/index.php?recordCount=100&g=1&groupID=1&catID=0 but this does not affect.

thanks

+6
source share
1 answer

Use the firebug or chrome dev network toolbar to view all the requests created when loading the images, and then just recreate them in jsoup.

+1
source

Source: https://habr.com/ru/post/948482/


All Articles