Getting text from one website into antoher
-
Ok, im using foobar to listen to music, and i'm outputting my currently playing title into a file (shtml, html, txt, whatever i want). I've got this on my desktop (http://desktop.thekeegster.com/nowplaying.shtml) and i'd like to get that on my server. THe 2 computers are on the same network. Now, i've tried using php includes, but those gimme errors. I'd really rather not have to use an iframe, because i want it to fit in a little section of my site, and the size of the titles vary, so i can't know the exact size of the frame. is there some way to get just the text from one website into another without using frames? *.* cin >> knowledge;
-
Ok, im using foobar to listen to music, and i'm outputting my currently playing title into a file (shtml, html, txt, whatever i want). I've got this on my desktop (http://desktop.thekeegster.com/nowplaying.shtml) and i'd like to get that on my server. THe 2 computers are on the same network. Now, i've tried using php includes, but those gimme errors. I'd really rather not have to use an iframe, because i want it to fit in a little section of my site, and the size of the titles vary, so i can't know the exact size of the frame. is there some way to get just the text from one website into another without using frames? *.* cin >> knowledge;
Maybe you could try an XMLHTTP grab? i.e. use some JavaScript to grab the contents of the file, strip away whatever's outside the body tag and insert the resultant text into the area on your page where you want it. NATHAN RIDLEY Web Application Developer generalgherkin@yahoo.com
-
Maybe you could try an XMLHTTP grab? i.e. use some JavaScript to grab the contents of the file, strip away whatever's outside the body tag and insert the resultant text into the area on your page where you want it. NATHAN RIDLEY Web Application Developer generalgherkin@yahoo.com
i wrote a little python script
#!c:/python22/python.exe print 'Content-Type: text/html\n\n' import urllib usock = urllib.urlopen("http://desktop.thekeegster.com/nowplaying.shtml") lines = usock.read() print lines
i had to learn python, but it works now. thanks for the tip. *.* cin >> knowledge;