<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[How to access JSON data from UnitV2 AI Camera?]]></title><description><![CDATA[<p dir="auto">I'm using normal Python to access the UnitV2 camera and it works but I can't get the JSON data from any of the modules. Here's where I'm at so far.</p>
<p dir="auto">import requests<br />
from lxml import html</p>
<p dir="auto">r = requests.get('<a href="http://10.254.239.1" target="_blank" rel="noopener noreferrer nofollow ugc">http://10.254.239.1</a>')<br />
status = r.status_code<br />
tree = html.fromstring(r.content)<br />
*** When I inspect the page, this is where the JSON data is stored but I don't get anything from this.***<br />
json = tree.xpath('//*[@id="func-result-pre"]')<br />
print(json)</p>
]]></description><link>https://community.m5stack.com/topic/3481/how-to-access-json-data-from-unitv2-ai-camera</link><generator>RSS for Node</generator><lastBuildDate>Tue, 17 Mar 2026 00:33:42 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/3481.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 26 Jul 2021 00:16:12 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to access JSON data from UnitV2 AI Camera? on Wed, 01 Sep 2021 19:56:11 GMT]]></title><description><![CDATA[<p dir="auto">SOLVED IT!<br />
Here, You can use this, hope it helps out!<br />
<a href="https://forum.m5stack.com/topic/3557/unit-v2-result-page-working" target="_blank" rel="noopener noreferrer nofollow ugc">UNITV2 WEB RESULT RESPONSE</a></p>
]]></description><link>https://community.m5stack.com/post/14787</link><guid isPermaLink="true">https://community.m5stack.com/post/14787</guid><dc:creator><![CDATA[Asmodev]]></dc:creator><pubDate>Wed, 01 Sep 2021 19:56:11 GMT</pubDate></item></channel></rss>