Jump to content

Collecting Data From Another Website


Esq

Recommended Posts

Hello guys, I have intermediate level PHP and I am currently working on a website.

I need to write a function that will get me some specific information from a website.

 

I need this function to go write the users name on the search bar over there: http://competitive.eune.leagueoflegends.com/ladders/eune/current/rankedsolo5x5

after it founds which page the user is on I want the information of that user registered on my database.

But I am not sure where to start..

 

An example would be like

http://competitive.eune.leagueoflegends.com/ladders/eune/current/rankedsolo5x5?summoner_name=&page=4

page 5: rank 121 Sokoren 42 22 1877

I already know the name, I just need the other numerical information and get them into my database. I only want this function to work when a certain nick name is entered.

 

Any help would be appreciated.

Link to comment
Share on other sites

thats funny cause i wouldnt need help if i was the owner of league of legends :)  (1.i would have the money to make someone do it, 2.it would already be in my database not that hard to pull from there ^^)

 

anyways

 

I also found this line in V. CODE OF CONDUCT:

K. Accessing or attempting to access areas of the Game or Game servers that have not been made available to the public;

 

this is the only restriction regarding data. so it is ok by the website that i take information that is available to public

Link to comment
Share on other sites

I'll second Ryans suggestion, but be aware DOMDocument can be tedious at times.  Perhaps you could contact the site admin, and see if they have an API available for this type of project.  Most game servers do, and would make it much easier (and it won't break when site design changes).

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.