crawl site that has infinite scrolling using python

后端 未结 4 1830
面向向阳花
面向向阳花 2020-12-09 14:11

I have been doing research and so far I found out the python package that I will plan on using its scrapy, now I am trying to find out what is a good way to build a scraper

4条回答
  •  心在旅途
    2020-12-09 14:44

    For infinite scrolling data are requested to Ajax calls. Open web browser --> network_tab --> clear previous requests history by clicking icon like stop--> scroll the webpage--> now you can find the new request for scroll event--> open the request header --> you can find the URL of request ---> copy and paste URL in an seperare tab--> you can find the result of Ajax call --> just form the requested URL to get the data page until end of the page

提交回复
热议问题