Jump to content

BASiQ

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

BASiQ's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. foreach ($lines as $line_num => $line) { echo "" . htmlspecialchars($line) . "<br />\n"; } So, I found some code that can parse my txt file, but now I can't figure out how to make this post the links AND the times from my first code. Also, I can't figure out how to use the things parsed in my first code. I am stuck, anyone helping would be awesome Any assistance is appreciated.
  2. Thanks for the help, but I am a serious n00b when it comes to this, so I am not sure how to do either. I have been researching for a while on these subjects but I find the documentation to be extremely low with the things I am tryin to do If someone could post examples that work, I could probably get them to work eventually. I just can't find any examples... I don't want to ask for someone to do the work, but if it is simple and would not take time, I would be appreciative of the help.
  3. Thanks to Zane I am to where I am now. But I need some more help. 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(); Now I need the code to parse from multiple links, instead of using one link like it does now I would like to be able to post the links, one per line and have it figure it out If I could have it grab the links from a text file, it would be even better. I finally, also would like to output the link of which the parsed details came from with the parsed details.
  4. Yeah, I know it has to do with DOM. I am using it already to get what I had to begin with. Your script worked like a charm. I am going to research array's now. Also, I have one more thing I am hoping to do eventually. At this moment, it outputs plaintext. Which is great, but if I could get it to also output the link which provided the results at the end of each result that would also be great =) I am going to research a bit and see what I can figure out first
  5. Well, aint that nice xD I am new to PHP so I did not know I could do that =) Thanks for that one. Now all I need to do is learn how to parse from a list of URL's Which there seems to be a serious lack of assistance available for this online. Maybe it can't be done.
  6. Page I am parsing: http://steamcommunity.com/profiles/76561198010758659/games?tab=all Goal: I am trying to pull a list of hours from the div "game_440" which is Team Fortress 2 Details: Team Fortress 2 has a div ID of game_440. The hours has a heading of <H4> within that div So far I have $html = file_get_dom('http://steamcommunity.com/profiles/76561198010758659/games?tab=all'); echo $html('div#game_440', 0)->getPlainText(); But this outputs more information then I would like as I only want the hours. Not everything else. Team Fortress 2 1951.6 hrs on record Links Visit the Forums Find Community Groups Visit official website Read related news View Stats »๖ۣۜMr.๖ۣۜTeemo™ Achievements »๖ۣۜMr.๖ۣۜTeemo™ Stats Global Achievements Global Leaderboards Recommend... Also, I am hoping for one of two things. Either to be able to pull the links it parses from a list in a text file of full URL's like so $html = file_get_dom('listoflinks.txt'); echo $html('div#game_440', 0)->getPlainText(); Or the ability to have it pull JUST the ID number so I dont have to get the full link $html = file_get_dom('http://steamcommunity.com/profiles/[get:link.no.from.txt]/games?tab=all''); echo $html('div#game_440', 0)->getPlainText(); Either one of these is acceptable, I don't care which one. Thanks for the help
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.