     [Blog](https://scrapfly.io/blog)   /  [api](https://scrapfly.io/blog/tag/api)   /  [n8n Web Scraping: Build a Scraper Workflow That Works on Real Sites](https://scrapfly.io/blog/posts/n8n-web-scraping)   

# n8n Web Scraping: Build a Scraper Workflow That Works on Real Sites

 by [Hisham Medhat](https://scrapfly.io/blog/author/hisham) Nov 25, 2026 20 min read [\#api](https://scrapfly.io/blog/tag/api) [\#crawling](https://scrapfly.io/blog/tag/crawling) [\#tools](https://scrapfly.io/blog/tag/tools) 

 [  ](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fscrapfly.io%2Fblog%2Fposts%2Fn8n-web-scraping "Share on LinkedIn") [  ](https://x.com/intent/tweet?url=https%3A%2F%2Fscrapfly.io%2Fblog%2Fposts%2Fn8n-web-scraping&text=n8n%20Web%20Scraping%3A%20Build%20a%20Scraper%20Workflow%20That%20Works%20on%20Real%20Sites "Share on X") [  ](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fscrapfly.io%2Fblog%2Fposts%2Fn8n-web-scraping "Share on Facebook")    

 

 

Summarize this article with

 [  ](https://chat.openai.com/?q=Summarize%20this%20article%20and%20explain%20how%20Scrapfly%20helps%20me%20scrape%20any%20website%20at%20scale%20and%20bypass%20anti-bot%20systems%20for%20my%20use%20case%3A%20https%3A%2F%2Fscrapfly.io%2Fblog%2Fposts%2Fn8n-web-scraping) [  ](https://claude.ai/new?q=Summarize%20this%20article%20and%20explain%20how%20Scrapfly%20helps%20me%20scrape%20any%20website%20at%20scale%20and%20bypass%20anti-bot%20systems%20for%20my%20use%20case%3A%20https%3A%2F%2Fscrapfly.io%2Fblog%2Fposts%2Fn8n-web-scraping) [  ](https://x.com/i/grok?text=Summarize%20this%20article%20and%20explain%20how%20Scrapfly%20helps%20me%20scrape%20any%20website%20at%20scale%20and%20bypass%20anti-bot%20systems%20for%20my%20use%20case%3A%20https%3A%2F%2Fscrapfly.io%2Fblog%2Fposts%2Fn8n-web-scraping) [  ](https://www.perplexity.ai/search/new?q=Summarize%20this%20article%20and%20explain%20how%20Scrapfly%20helps%20me%20scrape%20any%20website%20at%20scale%20and%20bypass%20anti-bot%20systems%20for%20my%20use%20case%3A%20https%3A%2F%2Fscrapfly.io%2Fblog%2Fposts%2Fn8n-web-scraping) [  ](https://www.google.com/search?udm=50&aep=11&q=Summarize%20this%20article%20and%20explain%20how%20Scrapfly%20helps%20me%20scrape%20any%20website%20at%20scale%20and%20bypass%20anti-bot%20systems%20for%20my%20use%20case%3A%20https%3A%2F%2Fscrapfly.io%2Fblog%2Fposts%2Fn8n-web-scraping) 



         

One of the sneakiest problems we ran into with n8n looked like a success. Our scraper's run on a product page came back green, with `review_dates: []` in the output and no error or warning anywhere. Open the same page in a browser and the reviews are right there.

We'll put together a scraper from three core nodes of n8n 2.47 and page it through a product catalog. After that, we'll take on the two failures we ran into - empty data on a demo product page and 403 blocks on real sites.



## Key Takeaways

- The HTTP Request, HTML and Split Out nodes scrape a page with no code, as long as the data is in the HTML markup.
- Turn on **Return Array** in the HTML node, or each field keeps only one value and Split Out returns a single row.
- Test the pagination stop condition on an empty page. Our first one never fired and ran to the 10-request cap.
- A green run can still return an empty array when JavaScript draws the data, and g2.com and indeed.com answered 403 to the plain HTTP Request node.
- The [Scrapfly n8n node](https://scrapfly.io/integration/n8n) replaces HTTP Request when a page needs JavaScript or gets blocked. Render JS and Unblocker are node fields, and the HTML node reads `result.content`.

**Get web scraping tips in your inbox**Trusted by 100K+ developers and 30K+ enterprises. Unsubscribe anytime.







## What Do You Need to Scrape a Website With n8n?

A scraper built from n8n's core nodes, HTTP Request, HTML and Split Out, only holds up while the data is in the page's HTML markup and the site lets plain requests through.

Here's what a basic n8n scraper is made of:

- Manual Trigger - starts a run on an Execute click, for testing.
- Schedule Trigger - starts runs on an interval, for production.
- HTTP Request - grabs the page's HTML.
- HTML - applies CSS selectors through its Extract HTML Content operation.
- Split Out - breaks lists of values out into separate items.
- a storage node - an n8n Data table, Google Sheets or a database.

To find the selector for a field, we can right-click the element in our browser and choose Inspect. For more on writing selectors, see our [CSS selector cheatsheet](https://scrapfly.io/blog/posts/css-selector-cheatsheet).

The first workflow we'll build uses just four of these nodes:



## How Do You Scrape a Page With the HTTP Request and HTML Nodes?

We aim HTTP Request at the page and hand its `data` field over to an HTML node, with one CSS selector per field (see [how to select elements by class](https://scrapfly.io/blog/answers/how-to-select-elements-by-class-css-selectors)) and Return Array on.

Let's start with the HTTP Request node. Method is GET, URL is `https://web-scraping.dev/products` and every other option stays at its default. Our first run needed 2.5 seconds and later ones about 0.9 seconds, and n8n puts the whole HTML page into a field called `data`.

Next, the HTML node: we pick Extract HTML Content as the Operation, JSON as the Source Data and `data` as the JSON Property. Here are its three Extraction Values in the workflow JSON, exported from our n8n:

json

```json
"extractionValues": {
  "values": [
    { "key": "title", "cssSelector": ".product h3 a", "returnValue": "text", "returnArray": true },
    { "key": "price", "cssSelector": ".product .price", "returnValue": "text", "returnArray": true },
    {
      "key": "url",
      "cssSelector": ".product h3 a",
      "returnValue": "attribute",
      "attribute": "href",
      "returnArray": true
    }
  ]
}
```



In the excerpt above, title and url point at the same selector, since one product link carries both the name and the address. The title reads its Text, the url reads the `href` Attribute, and we'll lean on that url later for dedupe. Running the node gives us one item with three lists, five values in each:

json

```json
{
  "title": ["Box of Chocolate Candy", "Dark Red Energy Potion", "Teal Energy Potion", "Red Energy Potion", "Blue Energy Potion"],
  "price": ["24.99", "4.99", "4.99", "4.99", "4.99"],
  "url": ["https://web-scraping.dev/product/1", "https://web-scraping.dev/product/2", "..."]
}
```



As you can see, that's one item with a list per field, instead of one item per product. To fix that, we finish with a Split Out node and list `title, price, url` under Fields To Split Out. It zips the lists together into five items. The first three are shown here:

json

```json
[
  { "title": "Box of Chocolate Candy", "price": "24.99", "url": "https://web-scraping.dev/product/1" },
  { "title": "Dark Red Energy Potion", "price": "4.99", "url": "https://web-scraping.dev/product/2" },
  { "title": "Teal Energy Potion", "price": "4.99", "url": "https://web-scraping.dev/product/3" }
]
```



Now we have one item per product, each holding its title, price and URL! This is what both nodes look like in the n8n editor:



What if we forget to switch on Return Array? The [n8n HTML node docs](https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.html/) describe the switched-off result as a single string. However, in our run each key held only its first match, so Split Out gave us one product instead of five.



## How Do You Scrape Multiple Pages in n8n?

The HTTP Request node can handle paging on its own. Under **Options** there's a **Pagination** setting which changes a page number on every request and stops once a check on the response body says so. Meaning the whole loop lives inside one node, so we don't need a Loop node or a list of URLs.

Let's open the HTTP Request node from earlier, add **Pagination** under **Options** and fill it in like this:

- Pagination Mode - Update a Parameter in Each Request
- Type, Name and Value - Query, `page` and `{{ $pageCount + 1 }}`
- Pagination Complete When - Other, with a Complete Expression
- Limit Pages Fetched - on, with Max Pages at 10
- Interval Between Requests (ms) - 500

And here are the two expressions to copy into it:

text

```text
{{ $pageCount + 1 }}
{{ !$response.body.includes('/product/') }}
```



The [n8n pagination docs](https://docs.n8n.io/build/code-in-n8n/cookbook/http-request-node/pagination) describe `$pageCount` as a count of pages already fetched which starts at zero - so the very first call goes out for page 1.



We got 6 requests in 7.7 seconds out of it: five pages of products and an empty sixth with no product links, which ended it. Split Out turned those into 25 rows. Note that a looser expression looking for `class="product` with no closing quote still matched the empty page's `class="products"` list wrapper. It ran to the **Max Pages** cap of 10 requests in 13.1 seconds for the same 25 rows.

Just by looking at those 25 rows, we can see that the titles repeat but the URLs don't. A [Remove Duplicates](https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.removeduplicates/) node (**Operation**: Remove Items Repeated Within Current Input) kept all 25 when comparing `url`, and only 12 when comparing `title`, so deduping on `title` would throw away 13 real products! We only need this operation when one run can return the same product twice.

For more on infinite scroll and "load more" buttons, see our [pagination patterns](https://scrapfly.io/blog/posts/how-to-scrape-infinite-scroll-load-more-and-paginated-pages) guide.



## Why Does Your n8n Scraper Return Empty Data or a 403?

So far we've fetched pages with the HTTP Request node, however it isn't a web browser and doesn't run any of the page's scripts. That's one common reason JavaScript pages come back green but empty.

Blocking is a different story, as a site that blocks plain HTTP requests can answer with a 403 status instead of an empty array.

Before we blame either one, let's make sure it isn't one of the simple mistakes:

- our selector or **Return Value** pointing at an element that isn't in the page source
- a consent or error screen coming back instead of the page we wanted, or a login screen if it's only visible once we log in
- a redirect that lands us on a different URL

If we point our HTTP Request + HTML combo at `https://web-scraping.dev/product/1` with a `.review span` selector, all we get back is `review_dates: []`.

Which case are we in?

To find out, we can look for our text in the page source (not the Inspect panel, which shows the page after its scripts have run). If our text isn't there, it's likely a JavaScript rendering problem. If it turns up in a `<script>` block, we can often skip the browser.

If we take a look at the HTML it downloaded, there are no `.review` elements in it, just the list's Nunjucks template holding only the markup. The browser's JavaScript fills that template with review data, just like the [event locations built by JavaScript](https://community.n8n.io/t/scrape-webpage-that-runs-javascript/42198) an n8n community member got back empty in their HTTP Request output. The review data is still there though, inside a `<script type="application/json" id="reviews-data">` block and a JSON-LD block.

Point an HTML node at `#reviews-data` with **Key** `reviews_json` and **Return Value** HTML, then add an Edit Fields node with a `reviews` field of type Array and this value:

text

```text
{{ JSON.parse($json.reviews_json) }}
```



A Split Out on `reviews` gives us one item per review:

json

```json
{ "date": "2022-07-22", "id": "chocolate-candy-box-1", "rating": 5, "text": "Absolutely delicious! The orange flavor is my favorite." }
```



That's the first 5 of 10 reviews in 1.7 seconds, with no browser and no credits!

Unfortunately, the second failure has no such shortcut, as a scraper can be given away by its request headers, TLS fingerprint, IP reputation or how it deals with a JavaScript challenge or a captcha. Here's what came back when we sent one plain HTTP Request to each of three big sites from our self-hosted n8n on our home IP:

| Site | Plain HTTP Request |
|---|---|
| g2.com product reviews page | 403 in 265 ms |
| indeed.com job search | 403 in 208 ms |
| zillow.com listings page | 200 in 1.2 s |

We can see that Indeed's 403 is a page titled "Security Check - Indeed.com", while G2 sent a 445-byte JSON body with a captcha URL in it.

Zillow's 200 really was the listings page. `zpid` shows up 335 times in its body. That being said, a status 200 can still be a block page.

For more, see our articles on [why scrapers get 403](https://scrapfly.io/blog/posts/403-forbidden-web-scraping) and [how bot protection works](https://scrapfly.io/blog/posts/how-anti-bot-detection-works).



Scrapfly

#### Scale your web scraping effortlessly

Scrapfly handles proxies, browsers, and anti-bot bypass — so you can focus on data.

[Try Free →](https://scrapfly.io/register)

## How Do You Scrape JavaScript Pages and Protected Sites From n8n?

Our plain requests to G2 and Indeed came back with a 403, and our product page's reviews came back empty. The [Scrapfly node](https://scrapfly.io/integration/n8n) got us past both.

So, what does it take to get past a 403 like that?

As we'll see below, G2 and Indeed needed a better proxy with a browser on top of it. There are three ways to get that in n8n:

- JSON endpoint - If the page has one, we could [find the page's JSON API](https://scrapfly.io/blog/posts/how-to-scrape-hidden-apis) and call it straight from the HTTP Request node.
- Headless browser service - We could host one ourselves for the HTTP Request node to call, though its browsers, proxies and stealth patches would then be ours to keep up to date.
- Scraping API node - This is the one we'll use. On [n8n's integration page](https://n8n.io/integrations/scrapfly/), Scrapfly's node shows up as a node that Scrapfly built and n8n verified.

To add it, we search the nodes panel for "Scrapfly" and find it under **More from the community**. Clicking on it opens the node's details:



Here we can see the node's actions, like Scrape web page, and an Install node button at the top. Only the instance owner or an admin can [install it from the nodes panel](https://docs.n8n.io/integrations/community-nodes/installation-and-management/install-verified-community-nodes), and one install covers every user on the instance. After that, the button is replaced by an Installed label.

Now all we need is our API key. We save it as a Scrapfly API credential, which n8n keeps in its credential store.

With the node in place, we can go back to our empty reviews. Here it is in the workflow export, with the credential id stripped out:

json

```json
{
  "parameters": {
    "resource": "Scrape",
    "operation": "ScrapeWebPage",
    "url": "https://web-scraping.dev/product/1",
    "additionalFields": {
      "render_js": true,
      "wait_for_selector": ".review"
    }
  },
  "type": "n8n-nodes-scrapfly.Scrapfly",
  "credentials": { "ScrapflyApi": { "name": "Scrapfly account" } }
}
```



Note that `credentials` only carries the credential's id and name - our API key never makes it into the export.

If we open the node in the n8n editor, we can see Render JS switched on and Wait For Selector set to `.review`:



Then, in the HTML node we switch the JSON Property from `data` to `result.content` - that's where the Scrapfly node puts the rendered HTML. With the same `.review span` selector as before, we get five review dates this time:

json

```json
{ "review_dates": ["2022-07-22", "2022-08-16", "2022-09-10", "2022-10-02", "2022-11-05"] }
```





The Scrapfly node took about 10 seconds in n8n, with Scrapfly reporting 8.69 seconds on its end, and cost 6 credits. Here's the breakdown from the response's `context.cost`:

json

```json
{
  "details": [
    { "amount": 1, "code": "PROXY_DATACENTER_NETWORK", "description": "Proxy Network (Datacenter)" },
    { "amount": 5, "code": "RENDERING_JS", "description": "Browser Usage" }
  ],
  "total": 6
}
```



Let's give G2, Indeed and Zillow another go, one run per site. For these, we switch the [Unblocker](https://scrapfly.io/docs/scrape-api/unblocker) on and set the Proxy Pool to residential and the Country to US:

| Site | Plain HTTP Request | Scrapfly node with Unblocker |
|---|---|---|
| g2.com product reviews page | 403 in 265 ms | 200 in 24.4 s, 45 credits |
| indeed.com job search | 403 in 208 ms | 200 in 33.8 s, 80 credits |
| zillow.com listings page | 200 in 1.2 s | 200 in 2.5 s, 25 credits |

All three came back with a 200, even G2 and Indeed, which answered our plain requests with a 403! The Unblocker switched the browser on for those two by itself, and the browser's 5 credits are part of their 45 and 80 credit totals.

Though, it's one run per site, and the time and credits will vary with the site and the settings.

The node has a few other fields as well:

- Format - Raw, Clean HTML, JSON, Markdown or Text output
- Cost Budget - a credit limit for what the Unblocker can spend on a single request
- Country - the proxy's location
- Session - a name to share cookies between requests; proxy continuity also depends on Session Sticky Proxy

For the full field reference, see our [Scrapfly n8n docs](https://scrapfly.io/docs/integration/n8n).



## Can n8n Extract Structured Data Without CSS Selectors?

Yes - the Scrapfly node ships ready-made extraction models, `product` among them. We don't write a single CSS selector for it, meaning there's no selector that can break or that we'd rewrite for each site.

Let's run it on `https://web-scraping.dev/product/1` once more. We switch Render JS on and set Extraction Model to Product, and after 16.8 seconds `result.extracted_data.data` holds the result, with the run costing 11 credits per page, up from 6 without a model. Here it is, trimmed:

json

```json
{
  "name": "Box of Chocolate Candy",
  "brand": "ChocoDelight",
  "identifiers": { "sku": "12345678910" },
  "aggregate_rating": { "best_rating": 5, "rating_value": 4.7, "review_count": 10 },
  "offers": [{ "availability": "available", "currency": "USD", "price": 9.99, "regular_price": 12.99 }],
  "breadcrumbs": [
    { "link": "https://web-scraping.dev/", "name": "Home" },
    { "link": "https://web-scraping.dev/products", "name": "Products" },
    { "link": "https://web-scraping.dev/product/1", "name": "Box of Chocolate Candy" }
  ]
}
```



Our earlier parse of the reviews block only reached the first 5 reviews, but the model's `review_count` reports 10 - the product's full total! Outside of this trimmed excerpt, the output also carried the description and four product images.

Product is one of the models listed on the [Extraction API](https://scrapfly.io/products/extraction-api) page, and it can return a value that looks right but is wrong. For anything else, the Extraction Prompt field accepts our own list of fields. We should check `brand` and `price` on a few real pages before the Schedule Trigger takes over.

Alternatively, the Scrapfly node can return Markdown, and an n8n LLM node given a schema prompt can read that instead, though the LLM gets billed outside of Scrapfly.



## How Do You Schedule the Scraper and Store the Results?

We swap the Manual Trigger for a Schedule Trigger and set its rule to every 6 hours. Then, let's add a Remove Duplicates node right after Split Out, with **Operation** set to Remove Items Processed in Previous Executions and `{{ $json.url }}` as the **Value to Dedupe On**. Without it, runs would share no memory, and each would store 25 items whether or not they're new. Next, an Edit Fields node after it stamps each row with the time of the run.

Here's how the two nodes look in our workflow export:

json

```json
{ "operation": "removeItemsSeenInPreviousExecutions", "dedupeValue": "={{ $json.url }}" }
{ "assignments": { "assignments": [{ "name": "scraped_at", "value": "={{ $now }}", "type": "string" }] }, "includeOtherFields": true }
```



Our test setup had no Google account, so the rows go into an n8n Data table called `products` through its Insert row node.

To test it, we can skip the 6-hour wait - let's start two runs back to back from the editor and see how many items each node reports:

text

```text
Run 1: Remove Duplicates kept 25 > Edit Fields 25 > Insert row 25
Run 2: Remove Duplicates kept 0, discarded 25 > Edit Fields and Insert row did not run
```



Notice that the second run stored nothing, as Remove Duplicates had already seen all 25 `url` values in the first one:



As for Google Sheets, we'd use its Append or Update Row operation and match rows on the `url` column. It should give us the same result, but we haven't tried it. For more on the Sheets side, see our [scraping into Google Sheets](https://scrapfly.io/blog/posts/web-scraping-to-google-sheets) guide.

So, what happens when our selectors stop matching anything?

We take a copy of our pagination workflow and add an IF node named `No items?` right after Split Out. Its condition is `{{ $json.url }}` is empty, and its true branch leads to our alert - a No Operation node for this test, standing in for a real one.

Then, let's break the selectors on purpose by changing `.product` to `.product-nonexistent` in each of our three HTML selectors and run it:

text

```text
Run status: success
HTTP Request 6 > HTML 6 items of {"title": [], "price": [], "url": []} > Split Out 0 > IF did not run
```



As we can see, the run still ended with status `success`, so a broken scraper can look just like our second scheduled run - green, with nothing stored. Where they differ is Split Out, which had 25 items on that second run and 0 on this one.

Unfortunately, the IF didn't run at all, as Split Out had 0 items to hand it. An [error workflow](https://docs.n8n.io/build/flow-logic/handle-errors-gracefully) can't catch this either. We can set one in each workflow's settings, but according to n8n's docs it runs when an execution fails, and ours ended with `success`.

To fix it, we turn on Always Output Data in Split Out's settings, which makes the node return one empty item instead of nothing. Here's the trimmed part of our export with that setting and the IF condition:

json

```json
{ "alwaysOutputData": true }
{ "leftValue": "={{ $json.url }}", "operator": { "type": "string", "operation": "empty" } }
```



Let's run the broken and the working workflow once each:

text

```text
Broken:  Split Out 1 empty item > IF true 1 > Alert ran
Working: Split Out 25 > IF false 25 > Alert did not run
```



This time the empty item has no `url`, so the IF takes the true branch and our alert runs. The working run still sends all 25 products down the false branch.

Our scheduled workflow needs one more change, as Split Out feeds Remove Duplicates there. With only Always Output Data turned on, the empty item went on through Remove Duplicates, Edit Fields and Insert row.

So, the IF goes right between Split Out and Remove Duplicates, with Remove Duplicates on its false branch. Here are three runs of a copy of our scheduled workflow, with and without it:

text

```text
Run status: success in all three
No IF, broken:    Split Out 1 empty item > Remove Duplicates kept 1 > Edit Fields 1 > Insert row 1
With IF, working: Split Out 25 > IF false 25 > Remove Duplicates kept 25 > Insert row 25
With IF, broken:  Split Out 1 empty item > IF true 1 > Alert ran > Remove Duplicates, Edit Fields and Insert row did not run
```



As we can see, the run without the IF still stored 1 row, with `title`, `price` and `url` all null and only `scraped_at` filled.

Alternatively, the alert branch can end in a Stop and Error node, which according to n8n's docs fails the execution and with that triggers the error workflow too. We haven't tried this one.

A scraper on a schedule should still be polite and only scrape public pages. For more on this, see our [is web scraping legal](https://scrapfly.io/is-web-scraping-legal) page.



## FAQ

Is web scraping with n8n free?

It can be, if we self-host the free Community edition with only its built-in nodes, as that costs nothing beyond the server it runs on. Though, n8n Cloud plans and scraping APIs are paid. Installing the Scrapfly node is free, but each Scrapfly request is charged in credits, subject to the failed-scrape protection and exceptions in its [billing docs](https://scrapfly.io/docs/scrape-api/billing). Our extraction run, for example, cost 11 credits.







Can n8n run a headless browser?

The community `n8n-nodes-puppeteer` node needs self-hosting, and on n8n's stock Docker image it couldn't find Chrome. With a separate browser container it rendered 5 reviews on web-scraping.dev's product page in 2.6 seconds! For more, see our JavaScript pages and protected sites section above.







How do I scrape a page behind a login in n8n?

We copied web-scraping.dev's demo `auth` cookie into a Header Auth credential. Our HTTP Request node sent it as the `Cookie` header, and the HTML node returned `🤫` for `#secret-message`, or an empty string without the cookie. We should still stick to accounts and data we're allowed to access.







Does the Scrapfly node work on n8n Cloud?

n8n's docs say unverified community nodes aren't available on n8n Cloud, and n8n's integrations page lists Scrapfly as verified by n8n. So, it should work on Cloud, unless an admin turned verified community nodes off in Instance settings in the n8n Cloud console. We ran all of our workflows on a self-hosted n8n 2.47.3 in Docker though, so we haven't tried it on Cloud ourselves.









## Conclusion

When it comes to n8n web scraping, the HTTP Request and HTML nodes do the job as long as the request gets through and our selector finds the data in the response. Once the data is drawn by JavaScript with nothing to read in the HTML, or the site answers with a 403, it's time for the Scrapfly n8n node. So, why not swap it in for the HTTP Request node and try it for free?



Legal Disclaimer and Precautions

This tutorial covers popular web scraping techniques for education. Interacting with public servers requires diligence and respect:

- Do not scrape at rates that could damage the website.
- Do not scrape data that's not available publicly.
- Do not store PII of EU citizens protected by GDPR.
- Do not repurpose *entire* public datasets which can be illegal in some countries.

Scrapfly does not offer legal advice but these are good general rules to follow. For more you should consult a lawyer.

 

   [  Add as a preferred source ](https://google.com/preferences/source?q=scrapfly.io) Table of Contents















 

  Table of Contents

- [Key Takeaways](#key-takeaways)
- [What Do You Need to Scrape a Website With n8n?](#what-do-you-need-to-scrape-a-website-with-n8n)
- [How Do You Scrape a Page With the HTTP Request and HTML Nodes?](#how-do-you-scrape-a-page-with-the-http-request-and-html-nodes)
- [How Do You Scrape Multiple Pages in n8n?](#how-do-you-scrape-multiple-pages-in-n8n)
- [Why Does Your n8n Scraper Return Empty Data or a 403?](#why-does-your-n8n-scraper-return-empty-data-or-a-403)
- [How Do You Scrape JavaScript Pages and Protected Sites From n8n?](#how-do-you-scrape-javascript-pages-and-protected-sites-from-n8n)
- [Can n8n Extract Structured Data Without CSS Selectors?](#can-n8n-extract-structured-data-without-css-selectors)
- [How Do You Schedule the Scraper and Store the Results?](#how-do-you-schedule-the-scraper-and-store-the-results)
- [FAQ](#faq)
- [Conclusion](#conclusion)
 
    Join the Newsletter  Get monthly web scraping insights 

 

  



Scale Your Web Scraping

Anti-bot bypass, browser rendering, and rotating proxies, all in one API. Start with 1,000 free credits.

  No credit card required  1,000 free API credits  Anti-bot bypass included 

 [Start Free](https://scrapfly.io/register) [View Docs](https://scrapfly.io/docs/onboarding) 

 Not ready? [Get our newsletter](#newsletter-modal) instead. 

 

 

## Related Articles

 [     

 blocking nodejs 

### Web Scraping With Node-Unblocker

Tutorial on using Node-Unblocker - a nodejs library - to avoid blocking while web scraping and using it to optimize web ...

 

 ](https://scrapfly.io/blog/posts/web-scraping-with-node-unblocker) [     

 http nodejs 

### Web Scraping With NodeJS and Javascript

In this article we'll take a look at scraping using Javascript through NodeJS. We'll cover common web scraping libraries...

 

 ](https://scrapfly.io/blog/posts/web-scraping-with-nodejs) [     

 nodejs tools 

### Best JavaScript Web Scraping Libraries in 2026 (Node.js Stack Guide)

A layer-by-layer ranking of the 8 JavaScript and Node.js libraries worth composing into a scraper in 2026, from HTTP cli...

 

 ](https://scrapfly.io/blog/posts/best-javascript-web-scraping-libraries) 

  

## Related Questions

- [ Q How to find sibling HTML nodes using BeautifulSoup and Python? ](https://scrapfly.io/blog/answers/how-to-find-siblings-nodes-with-beautifulsoup)
 
  



   



 Scale your web scraping effortlessly, **1,000 free credits** [Start Free](https://scrapfly.io/register)