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
    Regular Coder
    Join Date
    Aug 2006
    Location
    UK, London, Dartford
    Posts
    221
    Thanks
    3
    Thanked 14 Times in 14 Posts

    Fetching Content

    Afternoon!

    Right well, i would like to no if there is a script that can grab content from another website?

    More about what i want it to do:
    Well, i play a MMORPG and i would like it so when i login the script automatically grabs all the users listed on that page. Then i can use them on my site.

    If you dont understand i'll try to explain abit better :P

  • #2
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,500
    Thanks
    8
    Thanked 1,089 Times in 1,080 Posts
    It's called "web scraping", you can Google that.

    Your webhost may or may not allow "fopen" to open a URL.
    Depending on version of PHP or "php.ini" settings.
    You may end up searching for "PHP CURL" functions instead.

    I guess it would be similar to creating an RSS Feed Reader.

    That leads me to this part ... "web scraping" is not really an
    ethical way to get information. You essentially are consuming
    bandwidth from the other site. With permission from the other
    site owner (they may be OK with it), I guess you can do it though.

    That's the whole point of sites providing RSS. They can cache
    the XML files and let users gather timely information. The host
    of the RSS feed stays in control of the information and the
    caching (which affects the bandwidth).

    I'm not going to provide any snippets because in my opinion, it's not ethical.

  • #3
    Regular Coder
    Join Date
    Aug 2006
    Location
    UK, London, Dartford
    Posts
    221
    Thanks
    3
    Thanked 14 Times in 14 Posts
    That's okay thank you for your reply anyway. I'll defently google that.

    The reason i need to "web scrap" is because they don't provide a RSS for this part. So this is the only alternative.
    Last edited by Lee Stevens; 02-16-2008 at 07:01 PM.


  •  

    Posting Permissions

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