Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Getting text from one website into antoher

Getting text from one website into antoher

Scheduled Pinned Locked Moved Web Development
sysadminphphtmlcomquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    keegan
    wrote on last edited by
    #1

    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;

    N 1 Reply Last reply
    0
    • K keegan

      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;

      N Offline
      N Offline
      Nathan Ridley
      wrote on last edited by
      #2

      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

      K 1 Reply Last reply
      0
      • N Nathan Ridley

        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

        K Offline
        K Offline
        keegan
        wrote on last edited by
        #3

        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;

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups