def main():
    with codecs.open('hinet_news.txt', 'wt', encoding='utf8') as file:
        for url in rss_urls:
            for text in crawelCategory(url):
                print len(text) % 'Write %d bytes'
                print >> file, text
    print 'Done.'
dataset/ETHPy150Open victorlin/loso/loso/crawlers/hinet_news.py/main/swapped operands of `%`