View Full Version : Assistance Parsing Multiple links using DOM

01-31-2012, 05:10 AM
I have this code which parses out a div from within the page gotten. Works great.

$html = file_get_dom('http://steamcommunity.com/profiles/76561198010758659/games?tab=all');
echo $html('div#game_440 h5', 0)->getPlainText();

but I need the code to parse from multiple links, instead of using one link like it does now. I would like these multiple links to be called from a text file.

How would I go about this? I know about the file() function. but I have no idea how to use it. The examples are all wrong

01-31-2012, 06:09 AM
Steam has an API that can do all this for you if I remember right? I would look at it if I were you.