news4 - RSS aggrigation system
Révision | 35706daeb11067ffac8035502714bda9c6752ef0 |
---|---|
Taille | 289 octets |
l'heure | 2013-04-26 04:09:15 |
Auteur | hylom |
Message de Log | 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