zrweber Posted April 24, 2011 Share Posted April 24, 2011 I've had this concept for something I've been wanting to do for awhile, but I need to know if it's even possible in PHP. I've been seriously playing with PHP for a few months now and here's what I was wanting to do. On this website there is a list of players currently online http://www.tibia.com/community/?subtopic=worlds&world=Solera Is there anyway I could grab those list of players and store their names into a .txt file? This is just for fun. My actual goal is to create something that's grabbing that list of players every 5 minutes and showing me who has logged off and who has logged on. Quote Link to comment https://forums.phpfreaks.com/topic/234574-grabbing-a-ever-changing-list-of-people-from-a-website-is-it-possible/ Share on other sites More sharing options...
spiderwell Posted April 24, 2011 Share Posted April 24, 2011 anything is possible really , but first off i would ask the site if they have an API you can plug into or some kind of xml feed? alternatively you will want to fetch the page, and parse it appropriately to get the data you need with get_file_contents() Quote Link to comment https://forums.phpfreaks.com/topic/234574-grabbing-a-ever-changing-list-of-people-from-a-website-is-it-possible/#findComment-1205500 Share on other sites More sharing options...
chaseman Posted April 24, 2011 Share Posted April 24, 2011 You could program a bot with cURL combined with PHP. Quote Link to comment https://forums.phpfreaks.com/topic/234574-grabbing-a-ever-changing-list-of-people-from-a-website-is-it-possible/#findComment-1205514 Share on other sites More sharing options...
TheSky Posted April 24, 2011 Share Posted April 24, 2011 maybe simple html dom google it makes lot of work for you. Quote Link to comment https://forums.phpfreaks.com/topic/234574-grabbing-a-ever-changing-list-of-people-from-a-website-is-it-possible/#findComment-1205527 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.