# Hello,i want use puppeteer in node red,what i can do

**URL:** <https://discourse.nodered.org/t/hello-i-want-use-puppeteer-in-node-red-what-i-can-do/57194>\
**Category:** General\
**Created:** [25 January 2022 08:58 UTC](https://discourse.nodered.org/t/hello-i-want-use-puppeteer-in-node-red-what-i-can-do/57194 "2022-01-25T08:58:11Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![datehoer](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/datehoer/32/54932_2.png) [@datehoer](https://discourse.nodered.org/u/datehoer)\
**Post date:** [25 January 2022 08:58 UTC](https://discourse.nodered.org/t/hello-i-want-use-puppeteer-in-node-red-what-i-can-do/57194/1 "2022-01-25T08:58:11Z")

</div>

## it like the question

I'm new at this  
i want use the node-red-contrib-puppeteer-core-chromium in node-red  
and i configure the puppeteer, it doesn't work.

 ![QQ截图20220125165543](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/b/0ba9bb858140af20771e93d13debfb10d111b2eb.jpeg)  
what i can do ?

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [25 January 2022 09:00 UTC](https://discourse.nodered.org/t/hello-i-want-use-puppeteer-in-node-red-what-i-can-do/57194/2 "2022-01-25T09:00:29Z")

</div>

> [@datehoer](#):
>
> it doesn't work

You will need to provide more info than that.

What are you actually trying to achieve? What is the end goal?

If you simply need to GET data from a web page, it may be simpler to use HTTP Request node.

See **http request** examples in the cookbook: [Node-RED Cookbook : Node-RED](https://cookbook.nodered.org/#http-requests)

---

<div class="post-metadata">

**Author:** ![datehoer](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/datehoer/32/54932_2.png) [@datehoer](https://discourse.nodered.org/u/datehoer)\
**Post date:** [25 January 2022 09:05 UTC](https://discourse.nodered.org/t/hello-i-want-use-puppeteer-in-node-red-what-i-can-do/57194/3 "2022-01-25T09:05:14Z")

</div>

emmm,i want use the puppeteer to get a web page html,i think i need a example to use the puppeteer.  
for example,i want get like `https://www.npmjs.com/package/node-red-contrib-puppeteer-core-chromium` html,what should i do?  
i used the http request,it is convenient,but i want use the puppeteer to get the html,can you help me?  
thanks.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [25 January 2022 09:15 UTC](https://discourse.nodered.org/t/hello-i-want-use-puppeteer-in-node-red-what-i-can-do/57194/4 "2022-01-25T09:15:32Z")

</div>

> [@datehoer](#):
>
> i want use the puppeteer to get a web page html

Again, you can use the http request node to get the HTML of a page

> [@datehoer](#):
>
> but i want use the puppeteer to get the html,can you help me?

Unfortunately not, I don't use it.

> [@datehoer](#):
>
> i configure the puppeteer, it doesn't work.

If you want more help you will need to provide much more information e.g...

- What version of node-js is installed on the node-red server?
- What version of node-red are you using?
- What OS are you running node-red on?
- Does the node-red server have internet access?
- What errors are you seeing?
  - can you provide logs? (text format please, not screenshot)

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [25 January 2022 09:29 UTC](https://discourse.nodered.org/t/hello-i-want-use-puppeteer-in-node-red-what-i-can-do/57194/5 "2022-01-25T09:29:06Z")

</div>

> [@Steve-Mcl](#):
>
> Again, you can use the http request node to get the HTML of a page

THe difference of course being that Puppeteer will execute the page's JavaScript whereas the request node will not.

---

<div class="post-metadata">

**Author:** ![datehoer](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/datehoer/32/54932_2.png) [@datehoer](https://discourse.nodered.org/u/datehoer)\
**Post date:** [25 January 2022 09:40 UTC](https://discourse.nodered.org/t/hello-i-want-use-puppeteer-in-node-red-what-i-can-do/57194/6 "2022-01-25T09:40:40Z")

</div>

yes,thanks.

---

<div class="post-metadata">

**Author:** ![datehoer](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/datehoer/32/54932_2.png) [@datehoer](https://discourse.nodered.org/u/datehoer)\
**Post date:** [25 January 2022 09:42 UTC](https://discourse.nodered.org/t/hello-i-want-use-puppeteer-in-node-red-what-i-can-do/57194/7 "2022-01-25T09:42:18Z")

</div>

yes.  
use http request to get page html,some website can't

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [25 January 2022 09:54 UTC](https://discourse.nodered.org/t/hello-i-want-use-puppeteer-in-node-red-what-i-can-do/57194/8 "2022-01-25T09:54:10Z")

</div>

> [@datehoer](#):
>
> use http request to get page html,some website can't

Yes, that is correct, however every web page gets its information from _somewhere_- often, that is from an additional request to an HTTP endpoint.

For example, when you grab the HTML using HTTP Request, it may not include details like the PRICE or the QUANTITY. Typically these are updated by JavaScript. HOWEVER: if you watch the `network` tab in the browser developer tools you can often find where these values come from and simply request the `json` or `xml` instead of running puppeteer.

Here is an example: [Recommendations for air quality metrics - #2 by Steve-Mcl](https://discourse.nodered.org/t/recommendations-for-air-quality-metrics/49156/2)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [26 March 2022 09:54 UTC](https://discourse.nodered.org/t/hello-i-want-use-puppeteer-in-node-red-what-i-can-do/57194/9 "2022-03-26T09:54:32Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
