Scraping data from all asp.net pages with AJAX pagination implemented

后端 未结 4 1496
生来不讨喜
生来不讨喜 2021-02-01 23:09

I want to scrap a webpage containing a list of user with addresses, email etc. webpage contain list of user with pagination i.e. page contains 10 users when I click on page 2 li

4条回答
  •  闹比i
    闹比i (楼主)
    2021-02-01 23:59

    I would recommend branching out into Ruby and trying Capybara which is a sane way of using Selenium. It lets you do a visit of a page, then examine the actual DOM. You can click on everything, wait for events, etc. It uses a real browser.

    visit "http://www.google.com" 
    page.find("button[name=btnK]")
    

提交回复
热议问题