kongxl 发表于 2023-4-28 09:20:54

想用nodered获取unraid管理页的运行状态,动态数值不显示

本帖最后由 kongxl 于 2023-4-28 17:28 编辑

如题,望大神指点迷津,本人小白:'(貌似动态变化的数据不能提取出来,还是要用其他方法才可以
[{"id":"f4a4d8eab7935bc8","type":"tab","label":"http提取","disabled":false,"info":"","env":[]},{"id":"8fda19f834112fef","type":"inject","z":"f4a4d8eab7935bc8","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":90,"y":60,"wires":[["8afab7260ed71bf5"]]},{"id":"faecfbd893d3fc49","type":"debug","z":"f4a4d8eab7935bc8","name":"debug 1","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":260,"y":440,"wires":[]},{"id":"8afab7260ed71bf5","type":"http request","z":"f4a4d8eab7935bc8","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"https://unraid.123456.xyz/Dashboard","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[{"keyType":"other","keyValue":"cookie","valueType":"other","valueValue":"vmsettings_view_mode=basic; ca_startupButton=onlynew; ca_selectedMenu=onlynew; diskio=diskio; sys_view=sys_view; enter_view=3; nerdtools_checkall=no; nerdtools_packages_uninstall=--uninstall; netline=120; cpuline=120; my_apps=startedOnly; my_vms=startedOnly; db-box3=; db-box1=_system_information_%3Bmotherboard%3Bprocessorin%3Bfaninformat%3Bmemoryutili%3Binterfacein; port_select=eth0; db-box2=docker%E5%AE%B9%E5%99%A8%3B%E8%99%9A%E6%8B%9F%E6%9C%BA%3Barrayinform%3Bsharesinfor%3Busersinform%3Bparityinfor%3Bcacheinform; docker_listview_mode=basic; unraid_5f4472a47da050b64c430638add2a19f=d2b9853225225b042f1d24088439d72a"}],"x":280,"y":80,"wires":[["966d3d5b9e60634b","b42e8550eb9ad935"]]},{"id":"966d3d5b9e60634b","type":"html","z":"f4a4d8eab7935bc8","name":"","property":"payload","outproperty":"payload","tag":"#db-box1 > tbody:nth-child(3) > tr:nth-child(3) > td","ret":"text","as":"multi","x":270,"y":180,"wires":[["faecfbd893d3fc49"]]},{"id":"b42e8550eb9ad935","type":"html","z":"f4a4d8eab7935bc8","name":"","property":"payload","outproperty":"payload","tag":"#db-box1 > tbody:nth-child(3) > tr:nth-child(1) > td > div","ret":"html","as":"single","x":260,"y":280,"wires":[["faecfbd893d3fc49"]]}]



758639304 发表于 2023-4-28 15:47:30

用python

xiaohuoya888 发表于 2023-4-28 17:15:23

数据单独通过API异步返回,你这个URL抓取的只是HTML静态资源,你需要找到查询数据接口,请求接口才能获取真实数据。

kongxl 发表于 2023-4-28 17:25:26

xiaohuoya888 发表于 2023-4-28 17:15
数据单独通过API异步返回,你这个URL抓取的只是HTML静态资源,你需要找到查询数据接口,请求接口才能获取真 ...

不知具体如何操作,有相关保姆教程吗

kongxl 发表于 2023-4-28 18:01:56

758639304 发表于 2023-4-28 15:47
用python

小白一下搞复杂了:funk:

lqf1206 发表于 2023-4-29 09:54:25

我打不开网页https://unraid.123456.xyz/Dashboard

ylilike 发表于 2023-4-29 11:54:29

抓包分析分析呗

aexyun 发表于 2023-4-29 13:26:47

好像unraid有个hass用的API插件。在APP里面搜得到

kongxl 发表于 2023-4-29 20:00:11

aexyun 发表于 2023-4-29 13:26
好像unraid有个hass用的API插件。在APP里面搜得到

感谢提醒,在尝试操作一下

kongxl 发表于 2023-4-29 20:01:16

ylilike 发表于 2023-4-29 11:54
抓包分析分析呗

搞复杂了:lol
页: [1] 2
查看完整版本: 想用nodered获取unraid管理页的运行状态,动态数值不显示