This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Webmaster forum > July 2007 > Integrate content of rss file in static pages
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Integrate content of rss file in static pages
|
|
| sebzzz@gmail.com 2007-07-23, 10:17 pm |
| Hi,
I have this website (http://solutions-linux.org/) and I have a little
news section on the right side.
Presently the pages are just static html pages, but I would like to do
a little rss file to put the news in it and then do a little script
that puts them on the pages with the right markup.
I never worked with rss, but I know basics of xml, so I don't think
there is any problem there. The part that gets me wondering is how to
glue the rss to the html files. I worked a little bit with PHP in the
past and I'm now learning Python.
I think the normal way of doing that would be to do a CGI script in
whatever language I prefer (my server offers me all the popular ones:
perl, python, PHP ...). It doesn't need a lot of speed, because the
site just has a couple of pages. But how exactly am I supposed to do
that? I would prefer using Python do to that it's if a good choice.
Thanks in advance!
| |
| Jerry Stuckle 2007-07-23, 10:17 pm |
| sebzzz@XXXXXXXXXX wrote:
> Hi,
>
> I have this website (http://solutions-linux.org/) and I have a little
> news section on the right side.
>
> Presently the pages are just static html pages, but I would like to do
> a little rss file to put the news in it and then do a little script
> that puts them on the pages with the right markup.
>
> I never worked with rss, but I know basics of xml, so I don't think
> there is any problem there. The part that gets me wondering is how to
> glue the rss to the html files. I worked a little bit with PHP in the
> past and I'm now learning Python.
>
> I think the normal way of doing that would be to do a CGI script in
> whatever language I prefer (my server offers me all the popular ones:
> perl, python, PHP ...). It doesn't need a lot of speed, because the
> site just has a couple of pages. But how exactly am I supposed to do
> that? I would prefer using Python do to that it's if a good choice.
>
> Thanks in advance!
>
You might want to think about one of the CMS's which includes RSS -
Drupal, Joomla, and the like. It could make your job much easier.
OTOH, depending on what you're wanting to do, it might make your job
much harder - but probably not.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
| |
| sebzzz@gmail.com 2007-07-24, 3:17 am |
|
>
> You might want to think about one of the CMS's which includes RSS -
> Drupal, Joomla, and the like. It could make your job much easier.
>
Well, this is like taking the 600 pound gorilla to do this really
small job, imho.
| |
| Jerry Stuckle 2007-07-24, 3:17 am |
| sebzzz@XXXXXXXXXX wrote:
>
> Well, this is like taking the 600 pound gorilla to do this really
> small job, imho.
>
It could be. But if you're not familiar with any of the programming
languages, it's a lot easier.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
| |
| Andy Dingley 2007-07-24, 6:19 am |
| On 24 Jul, 03:27, seb...@XXXXXXXXXX wrote:
> Well, this is like taking the 600 pound gorilla to do this really
> small job, imho.
In software there aren't (many) 600 pound gorillas. They might be big,
but they still install like a small lemur, as far as you the user is
concerned. The idea of "overkill" just doesn't have the same downside
as it does in the physical world.
(Of course none of this applies to the evil, uninstallable over-sized
baboon that is DB2)
| |
|
| sebzzz@XXXXXXXXXX wrote:
> Hi,
>
> I have this website (http://solutions-linux.org/) and I have a little
> news section on the right side.
>
> Presently the pages are just static html pages, but I would like to do
> a little rss file to put the news in it and then do a little script
> that puts them on the pages with the right markup.
>
> I never worked with rss, but I know basics of xml, so I don't think
> there is any problem there. The part that gets me wondering is how to
> glue the rss to the html files. I worked a little bit with PHP in the
> past and I'm now learning Python.
>
> I think the normal way of doing that would be to do a CGI script in
> whatever language I prefer (my server offers me all the popular ones:
> perl, python, PHP ...). It doesn't need a lot of speed, because the
> site just has a couple of pages. But how exactly am I supposed to do
> that? I would prefer using Python do to that it's if a good choice.
>
> Thanks in advance!
easy
http://www.feedforall.com/free-php-script.htm
not for the faint of heart
http://magpierss.sourceforge.net/
| |
| Scott Bryce 2007-07-24, 6:18 pm |
| sebzzz@XXXXXXXXXX wrote:
> Hi,
>
> I have this website (http://solutions-linux.org/) and I have a little
> news section on the right side.
>
> Presently the pages are just static html pages, but I would like to do
> a little rss file to put the news in it and then do a little script
> that puts them on the pages with the right markup.
This is fairly simple in Perl, if you can work in Perl. The modules you
would want to use are LWP::UserAgent to get the RSS feed, XML::Simple to
parse it, and HTML::Template to insert it into the web page. It should
take around 100 lines of code.
> I would prefer using Python do to that it's if a good choice.
You could ask in a Python newsgroup. Someone familiar with Python should
be able to give you some pointers.
| |
| sebzzz@gmail.com 2007-07-24, 10:18 pm |
| Silly me that I haven't thought about this one before, but, what about
Javascript?
| |
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|