Anyone successfully parsed the GE with PHP?

Discussion in 'Web Programming' started by neildiamond, Jun 25, 2008.

Anyone successfully parsed the GE with PHP?
  1. Unread #1 - Jun 25, 2008 at 12:04 PM
  2. neildiamond
    Joined:
    Jun 25, 2008
    Posts:
    32
    Referrals:
    0
    Sythe Gold:
    0

    neildiamond Member

    Anyone successfully parsed the GE with PHP?

    I use file_get_contents() on the hiscores and it works fine but on the GE it just times out. I tried setting my user agent to the same as my firefox one and that didn't help either. I thought it might be the random code in the "P" GET value and cookie but I took it out of both and it seems to work fine in my browser.

    Feeling a little stuck at the first hurdle and any tips would be appreciated. ;)

    Edit - Tried a browser mimicking script called Snoopy that had the same problems but the HTTP_Request PEAR package works a charm. Now to rip that bitch and make some lovely calculators, firstly a summoning costs one me thinks. ^_^
     
  3. Unread #2 - Jun 25, 2008 at 6:25 PM
  4. cp
    Joined:
    Jan 30, 2007
    Posts:
    3,278
    Referrals:
    6
    Sythe Gold:
    0

    cp an cat
    Banned

    Anyone successfully parsed the GE with PHP?

    I don't know what you're talking about, but paste a link, and I'll try for myself.
     
  5. Unread #3 - Jun 25, 2008 at 7:09 PM
  6. neildiamond
    Joined:
    Jun 25, 2008
    Posts:
    32
    Referrals:
    0
    Sythe Gold:
    0

    neildiamond Member

    Anyone successfully parsed the GE with PHP?

    The GE section of the RS website doesn't let scripts download its contents so I wasn't quite sure how to continue with my GE ripping script. Luckily there's a PEAR package called HTTP_Request that pretends to be a web browser and it all works fine now. After several hours of googling and fucking about :p .
     
  7. Unread #4 - Jun 25, 2008 at 8:28 PM
  8. cp
    Joined:
    Jan 30, 2007
    Posts:
    3,278
    Referrals:
    6
    Sythe Gold:
    0

    cp an cat
    Banned

    Anyone successfully parsed the GE with PHP?

    You could have just used cURL. >__>
     
  9. Unread #5 - Jun 28, 2008 at 8:37 PM
  10. Matthew
    Joined:
    Nov 12, 2005
    Posts:
    5,153
    Referrals:
    42
    Sythe Gold:
    5,377
    Wait, do you not have an Archer rank? (5) Doge (3) Smashing Why is there BACON in the SOAP!? Literally nothing I saw Matthew Live Free or Die (3) Cool Kid (6) Poképedia Homosex (4)

    Matthew Probably breaking stuff

    Anyone successfully parsed the GE with PHP?

    There's a really good chance you're doing this wrong...

    You should be able to just do fopen on "http://itemdb-rs.runescape.com/viewitem.ws?obj=1042" or whatever URL you want.
     
< 2 Websites i've made | Integrating variables into another page >

Users viewing this thread
1 guest


 
 
Adblock breaks this site