Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    May 2011
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Staggering XML data requests.

    Currently I am farming sites like http://us.battle.net/wow/en/character/$realm/$char/simple for information and then adding that information to a MySQL db every time a character is added. However the company that owns battle.net (Blizzard Activision) sent me a polite e-mail detailing that I can only make 2000 requests per day and cannot make 2 requests within 3 seconds of each other. Does anyone have any ideas on how to accomplish this?
    Current version : http://pastebin.com/4zWrytAd lines 79-211
    My thoughts :

    I could put all the requests into a database, and run a php chon job every 15 minutes doing at most 20 requests. Run each of them with 43 seconds of sleep() would yield 1920 a day and no requests within 3 seconds of each other. And that would probably work. But it's.... ghetto? Poorly executed might be a better word. I'm looking for something more elegant.

    Ideas?

  • #2
    New Coder
    Join Date
    May 2011
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Bump for the need of elegance.

  • #3
    New Coder
    Join Date
    May 2011
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Bump in compliance with rules.


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •