Adblock breaks this site

Anyone successfully parsed the GE with PHP?

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

  1. neildiamond

    neildiamond Member

    Joined:
    Jun 25, 2008
    Posts:
    32
    Referrals:
    0
    Sythe Gold:
    0
    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. ^_^
     
  2. cp

    cp an cat
    Banned

    Joined:
    Jan 30, 2007
    Posts:
    3,278
    Referrals:
    6
    Sythe Gold:
    0
    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.
     
  3. neildiamond

    neildiamond Member

    Joined:
    Jun 25, 2008
    Posts:
    32
    Referrals:
    0
    Sythe Gold:
    0
    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 .
     
  4. cp

    cp an cat
    Banned

    Joined:
    Jan 30, 2007
    Posts:
    3,278
    Referrals:
    6
    Sythe Gold:
    0
    Anyone successfully parsed the GE with PHP?

    You could have just used cURL. >__>
     
  5. Matthew

    Matthew Probably breaking stuff

    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)
    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 >


 
 
Adblock breaks this site