oron Posted April 12, 2009 Share Posted April 12, 2009 Ok well, I'm in need of getting events like: Horse races, football matches, bike races ect. The usual stuff that people gamble on, and I also need to be able to gather the times of them - automatically. I'm pretty sure that this is impossible, but if it was then it would probably be un reliable? If the website I was getting it off changed it's formatting or something. Just wondering if it could be done and how it would be done anyway. And also, would I be needing permission to get such data from websites? Quote Link to comment https://forums.phpfreaks.com/topic/153735-solved-would-this-be-possible/ Share on other sites More sharing options...
Anxious Posted April 12, 2009 Share Posted April 12, 2009 You would be needing to get permission to get any data, from any website. If it's copyrighted anyway, but if its not, good chance it could be from another website, so best ask them anyway for safety. Quote Link to comment https://forums.phpfreaks.com/topic/153735-solved-would-this-be-possible/#findComment-807891 Share on other sites More sharing options...
premiso Posted April 12, 2009 Share Posted April 12, 2009 Generally you want to contact the website, but if the data is out there, you do not "need" permission. It is their fault for not "Securing" it from normal users. curl would be needed to fetch the data. Then you would need to parse the data with either explode or preg_replace A web fetch, which is what you want to do, are generally pretty easy and there is an abundant of information on it and other scripts that do similar that you can look at it to see exactly how it is done. Quote Link to comment https://forums.phpfreaks.com/topic/153735-solved-would-this-be-possible/#findComment-807950 Share on other sites More sharing options...
jackpf Posted April 12, 2009 Share Posted April 12, 2009 Forgive my intrusion, but wouldn't this be slightly unreliable? As oron initially stated, if the site changed their methods of displaying the data, the method of using preg_replace would no long work. Quote Link to comment https://forums.phpfreaks.com/topic/153735-solved-would-this-be-possible/#findComment-807966 Share on other sites More sharing options...
premiso Posted April 12, 2009 Share Posted April 12, 2009 It would be very un-reliable if they changed the way the data is displayed. As long as they keep the way it is displayed the same it works. But alast that is the problem with web-fetching. Unless he can find an RSS feed they provide, he could use that instead which should always stay the same. Given the site, I would doubt they would supply a web feed. To answer the OP's question, without an RSS feed, there is no other sure-cut way to do it, unless the page has an API for use which I doubt that either. The webfetch would be the best bet without the RSS feed or API. Quote Link to comment https://forums.phpfreaks.com/topic/153735-solved-would-this-be-possible/#findComment-807970 Share on other sites More sharing options...
oron Posted April 12, 2009 Author Share Posted April 12, 2009 Ahh ok, thanks for all your help. By the sounds of things I think it would be more reliable and sensible to input the data manually. Thing is though if I ever forget then that's gonna mess up alot of things. Maybe I could get someone from a gambling site to make a rss feed. Thanks for all your help anyway Quote Link to comment https://forums.phpfreaks.com/topic/153735-solved-would-this-be-possible/#findComment-808052 Share on other sites More sharing options...
jackpf Posted April 12, 2009 Share Posted April 12, 2009 You must be incredibly content about making this website to commit yourself to entering data into the database..well, constantly. I think that generally, the sites that have "almost live" data are big ones, thus have a lot of people working for them and entering data. Why not "leave it to the big boys"? Quote Link to comment https://forums.phpfreaks.com/topic/153735-solved-would-this-be-possible/#findComment-808054 Share on other sites More sharing options...
.josh Posted April 12, 2009 Share Posted April 12, 2009 wouldn't hurt to just email them and ask them to arrange something for you, like said rss feed. Kind of depends on what you're wanting to do with that data. If you're planning on offering a service that would somehow generate traffic to their site or earn them money somehow, they might accommodate you. But if you're just trying to snag their data for your own profit, especially if your services involve what they are doing and you're just trying to steal their work, chances are, they will not accommodate you. In fact, they will probably sue you if they catch you doing it. Generally you want to contact the website, but if the data is out there, you do not "need" permission. It is their fault for not "Securing" it from normal users. Dunno who told you that lie, but that's not how copyright works. Just because I don't lock my door, doesn't mean it's suddenly legal to trespass and steal my stuff. I most certainly can go after you. Quote Link to comment https://forums.phpfreaks.com/topic/153735-solved-would-this-be-possible/#findComment-808060 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.