# Trying to get some data from a website

**URL:** <https://discourse.nodered.org/t/trying-to-get-some-data-from-a-website/72597>\
**Category:** General\
**Tags:** http-request\
**Created:** [22 December 2022 17:50 UTC](https://discourse.nodered.org/t/trying-to-get-some-data-from-a-website/72597 "2022-12-22T17:50:15Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ignalonso](https://avatars.discourse-cdn.com/v4/letter/i/5e9695/32.png) [@ignalonso](https://discourse.nodered.org/u/ignalonso)\
**Post date:** [22 December 2022 17:50 UTC](https://discourse.nodered.org/t/trying-to-get-some-data-from-a-website/72597/1 "2022-12-22T17:50:16Z")

</div>

hello.  
I´m trying to get one specific data from a website but I receive the msg empty. Can someone help me ?  
I let here my flow.  
[  
{  
"id": "bd6a2a896ca035da",  
"type": "tab",  
"label": "Flow 5",  
"disabled": false,  
"info": "",  
"env":   
},  
{  
"id": "d88dd470.0ac7b8",  
"type": "inject",  
"z": "bd6a2a896ca035da",  
"name": "make request",  
"props": [  
{  
"p": "payload",  
"v": "",  
"vt": "date"  
},  
{  
"p": "topic",  
"v": "",  
"vt": "str"  
}  
],  
"repeat": "",  
"crontab": "",  
"once": false,  
"topic": "",  
"payload": "",  
"payloadType": "date",  
"x": 500,  
"y": 280,  
"wires": [  
[  
"874a3d4e.9b666"  
]  
]  
},  
{  
"id": "874a3d4e.9b666",  
"type": "http request",  
"z": "bd6a2a896ca035da",  
"name": "",  
"method": "GET",  
"ret": "txt",  
"paytoqs": "ignore",  
"url": "[https://tarifaluzhora.es/](https://tarifaluzhora.es/)",  
"tls": "",  
"persist": false,  
"proxy": "",  
"insecureHTTPParser": false,  
"authType": "",  
"senderr": false,  
"headers": ,  
"x": 690,  
"y": 280,  
"wires": [  
[  
"90243cc1.87edc",  
"438ca27a555287c8"  
]  
]  
},  
{  
"id": "7403c68f.21d7c8",  
"type": "debug",  
"z": "bd6a2a896ca035da",  
"name": "",  
"active": true,  
"console": "false",  
"complete": "false",  
"x": 1340,  
"y": 280,  
"wires":   
},  
{  
"id": "90243cc1.87edc",  
"type": "html",  
"z": "bd6a2a896ca035da",  
"name": "",  
"property": "",  
"outproperty": "",  
"tag": "col-sm-12.sub\_text.text--center",  
"ret": "attr",  
"as": "single",  
"x": 1030,  
"y": 280,  
"wires": [  
[  
"7403c68f.21d7c8"  
]  
]  
},  
{  
"id": "438ca27a555287c8",  
"type": "debug",  
"z": "bd6a2a896ca035da",  
"name": "",  
"active": true,  
"console": "false",  
"complete": "false",  
"x": 860,  
"y": 180,  
"wires":   
}  
]

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [22 December 2022 17:58 UTC](https://discourse.nodered.org/t/trying-to-get-some-data-from-a-website/72597/2 "2022-12-22T17:58:30Z")

</div>

> [@ignalonso](#):
>
> but I receive the msg empty. Can someone help me ?

Perhaps you should explain what you are looking for, as your result is empty, ours will be too.

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [22 December 2022 18:04 UTC](https://discourse.nodered.org/t/trying-to-get-some-data-from-a-website/72597/3 "2022-12-22T18:04:57Z")

</div>

Here is an example

```auto
[{"id":"0ccc963f1de2b66d","type":"inject","z":"da8a6ef0b3c9a5c8","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":120,"y":660,"wires":[["5f25653eb6e92199"]]},{"id":"5f25653eb6e92199","type":"http request","z":"da8a6ef0b3c9a5c8","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"https://tarifaluzhora.es/","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":270,"y":660,"wires":[["7e74615199be95f2"]]},{"id":"7e74615199be95f2","type":"html","z":"da8a6ef0b3c9a5c8","name":"","property":"payload","outproperty":"payload","tag":"span.col-sm-12","ret":"text","as":"single","x":500,"y":660,"wires":[["441b83f51eec6037"]]},{"id":"441b83f51eec6037","type":"debug","z":"da8a6ef0b3c9a5c8","name":"debug 116","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":650,"y":660,"wires":[]}]

```

The selector used

```auto
span.col-sm-12

```

Output

```auto
0.18617
€/kWh

```

---

<div class="post-metadata">

**Author:** ![ignalonso](https://avatars.discourse-cdn.com/v4/letter/i/5e9695/32.png) [@ignalonso](https://discourse.nodered.org/u/ignalonso)\
**Post date:** [22 December 2022 18:07 UTC](https://discourse.nodered.org/t/trying-to-get-some-data-from-a-website/72597/4 "2022-12-22T18:07:54Z")

</div>

Thank you.

---

<div class="post-metadata">

**Author:** ![ignalonso](https://avatars.discourse-cdn.com/v4/letter/i/5e9695/32.png) [@ignalonso](https://discourse.nodered.org/u/ignalonso)\
**Post date:** [26 December 2022 16:40 UTC](https://discourse.nodered.org/t/trying-to-get-some-data-from-a-website/72597/5 "2022-12-26T16:40:29Z")

</div>

Now can you help me to get only the numerical value.

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [26 December 2022 16:54 UTC](https://discourse.nodered.org/t/trying-to-get-some-data-from-a-website/72597/6 "2022-12-26T16:54:27Z")

</div>

Closing this thread since you opened [another thread](https://discourse.nodered.org/t/sorting-a-string/72739) asking the same thing.

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [26 December 2022 16:54 UTC](https://discourse.nodered.org/t/trying-to-get-some-data-from-a-website/72597/7 "2022-12-26T16:54:32Z")

</div>


