# Data Scraping - Get the value of an input (html code) to Node Red

**URL:** <https://discourse.nodered.org/t/data-scraping-get-the-value-of-an-input-html-code-to-node-red/33554>\
**Category:** General\
**Created:** [30 September 2020 09:38 UTC](https://discourse.nodered.org/t/data-scraping-get-the-value-of-an-input-html-code-to-node-red/33554 "2020-09-30T09:38:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![INCASE](https://avatars.discourse-cdn.com/v4/letter/i/d9b06d/32.png) [@INCASE](https://discourse.nodered.org/u/INCASE)\
**Post date:** [30 September 2020 09:38 UTC](https://discourse.nodered.org/t/data-scraping-get-the-value-of-an-input-html-code-to-node-red/33554/1 "2020-09-30T09:38:41Z")

</div>

Hello Everyone,

I'm a student, and I'm startingfor a project I need to extract value from the localhost of my captor to InlfuxDB.

When I'm using the node "html", I can't get the value of the captor m0.  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/e/4eb516cecee03ba691f03ef561589f864b51cdcd.png)

Do you have any idea for getting the value ? Do I need to change the node or programing my own node ?

thanks a lot for your help

---

<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:** [30 September 2020 15:04 UTC](https://discourse.nodered.org/t/data-scraping-get-the-value-of-an-input-html-code-to-node-red/33554/2 "2020-09-30T15:04:06Z")

</div>

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/a/8a8c19001dfbee6332e62ca511ddfb9857daeb07.png)

If you change the output selection to "an object of any attributes of the elements", you can just get the attribute values.

---

<div class="post-metadata">

**Author:** ![INCASE](https://avatars.discourse-cdn.com/v4/letter/i/d9b06d/32.png) [@INCASE](https://discourse.nodered.org/u/INCASE)\
**Post date:** [1 October 2020 07:17 UTC](https://discourse.nodered.org/t/data-scraping-get-the-value-of-an-input-html-code-to-node-red/33554/3 "2020-10-01T07:17:50Z")

</div>

Thanks for your answer  
But When I'm change it I found this :  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/a/fa8f1018184edf0eaa9a7edce749974d49ffe91d.png)

By searching, I found the jQuery code of the value and I'm wondering if it's possible to insert somewhere the jQuery code and get the value. Do you have any idea for helping me ?

---

<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:** [1 October 2020 13:04 UTC](https://discourse.nodered.org/t/data-scraping-get-the-value-of-an-input-html-code-to-node-red/33554/4 "2020-10-01T13:04:44Z")

</div>

That is because the value is empty. There is nothing there to send back, the output is "correct" in that sense which is also what your original output shows.

If you were expecting to see a value there, you have captured the screen before the value was entered.

---

<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:** [15 October 2020 13:04 UTC](https://discourse.nodered.org/t/data-scraping-get-the-value-of-an-input-html-code-to-node-red/33554/5 "2020-10-15T13:04:45Z")

</div>

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