• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Workaround from a lazy loading webpage

shahin

Active Member
Hi there! Hope you all are doing well. While making a parser I noticed that Yellowpage Canada uses lazy loading method in their webpage. However, the issue I'm facing here is that the page contains 84 Names but my parser is scraping only 40 Names out of them. Is there any workaround from this? Any corrective measure from your end in my code would be a great help. Thanks in advance. Here is the code:

Code:
http.Open "GET", "http://www.yellowpages.ca/search/si/1/Outdoor%20wedding/Edmonton", False
http.send
html.body.innerHTML = http.responseText

Set topics = html.getElementsByClassName("listing__name--link jsListingName")
For Each topic In topics
    Cells(x, 1) = topic.innerText
    x = x + 1
Next topic
 
One more thing to know about this which is; while inspecting a webpage It's not that easy always to find out where those responses lie. Are there any hard and fast rules to get them other than looking into the form element?
 
Back
Top