title: Using requests-html python library, how do i scroll ? to end of page
body: <p>The problem is , i need to scrape the data but the entire data only generated when i scroll .</p>
  
  <p>if i scrape before i scroll only some of the data is scraped not all.</p>
  
  <pre><code>from requests_html import AsyncHTMLSession
  
  link="https://www.daraz.com.np/catalog/?q={}"
  asession = AsyncHTMLSession()
  async def get_daraz():
      r = await asession.get(link.format("mouse"))
      await r.html.arender()
      return r.html
  results = asession.run(get_daraz)
  
  
  items_div=results[0].xpath('//*[@id="root"]/div/div[2]/div[1]/div/div[1]/div[2]/div')
  
  for item in items_div:
      print(item.xpath('//div/div/div[1]/div/a/img',first=True))
  </code></pre>
  
  <p>the above gives images of only first three .</p>