Skip to content
NEWMarketplace and your team: sell what you build, and get plans and changes that are tested before you see them. See what is new

Library / Web Scraping & Research

Web Scraping & Research

Scrape paginated HTML pages in a loop until no pages remain

Runs manually, requests each HTML page in turn, extracts the data, increments the page number and stops when none are left.

What it does

## 3. Handle Pagination ### Sometimes you need to make the same request multiple times to get all the data you need (pagination). ### The pagination process goes as follow: ### 1. Loop through the pages of the input source (HTTP Request node named "Get my Starts") ### 2. Increment the page at the end of each loop (done with the set node named "Increment Page") ### 3. Stop looping when there are no pages left (checked at the If node named "Are we Finished?")

The steps

  1. On clicking 'execute'
  2. Set
  3. Item Lists - Create Items from Body
  4. HTML Extract - Extract Article Title
  5. Item Lists - Fetch Body
  6. If - Are we finished?
  7. Set - Increment Page
  8. HTTP Request - Get Mock Albums
  9. HTTP Request - Get Wikipedia Page
  10. HTTP Request - Get my Stars

Similar automations