Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-28-2009, 05:40 PM   PM User | #1
[vengeance]
Regular Coder

 
Join Date: Aug 2009
Posts: 131
Thanks: 28
Thanked 7 Times in 7 Posts
[vengeance] is an unknown quantity at this point
Sending request and grabbing informations from another website

Hello people.

I've been looking on this forum for a while for other people's problems etc. and finally got to register today. Although this is my first post, I'd like some help, because I can't seem to solve it myself.

I've searched the forums and only found one topic about this, but it seems like it didn't get resolved. What I want to do is post a form from my own website, which manipulates with another - and afterwards grab the information from the post result.

I've been searching around and read that regular expressions are being used. I'm not really familiar with those, but I can do the basics of it.

So the website I want to pull informations out from is the official MapleStory (a game) rankings. I'm coding this website for one of my friends, and this was one of his requests.
You type in a name on the rankings post form, and it grabs all the informations from the database. There's also an image of the character, which could be something like "AJJHSDMEWIOJOQWJASDGSDF ... .gif" and it changes everytime. I've seen this on other websites aswell - type in the character name, and it grabs everything. The character image, the class, level, world name, etc.

So I'm kinda lost on how to work with this. If anyone would help, I'd appreciate it.

By the way, the direct link to the ranking page is:
http://maplestory.nexon.net/Modules/...nktype=TotRank
[vengeance] is offline   Reply With Quote
Old 08-28-2009, 07:31 PM   PM User | #2
firetag
New Coder

 
Join Date: Jul 2009
Posts: 52
Thanks: 6
Thanked 1 Time in 1 Post
firetag is an unknown quantity at this point
I think you would want to use scraping to grab the data. And use preg_match() function with regular expressions to sort through the data and get what you want. You would have to do some googling around to see how exactly to do scraping I read an article the other day on it, I'll see if I can find it. Also there's lots of controversy on whether or not scraping is ethical but I think for that it would be fine.
firetag is offline   Reply With Quote
Old 08-28-2009, 07:44 PM   PM User | #3
seco
Regular Coder

 
seco's Avatar
 
Join Date: Nov 2008
Location: Oregon
Posts: 682
Thanks: 5
Thanked 79 Times in 77 Posts
seco has a little shameless behaviour in the past
i grab user info from myspace, i have a demo and source files available.
seco is offline   Reply With Quote
Old 08-28-2009, 08:03 PM   PM User | #4
[vengeance]
Regular Coder

 
Join Date: Aug 2009
Posts: 131
Thanks: 28
Thanked 7 Times in 7 Posts
[vengeance] is an unknown quantity at this point
Thanks for your replies.

@firetag: I'll look into scraping, when I get the time.

@seco: It would be a simpler task to grab MySpace informations, because there's a direct link to the profile to grab stuff from, no?
I believe there's no exact URL to show each individual character on the rankings. I guess it's more complicated.
[vengeance] is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:14 PM.


Advertisement
Log in to turn off these ads.