View previous topic :: View next topic |
Author |
Message |
r0bertz Retired Dev
Joined: 13 Sep 2004 Posts: 257 Location: HKSAR,China
|
|
Back to top |
|
|
pjq n00b
Joined: 23 Mar 2008 Posts: 28 Location: Zhangshu,JiangXi Province,China
|
|
Back to top |
|
|
r0bertz Retired Dev
Joined: 13 Sep 2004 Posts: 257 Location: HKSAR,China
|
Posted: Thu Sep 04, 2008 2:20 pm Post subject: |
|
|
加了,不过你的blog里是分行的,feed里就不分行了
请你研究一下,搞定这个问题 _________________ Zhang Le, Robert
http://zhangle.is-a-geek.org |
|
Back to top |
|
|
Zer4tul n00b
Joined: 07 Jul 2005 Posts: 21 Location: Chongqing, China
|
|
Back to top |
|
|
r0bertz Retired Dev
Joined: 13 Sep 2004 Posts: 257 Location: HKSAR,China
|
Posted: Thu Sep 04, 2008 5:22 pm Post subject: |
|
|
或许你可以问问他 http://hi.baidu.com/3444542 是怎么设定编码的
ERROR:planet.runner:Update of <http://hi.baidu.com/zer4tul/rss> failed
Traceback (most recent call last):
File "/home/zhangle/planet/planet/__init__.py", line 246, in run
channel.update()
File "/home/zhangle/planet/planet/__init__.py", line 609, in update
agent=self._planet.user_agent)
File "/home/zhangle/planet/planet/feedparser.py", line 2696, in parse
feedparser.feed(data)
File "/home/zhangle/planet/planet/feedparser.py", line 1504, in feed
sgmllib.SGMLParser.feed(self, data)
File "/usr/lib/python2.5/sgmllib.py", line 99, in feed
self.goahead(0)
File "/usr/lib/python2.5/sgmllib.py", line 138, in goahead
k = self.parse_endtag(i)
File "/usr/lib/python2.5/sgmllib.py", line 315, in parse_endtag
self.finish_endtag(tag)
File "/usr/lib/python2.5/sgmllib.py", line 355, in finish_endtag
self.unknown_endtag(tag)
File "/home/zhangle/planet/planet/feedparser.py", line 507, in unknown_endtag
method()
File "/home/zhangle/planet/planet/feedparser.py", line 1280, in _end_description
value = self.popContent('description')
File "/home/zhangle/planet/planet/feedparser.py", line 763, in popContent
value = self.pop(tag)
File "/home/zhangle/planet/planet/feedparser.py", line 692, in pop
output = _resolveRelativeURIs(output, self.baseuri, self.encoding)
File "/home/zhangle/planet/planet/feedparser.py", line 1667, in _resolveRelativeURIs
p.feed(htmlSource)
File "/home/zhangle/planet/planet/feedparser.py", line 1504, in feed
sgmllib.SGMLParser.feed(self, data)
File "/usr/lib/python2.5/sgmllib.py", line 99, in feed
self.goahead(0)
File "/usr/lib/python2.5/sgmllib.py", line 133, in goahead
k = self.parse_starttag(i)
File "/usr/lib/python2.5/sgmllib.py", line 291, in parse_starttag
self.finish_starttag(tag, attrs)
File "/usr/lib/python2.5/sgmllib.py", line 333, in finish_starttag
self.unknown_starttag(tag, attrs)
File "/home/zhangle/planet/planet/feedparser.py", line 1662, in unknown_starttag
_BaseHTMLProcessor.unknown_starttag(self, tag, attrs)
File "/home/zhangle/planet/planet/feedparser.py", line 1524, in unknown_starttag
strattrs = u''.join([u' %s="%s"' % (key, value) for key, value in uattrs]).encode(self.encoding)
LookupError: unknown encoding: _________________ Zhang Le, Robert
http://zhangle.is-a-geek.org |
|
Back to top |
|
|
axlrose n00b
Joined: 23 Apr 2007 Posts: 1
|
Posted: Sun Sep 07, 2008 8:22 am Post subject: 我也没怎么设置编码 |
|
|
我没怎么改动就,好像默认就行了 |
|
Back to top |
|
|
Li Yanrui n00b
Joined: 07 Sep 2008 Posts: 4
|
|
Back to top |
|
|
Zer4tul n00b
Joined: 07 Jul 2005 Posts: 21 Location: Chongqing, China
|
Posted: Mon Sep 08, 2008 3:25 am Post subject: |
|
|
最近手腕疼,所以周末没怎么碰电脑,没看到你的回复。
看错误信息应该是德文字符搞的……已经去掉了。用feedsky烧录了一个feed:http://feed.feedsky.com/zer4tul
r0bertz wrote: | 或许你可以问问他 http://hi.baidu.com/3444542 是怎么设定编码的
ERROR:planet.runner:Update of <http://hi.baidu.com/zer4tul/rss> failed
Traceback (most recent call last):
File "/home/zhangle/planet/planet/__init__.py", line 246, in run
channel.update()
File "/home/zhangle/planet/planet/__init__.py", line 609, in update
agent=self._planet.user_agent)
File "/home/zhangle/planet/planet/feedparser.py", line 2696, in parse
feedparser.feed(data)
File "/home/zhangle/planet/planet/feedparser.py", line 1504, in feed
sgmllib.SGMLParser.feed(self, data)
File "/usr/lib/python2.5/sgmllib.py", line 99, in feed
self.goahead(0)
File "/usr/lib/python2.5/sgmllib.py", line 138, in goahead
k = self.parse_endtag(i)
File "/usr/lib/python2.5/sgmllib.py", line 315, in parse_endtag
self.finish_endtag(tag)
File "/usr/lib/python2.5/sgmllib.py", line 355, in finish_endtag
self.unknown_endtag(tag)
File "/home/zhangle/planet/planet/feedparser.py", line 507, in unknown_endtag
method()
File "/home/zhangle/planet/planet/feedparser.py", line 1280, in _end_description
value = self.popContent('description')
File "/home/zhangle/planet/planet/feedparser.py", line 763, in popContent
value = self.pop(tag)
File "/home/zhangle/planet/planet/feedparser.py", line 692, in pop
output = _resolveRelativeURIs(output, self.baseuri, self.encoding)
File "/home/zhangle/planet/planet/feedparser.py", line 1667, in _resolveRelativeURIs
p.feed(htmlSource)
File "/home/zhangle/planet/planet/feedparser.py", line 1504, in feed
sgmllib.SGMLParser.feed(self, data)
File "/usr/lib/python2.5/sgmllib.py", line 99, in feed
self.goahead(0)
File "/usr/lib/python2.5/sgmllib.py", line 133, in goahead
k = self.parse_starttag(i)
File "/usr/lib/python2.5/sgmllib.py", line 291, in parse_starttag
self.finish_starttag(tag, attrs)
File "/usr/lib/python2.5/sgmllib.py", line 333, in finish_starttag
self.unknown_starttag(tag, attrs)
File "/home/zhangle/planet/planet/feedparser.py", line 1662, in unknown_starttag
_BaseHTMLProcessor.unknown_starttag(self, tag, attrs)
File "/home/zhangle/planet/planet/feedparser.py", line 1524, in unknown_starttag
strattrs = u''.join([u' %s="%s"' % (key, value) for key, value in uattrs]).encode(self.encoding)
LookupError: unknown encoding: |
|
|
Back to top |
|
|
r0bertz Retired Dev
Joined: 13 Sep 2004 Posts: 257 Location: HKSAR,China
|
|
Back to top |
|
|
Li Yanrui n00b
Joined: 07 Sep 2008 Posts: 4
|
Posted: Mon Sep 08, 2008 11:52 am Post subject: |
|
|
为啥没有我呢? |
|
Back to top |
|
|
r0bertz Retired Dev
Joined: 13 Sep 2004 Posts: 257 Location: HKSAR,China
|
|
Back to top |
|
|
r0bertz Retired Dev
Joined: 13 Sep 2004 Posts: 257 Location: HKSAR,China
|
|
Back to top |
|
|
Li Yanrui n00b
Joined: 07 Sep 2008 Posts: 4
|
Posted: Mon Sep 08, 2008 12:49 pm Post subject: |
|
|
嗯,我问问 galeki,那个 blog 系统是他做的,看看是咋个回事。 |
|
Back to top |
|
|
Li Yanrui n00b
Joined: 07 Sep 2008 Posts: 4
|
Posted: Mon Sep 08, 2008 2:36 pm Post subject: |
|
|
galeki 修正了 rss 格式,现在可以看到链接了,hoho |
|
Back to top |
|
|
hosanna n00b
Joined: 05 Jul 2007 Posts: 13 Location: Guangxi China
|
|
Back to top |
|
|
r0bertz Retired Dev
Joined: 13 Sep 2004 Posts: 257 Location: HKSAR,China
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|