<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 11/14/2014 08:43 PM, genocid3 wrote:<br>
</div>
<blockquote
cite="mid:CAFoW9oxWrcyt=p7HgYXKYyRUfvwAdBxzzZp=MStUBzXipby0pg@mail.gmail.com"
type="cite">
<p dir="ltr">Hi, if i am not mistaken 2.4 has a servlet which
provides json output for active mounts and stats.</p>
<p dir="ltr">You can check it out at <a moz-do-not-send="true"
href="http://your">http://your</a> host:8000/status-json.xsl</p>
<p dir="ltr">Just upgrade your version and you should be fine.</p>
</blockquote>
<br>
Actually you should be able to retrofit that to older versions too.
If, like Dean, you really want to stick to that for some reason.<br>
All it needs is to copy two files:<br>
status-json.xsl<br>
xml2json.xsl<br>
They go into the webroot.<br>
If you want to do that, please use the status-json.xsl from Icecast
2.4.1 (or until I release it within the coming days, from trunk)<br>
<br>
As far as I understand python works quite well with JSON, so that
would probably simplify things<br>
<br>
<blockquote
cite="mid:CAFoW9oxWrcyt=p7HgYXKYyRUfvwAdBxzzZp=MStUBzXipby0pg@mail.gmail.com"
type="cite">
<p dir="ltr">Hth</p>
<div class="gmail_quot<blockquote class=" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">In a search
for access to various ways to interact with Icecast via<br>
Python, I ran across this:<br>
<br>
<a moz-do-not-send="true"
href="http://xiph.org/%7Ebrendan/pyshout2/pyshout2-0.0.1.tar.gz"
target="_blank">http://xiph.org/~brendan/pyshout2/pyshout2-0.0.1.tar.gz</a><br>
<br>
Which is now dead (404).<br>
<br>
I have a need to be able to query an Icecast Server and get the
number of<br>
listeners for a mount. I need to do this via Python, and
preferably with<br>
out scraping the stats page of Icecast to do so. If there was
access to<br>
other data that would be a plus, but a simple means to call a
Python<br>
function and get an integer back with this value would be a
plus.<br>
<br>
Is there something else out there to do this with out scraping a
page?<br>
<br>
Python is the only route at this time due to the nature of other
code<br>
involved which is already done in Python, and far to advanced to
rewrite<br>
at this point, and is only supported on Python due to the
underlying<br>
hardware used.<br>
</div>
</blockquote>
<br>
<br>
Cheers<br>
<br>
Thomas<br>
</body>
</html>