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
- On clicking 'execute'
- Set
- Item Lists - Create Items from Body
- HTML Extract - Extract Article Title
- Item Lists - Fetch Body
- If - Are we finished?
- Set - Increment Page
- HTTP Request - Get Mock Albums
- HTTP Request - Get Wikipedia Page
- HTTP Request - Get my Stars
Similar automations
Web Scraping & ResearchExtract Article Titles from Web Pages in a Loop38 stepsWeb Scraping & ResearchPull Website Data Without an n8n Node10 stepsWeb Scraping & ResearchExtract HTML data into Baserow and send results via SendGrid9 stepsWeb Scraping & ResearchExtract Data from a Web Page with HTML Extract5 steps