How to access JSON data from UnitV2 AI Camera?
-
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.
import requests
from lxml import htmlr = requests.get('http://10.254.239.1')
status = r.status_code
tree = html.fromstring(r.content)
*** When I inspect the page, this is where the JSON data is stored but I don't get anything from this.***
json = tree.xpath('//*[@id="func-result-pre"]')
print(json) -
This post is deleted! -
SOLVED IT!
Here, You can use this, hope it helps out!
UNITV2 WEB RESULT RESPONSE
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login