maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   How to reformat output of website? (https://talk.maemo.org/showthread.php?t=30572)

Frog 2009-07-30 08:38

How to reformat output of website?
 
I have an idea in mind to which I am looking for a solution (as easy as possible). There is a website which gives me the information of all the trams that depart from a selectable station. This works perfectly if you have a big screen, but on the display of my Nokia 770 the information is too small for comfortable reading.

What is the easiest way of reformatting the output of the website?

This is what is looks like originally:
http://www.wienerlinien.at/itip/lini...izeTimeSlot=30

I don't need the header, just the information below "Linie Ziel ...". Do I have to program this using Python, C++, etc. or is there an easier way to display the information continually?

Background: I want to use my old 770 as a display when the next tram leaves so that I can time it better. It will be hanging next to the door and should provide the information at a finger tip. :cool:

timsamoff 2009-07-30 15:38

Re: How to reformat output of website?
 
If the tram routes output an XML file (RSS, ATOM, etc.), you could reformat it pretty easily via an aggregation api. The issue would be in creating an interface in which you could input your applicable data.

But, if XML is not available, you could always try using the Stylish Add-on for Firefox and create you're own CSS for the website.

Tim

Frog 2009-08-03 17:54

Re: How to reformat output of website?
 
Quote:

Originally Posted by timsamoff (Post 307752)
But, if XML is not available, you could always try using the Stylish Add-on for Firefox and create you're own CSS for the website.

Thanks for the reply, Tim.

Does this work with the firefox version available for maemo?

Frog 2009-08-07 13:37

Re: How to reformat output of website?
 
I have solved the problem using greasemonkey, which works with MicroB well. However, I had to upgrade my 770 to OS2007 to make it work.

zerojay 2009-08-07 13:42

Re: How to reformat output of website?
 
Yeah, a Greasemonkey script was going to be my suggestion as well.

How about you share the script you wrote so that perhaps other people can see how you did it and can learn to apply it to other websites?

speculatrix 2009-08-09 22:23

Re: How to reformat output of website?
 
you could write a script which does a "wget" and then head and tail to remove the excess lines of code, then stick the html header and footer back in?


All times are GMT. The time now is 09:28.

vBulletin® Version 3.8.8