Thread: Extracting information from a website?

  1. #1
    Some Guy
    Join Date
    Jul 2004
    Posts
    32

    Extracting information from a website?

    I would just like to have a general idea on how one would do this. For example, given this website http://www.allmusic.com/cg/amg.dll?p...0:pwx8b5m4tsqe, how would a person extract the artist, album, track list, etc and then write it out to some local file. What languages are necessary to know? Would it be very difficult to do? This is just one of my many questions about programming. Thanks in advance!

    -Gabe

  2. #2
    5|-|1+|-|34|) ober's Avatar
    Join Date
    Aug 2001
    Posts
    4,429
    You could easily use PHP to get that information. The function(s) you'd be looking for are fopen(), and some combination of regex.
    EntropySink. You know you have to click it.

  3. #3
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,079
    The problem is, you may have alot of trouble parsing the information from the page. If there was an XML feed, it'd be a different story.

    I don't really know anything about this regex that ober is talking about, but the first site I looked at when googling it has stuff to do with parsing, so it may have something that helps. :|
    Last edited by SlyMaelstrom; 11-14-2005 at 08:34 AM.
    Sent from my iPad®

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 5
    Last Post: 06-01-2009, 07:54 PM
  2. Assignment Help !! (Student information system)
    By ashb in forum C++ Programming
    Replies: 6
    Last Post: 03-12-2005, 05:32 AM
  3. Going out of scope
    By nickname_changed in forum C++ Programming
    Replies: 9
    Last Post: 10-12-2003, 06:27 PM
  4. Special Allegro Information
    By TechWins in forum Game Programming
    Replies: 12
    Last Post: 08-20-2002, 11:35 PM