Log in

View Full Version : Copying text from one page and displaying it on your page?



Reddish
05-02-2008, 02:15 PM
I want to create a site where I can automaticly record text on a web page and display it on my page.

eg.
Man U play Liverpool at the weekend.

I want to record the: score, yellow/red cards, corners, etc...
and display them on my page as live info.

Im sure it can be done in the form of Java but im not sure of a site where I can find this information to learn the proceedures.

Can anyone help???

Even if there was a program that could do it for me?:eek:

Medyman
05-02-2008, 02:25 PM
Let me try to understand what you're going for.

You want to display live scores/stats from a football match as it's going on? Is that right?

jscheuer1
05-02-2008, 02:27 PM
You might be able to use one of the scripts from this index:

http://www.dynamicdrive.com/dynamicindex18/

They require an RSS feed, but the sort of info that you are talking about usually has at least one, usually several public RSS feeds available for it. Some also require PHP to be available on your host (server). This is also quite common, but depends upon your host, and the type of account you have with them.

Reddish
05-02-2008, 02:58 PM
Basicly,
lets use the eg above

My Page:
Will give the result:

Man Utd 1 v 1 Liverpool

When reading the page program would record: result1 = 1 ; result2 = 1

Under this would have a list of goalscorers, eg

Page:

Man Utd 1 v 1 Liverpool
38' Rooney
58' Torres

ie. scorer1 = "38' Rooney" ; scorer2="58' Torres"

This information is copied from a web site whos layout doesnt change.
Again with programming I should be able to add more sub-results.;)..

Medyman
05-02-2008, 04:07 PM
There are two ways to tackle this...

The first, as John mentions above, is to find a website that has a RSS feed of the stats. It looks like you want pretty specific details and I'm not sure how feasible that would be. Once you find a RSS feed, use any of the scripts that John linked to.

This would be the easiest "automatic" way. Basically, set it up once and let it run.

If you can't track down a RSS feed of this sort, your best bet is to set up a mini-CMS (content management system). There are plenty free ones available on the Net that you can use. Or you can develop your own. For ease of scalability, implementation, and support I'd recommend using a commercially available one. Some popular ones are Wordpress (http://www.wordpress.org), Drupal (http://drupal.org/), Joomla (http://www.joomla.org/), Textpattern (http://textpattern.com/), MovableType (http://www.movabletype.org/). My personal favorite is ExpressionEngine (http://www.expressionengine.com/index.php?affiliate=visualbinary). That's the only one from the whole lot (I've tried them all) that I'd wholeheartedly recommend.

Using a CMS would mean that you would have to manually enter the statistics. The formatting wouldn't be a problem but it would take a lot of effort on your part if you want the stats to refresh at a relatively speedy rate.

Reddish
05-02-2008, 04:41 PM
Cheers lads,

Think Ill have a go at the first one. jscheuer thanks a million.

Also for the future that CMS idea could work. Thanks Medyman for your help also...

Im sure Ill be back with another Q soon :D