skip to Main Content

How to extract data from html response using python?

I'm trying to extract some of the data from an HTML response I'm getting after executing an API in Python. Here is the HTML response I get: <?xml version="1.0" ?> <mgmtResponse responseType="operation" requestUrl="https://6.7.7.7/motion/api/v1/op/enablement/ethernet/summary?deviceIpAddress=10.3.4.3" rootUrl="https://6.7.7.7/webacs/api/v1/op"> <ethernetSummaryDTO> <CoredIdentityCapable>false</CoredIdentityCapable> <currentIcmpLatency>0</currentIcmpLatency> <deviceAvailability>100</deviceAvailability> <deviceName>TRP5504.130.Cored.com</deviceName> <deviceRole>Unknown</deviceRole>…

VIEW QUESTION

Newtonsoft.Json DeserializeObject not working

I have a very simple JSON file: [ { "smbshare": { "name": "Backup", "path": "\linuxserverbackup" }, "smbshare2": { "name": "Tools", "path": "\linuxservertools" } } ] My model class: public class SmbShare { [JsonProperty("name")] public string Name { get;set; } [JsonProperty("path")]…

VIEW QUESTION
Back To Top
Search