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.
what i can do ?
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.
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
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.
Again, you can use the http request node to get the HTML of a page
Unfortunately not, I don't use it.
If you want more help you will need to provide much more information e.g...
THe difference of course being that Puppeteer will execute the page's JavaScript whereas the request node will not.
yes,thanks.
yes.
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
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.