Jump to content

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/153735-solved-would-this-be-possible/
Share on other sites

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.

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.

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  ::)

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"?

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.

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.