Re: [Tutor] Building RSS reader with Python
On Wed, Nov 5, 2008 at 3:36 PM, <[EMAIL PROTECTED]> wrote: > Might look at rss2email, it works very well for those of us that like > to read email instead of yet another website to read rss feeds. > > It won't solve your "search for the address of rss feeds on the site" > but it will give you an idea about rss parsing. It uses feedparser for the parsing. Kent ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Building RSS reader with Python
On Wed, Nov 5, 2008 at 3:26 PM, <[EMAIL PROTECTED]> wrote: > Hi everyone, > > I'm new to programming and am building a very basic rss reader for my first > major project with python and GUI. As it is, I have it set up so that if I > input an exact rss feed address (ex http://news.google.com/?output=rss) I > can retrieve stories. Id like to make it so that I can enter a site (like > http://news.google.com) and have it search for the address of rss feeds on > the site, so that I don't have to know exact page addresses for the rss, > since most sites don't have such a straightforward location for the RSS > page. Is there a way to do this? I hope you are using feedparser for your parsing: http://www.feedparser.org/ feedfinder will do discovery: http://www.aaronsw.com/2002/feedfinder/ Kent ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Building RSS reader with Python
On Wed, Nov 5, 2008 at 3:26 PM, <[EMAIL PROTECTED]> wrote: > Hi everyone, > > I'm new to programming and am building a very basic rss reader for my first > major project with python and GUI. As it is, I have it set up so that if I > input an exact rss feed address (ex http://news.google.com/?output=rss) I > can retrieve stories. Id like to make it so that I can enter a site (like > http://news.google.com) and have it search for the address of rss feeds on > the site, so that I don't have to know exact page addresses for the rss, > since most sites don't have such a straightforward location for the RSS > page. Is there a way to do this? > > Thanks, > Luke > ___ My gut reaction is to say that it's a lost cause. Everybody does their own thing on the Internet, and you'll never be able to describe all of the ways people do it. However, there are *some* standards out there. Check with the big CMS tools (WordPress, Drupal, Zope, Plone, etc.) and see if they have a standard. That'll help. Hit up some of the big sites (Google News, Reuters, CNN, BBC) and see what they do. You'll end up with a database of maybe a few dozen things to try (example.com/rss.xml, example.com/blog?feed=rss2, example.com/feeds.atom, and many more), and you can search for them by default. Having said that, it'll never be perfect, and it may not even be close enough to perfect to be worth the maintenance. I refer back to my gut reaction above. But you never know -- you could be the guy who maintains the most complete reference to RSS URLs on the Internet, and all will download your list for their own projects. Somebody has to be the best in that market. Shawn ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Building RSS reader with Python
Might look at rss2email, it works very well for those of us that like to read email instead of yet another website to read rss feeds. It won't solve your "search for the address of rss feeds on the site" but it will give you an idea about rss parsing. rss2email - http://rss2email.infogami.com/ On Wed, Nov 05, 2008 at 03:26:21PM -0500, [EMAIL PROTECTED] wrote: > Hi everyone, > > I'm new to programming and am building a very basic rss reader for my > first major project with python and GUI. As it is, I have it set up so > that if I input an exact rss feed address (ex > http://news.google.com/?output=rss) I can retrieve stories. Id like to > make it so that I can enter a site (like http://news.google.com) and > have it search for the address of rss feeds on the site, so that I > don't have to know exact page addresses for the rss, since most sites > don't have such a straightforward location for the RSS page. Is there a > way to do this? > > Thanks, > Luke ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor