2014년 12월 8일 월요일

parse data from ip:port (shoutcast)

i try to parse data from a shoutcast server but nothing append, i think i can't parse data from ip+port. can you confirm that?



Yes you can! This shoutcast server works on port 80

http://81.18.165.235/

You not declare file extension! Try parse in here:http://81.18.165.235/7.html

My results:
Song list with some style (For WebView) http://peep.prants.ee/test/Choutcast_test.php
Current Song (for WebView): http://peep.prants.ee/test/current_test.php



sorry i made a mistake for the example, it was a bad example!
I want data from ip:8862 which is a not :80 port. it's from another radio station, i try your answer but cant access to port 80 (the radio stream is not configured to do that)
i want to acces data for "XX.XX.XX.XX:8862/7", it works with web browser but not in appinventor2.



You can parse with port in source address, try my one:  http://peep.prants.ee:80/test/current_test_no_style.php

But you can`t parse direct from shoutcast 7.htm

This page checks for user agent to ensure it is a web browser that is checking this page.




is it possible to "fake as a browser" with appinventor blocks?



I don`t know this. 
But my solution is php parse (file_get_contents) from played.htm  between table tags


댓글 없음:

댓글 쓰기