Google reader won’t follow 301

Well I said some time ago that I use mod_redirect while migrating from pyblosxom to wordpress. It turns out not all the RSS readers are following a 301 redirct. At least for the one I’m using, Google Reader, won’t do this. So now all my subscribers would think I no longer write blogs
To […]

Migrating from pyblosxom to WordPress

Well in times of switching blog system, one BIG challenge is to save all the old posts and comments. Fortunately (or not?) for me is that I didn’t get too much comments before. So the only thing I need to worry about is the posts.
At first I found a perl script to migrate from blosxom […]

google reader

Google has updated their RSS reader recently. Many reviewers on the net said this makes it “more like a traditional reader”. I agree.
However, Google provides some unique featers. The one I like most is the keyboard shortcut. This makes the reading much convience. I can even pick with channel to read by keyboard!
Thinking about moving […]

feedparser.text content type

I need to change this line from
true_encoding = http_encoding or ‘us-ascii’
to
true_encoding = http_encoding or xml_encoding or ‘us-ascii’
for those buggy sites that don’t obey the standard. And set content type to text/* but don’t offer a charset, set their encoding in the xml file.

Share This

feedparser.whitespace

According to the XML spec http://www.w3.org/TR/REC-xml/#NT-EncodingDecl whitespace is allowed around the quotes of encoding Here is a simple patch:
— /usr/ports/textproc/py-feedparser/work/feedparser/feedparser.py.old Sat Jul  2 16:17:11 2005
+++ /usr/ports/textproc/py-feedparser/work/feedparser/feedparser.py     Sat Jul  2 16:18:25 2005
@@ -2101,7 +2101,7 @@
else:
# ASCII-compatible
pass
-        xml_encoding_match = re.compile(’^<\?.*encoding=[\’"](.*?)[\’"].*\?>’).match(xml_data)
+        xml_encoding_match = re.compile(’^<\?.*encoding\s=\s[\’"](.*?)[\’"].*\?>’).match(xml_data)
except:
xml_encoding_match = None
if xml_encoding_match:
I’ve send this patch to the […]

feedparser.encoding

Looks Feedparser was written with Python 2.3. With python 2.4, the CJKcodecs is included in the official release. So the line
import cjkcodecs.aliases
should be changed to
import encodings.aliases

Share This

rnews 0.72 and 0.63

Well the current version (0.72) of rnews got some problem on charactor support and I think it’s in the magpierss package come with it or the interface between these two. The current magpierss should fixed this cause there’s no problem with /usr/ports/www/feedonfeeds, another PHP+Mysql server side rss aggregator.
So I’ll stay around with the current version […]

the choice of rss reader

Well I’m a lazy person and don’t want to start another app to see the rss feeds. And I’m on FreeBSD with apache installed so I perfer a server side rss aggregator.
Browsing the FreeBSD ports tree I have several choices: /usr/ports/deskutils/checkrdf, /usr/ports/www/rnews, /usr/ports/news/rawdog, and /usr/ports/www/amphetadesk.
I use checkrdf before. However it is written by a language […]

Close
E-mail It