Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Data coming from API

by NetWallah (Canon)
on Aug 15, 2019 at 17:57 UTC ( [id://11104528]=note: print w/replies, xml ) Need Help??


in reply to Data coming from API

The data from
https://horsens.dk/-/api/MeetingApi/Meetings/%7B0748B00B-3E46-42BE-9D24-1061A2CD345B%7D
seems to be JSON, with some embedded HTML.
{"comittee":{"committeeInfo":{"title":"Børne- og Uddannelses­udvalget" +,"summary":"","text":"<h2>Medlemmer</h2>\n<table bordercolor=\"#00000 +0\" border=\"1\" rules=\"rows\" frame=\"below\">\n <thead>\n + <tr>\n <th>Navn&nbsp;</th>\n <th>E-mail&nbsp; +</th>\n <th>Parti&nbsp;</th>\n </tr>\n </thead>\ +n <tbody>\n <tr>\n <td>Lone &Oslash;rsted (forma +nd)&nbsp;</td>\n <td><span style=\"text-decoration: underl +ine;\"><a hre... ... 20T14:00:00Z","year":2014,"month":1,"title":"20. januar 2014","url":"/ +Politik/PolitiskeUdvalg/53/181"}]},"filter":{"year":[{"value":"2019", +"text":"2019"},{"value":"2018","text":"2018"},{"value":"2017","text": +"2017"},{"value":"2016","text":"2016"},{"value":"2015","text":"2015"} +,{"value":"2014","text":"2014"}],"month":null,"committee":null},"labe +ls":{"yeardefaultoption":"År","monthdefaultoption":"Måned","all":"All +e","results":"resultater","committeedefaultoption":"Udvalg","title":" +Titel"},"statistics":[{"title":"TimeSpan in ms","value":"1453"}]}
You could use something like LWP to directly fetch the JSON contents, then use JSON to parse it.

                "From there to here, from here to there, funny things are everywhere." -- Dr. Seuss

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11104528]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2024-04-16 05:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found