Modified from Jim's url-text.py
I am not a programmer, so use at your own risk. I hacked this together one day because I needed to get data from a Sportzcast Scorebot into OBS. This uses the XML file created by Sportzcast's LiveXML software and looks for text sources with names that match XML tags in the XML file.

E.g, To get <clock> data, create a new text source named %clock%

Screenshot 2021-11-30 110801.png


You can use this for other XML Data as well but it will need to be formatted like so:
You can use the "Search Whole XML File" added in version 0.3 to allow pulling data that is not formatted just like above. WARNING: This may break something if you have multiple elements with the same name or use a parent element name.

Code:
<?xml version="1.0" encoding="utf-8"?>
<info>
    <parameter1>value1</parameter1>
    <parameter2>value2</parameter2>
</info>

Example:
Code:
<?xml version="1.0" encoding="utf-8"?>
<info>
    <Hscore>42</Hscore>
    <Vscore>30</Vscore>
    <possession>H</possession>
    <Hpos>.</Hpos>
    <Vpos>
    </Vpos>
    <Htimeouts>4</Htimeouts>
    <Vtimeouts>3</Vtimeouts>
    <HTOGraphic>- - - -</HTOGraphic>
    <VTOGraphic>- - -</VTOGraphic>
    <down>2</down>
    <downtext>2nd</downtext>
</info>
Author
discorny
Downloads
535
Views
3,454
First release
Last update
Rating
0.00 star(s) 0 ratings

Latest updates

  1. 0.3

    Added a "Search Whole XML File" option to allow pulling data from the children of child elements...
  2. File not found fix

    Fixed the issue that would cause a file not found error randomly or if the xml location changed.
Top