does anyone knows how to caputre the html details of the other website like www.livescore.com ? meaning when i wana do automatic updates from livescore.com like matches and such?
i hope this script will help you <?php $handle = @fopen("http://www.example.com", "r"); if ($handle) { while (!feof($handle)) { $buffer = fgets($handle, 4096); echo $buffer; } fclose($handle); } ?> you may need to do further more processing on $buffer to extract the exact content you are looking for
Extracting the data will take some scripting. And you will still depend on livescores.com which sometimes is very slow or non responsive. There are online services that offer this kind of data. I can not remember the names, but I have read about it.
You can use regular expressions for data extraction. Look at the article "Regular expressions made easy", it has an example of data extraction from YouTube page.
hi sorry for the late reply can i know whats it for 4096 ? means ? <?php $handle = @fopen("http://www.example.com", "r"); if ($handle) { while (!feof($handle)) { $buffer = fgets($handle, 4096); echo $buffer; } fclose($handle); } ?>
FYI If your planning on making your site big watch out. The premiership do not legally allow you to publish ANY fixtures or results without paying them a hefty sum, no matter where you got it from. Last year I think they went around sueing a few people. It shouldn't matter if your small time, but if you intend on getting big then you may as well pay them and get direct access
Funny story, my friend is actually the marketing director for livescore. And yes dude, you will get your ass sued.
Im not sure where to pay them, but its a few hundred a year for a small site afaik. Just goto the premiership site and look around, there is a company that controls it but I completely forgot all the info I'm afraid.
Hi, Soccerstand.com have just launched a Free livescore service so all webmasters and portals can implement a real-time livescore feature for free. You can also customize the CSS / style sheets to match the look and feel directly with your site! Check it out here - soccerstand dot com - right hand column get free livescore Best, reggy123
I recommend using www(dot)livescoreshop(dot)com. Here you can put together your own livescore package and decide how long you want to subscribe for. I find their feeds and general feel much more reliable than the other cheap livescore sites on the web which seem a little murky to me from both a business and technical point of view. A big plus is that Livescoreshop have secure credit card payments.
There are other services such as livescores.com and they offer APIs so it will be a lot easier to get scores from API than the extraction.