news4 - RSS aggrigation system
Rev. | 35706daeb11067ffac8035502714bda9c6752ef0 |
---|---|
크기 | 289 bytes |
Time | 2013-04-26 04:09:15 |
Author | hylom |
Log Message | fix: crash when RSS item is invalid
|
#!/usr/bin/python
import sys
import re
HEADER = """#
# -*- coding: utf-8 -*-
keywords = ["""
FOOTER = """]"""
print HEADER
for l in sys.stdin:
l = l.strip()
terms = l.split(',')
t = " (u'" + "',u'".join(terms) + "',),"
print t
print FOOTER