calibre/recipes/tnxm.recipe
Kovid Goyal 567040ee1e Perform PEP8 compliance checks on the entire codebase
Some bits of PEP 8 are turned off via setup.cfg
2016-07-29 21:25:17 +05:30

31 lines
786 B
Python

#!/usr/bin/env python2
__license__ = 'GPL v3'
__copyright__ = '2009, Wasabi <wasabi at tnxm.net>'
'''
tnxm.net
'''
from calibre.web.feeds.news import BasicNewsRecipe
class TNXM(BasicNewsRecipe):
title = u'Thanh Nien Xa Me'
__author__ = 'Wasabi'
description = 'Vietnam news and current affairs from TNXM - the finest Vietnamese bulletin board.'
no_stylesheets = True
language = 'vi'
encoding = 'utf-8'
recursions = 0
remove_tags = [dict(name='div', attrs={'class': 'footer'})]
extra_css = '.headline {font-size: x-large;} \n .fact { padding-top: 10pt }'
feeds = [
('Index', 'http://tnxm.net/external.php?type=RSS'),
]
def print_version(self, url):
return url.replace('showthread.php?', 'printthread.php?pp=160&')