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 7 of 7
  1. #1
    New Coder
    Join Date
    Jul 2013
    Location
    Finland/Estonia
    Posts
    51
    Thanks
    9
    Thanked 0 Times in 0 Posts

    Question Getting Information from another website

    Hello. I'm new here.

    I'd like to ask for some help regarding PHP.

    I've recently started coding and such, I have a basic knowledge of what I Am doing.

    Today I created the "looks" of my page.
    Now I want to pull information to it from a gaming site dynamically as information on that website updates (if you get what i mean)

    I want to pull the whole table from this website, be able to apply my own style on it..the "military presonel table"
    http://worldoftanks.eu/community/clans/500009908-WRYA/

    I can provide more info but i think this is enough.

  • #2
    Senior Coder
    Join Date
    Aug 2006
    Posts
    1,138
    Thanks
    7
    Thanked 257 Times in 256 Posts
    Do you have permission to pull this data? I notice in addition to the copyright notice on all pages, this from their ELUA:
    Code:
    C. Prohibited Uses
    8. Transmit or facilitate the transmission of any content that contains a virus, corrupted data, trojan horse, bot, keystroke logger, worm, time bomb, cancelbot or other computer programming routines that are intended to and/or actually damage, detrimentally interfere with, surreptitiously intercept or mine, scrape or expropriate any system, data or personal information;

  • #3
    New Coder
    Join Date
    Jul 2013
    Location
    Finland/Estonia
    Posts
    51
    Thanks
    9
    Thanked 0 Times in 0 Posts
    Yes, I recieved an official response that I'm allowed to do so.

  • #4
    Senior Coder
    Join Date
    Aug 2006
    Posts
    1,138
    Thanks
    7
    Thanked 257 Times in 256 Posts
    If they didn't give you a specific method to get the data, you're going to need to parse through their html (i.e. "screen scrape") to pull it out. There's a thread here where someone is doing exactly that.

    Dave

  • #5
    Senior Coder DanInMa's Avatar
    Join Date
    Nov 2010
    Location
    Salem,Ma
    Posts
    1,577
    Thanks
    13
    Thanked 248 Times in 248 Posts
    actually they appear to have an API - http://wiki.vbaddict.net/pages/API_WoT_Clan_API

  • #6
    Senior Coder
    Join Date
    Aug 2006
    Posts
    1,138
    Thanks
    7
    Thanked 257 Times in 256 Posts
    Ah, cool. Much, much, much easier that way

  • #7
    New Coder
    Join Date
    Jul 2013
    Location
    Finland/Estonia
    Posts
    51
    Thanks
    9
    Thanked 0 Times in 0 Posts
    Sorry for long response time.

    I Have kind of got how the API Should make it easier, but as a starter coder I Still need some help..

    For example, this is the API's site I'll be requesting from
    http://api.worldoftanks.eu/community...ssistant-1.3.2

    Now, how do I actually pull the data and split it up into useful pieces that I can actually use.. (example)
    {
    "account_id": 506805504,
    "created_at": 1354912452.00,
    "updated_at": 1375941552.00,
    "role_localised": "private",
    "role": "private",
    "account_name": "HrKohuke"
    },


  •  

    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
    •