Question / Help json live titles

spontaneocus

New Member
OK folks.

Im working on a little project for live streaming and could do with some help. My coding abilities are nowhere near good enough for this one so I need some help.

I have created an overlay design using bootstrap for my live stream (the backgrounds of the banners etc) to do with politics from the UK.

I am now trying to set up the titles to display live using the UK parliaments JSON feed here: http://explore.data.parliament.uk/?learnmore=AV Live Logging

Basically I need assistance with pulling the Member of Parliaments name and constituency (and the name of the debate if there is one) from that live feed and to display it as text on obs for streaming.

Any assistance would be greatly appreciated.
 

koala

Active Member
I use jq for casual extraction of data from json format. According to the github download page, there is even a Windows version available. After extraction, you can write the data to some *.txt file and include this with the Text source in OBS Studio.
 

koala

Active Member
I cannot seem to be able edit my postings any more, so a bit more info in a followup:
With wget you can get www stuff from the command line, then you filter json with jq and write this to a *.txt file you can use with a Text source within OBS. Google for wget for download, under Linux you just need to install packages wget and jq.
Example:
wget -O - http://lda.data.parliament.uk/tvprogrammes.json |jq .result.items[0].label._value > one_line.txt
 
Top