| 1 |
#!/usr/bin/env python |
| 2 |
|
| 3 |
__license__ = 'GPL v3' |
| 4 |
__copyright__ = '2009, Huan Komrade T <huantnh at gmail.com>' |
| 5 |
''' |
| 6 |
bbc.co.uk |
| 7 |
''' |
| 8 |
|
| 9 |
from calibre.web.feeds.news import BasicNewsRecipe |
| 10 |
|
| 11 |
|
| 12 |
class BBCVietnamese(BasicNewsRecipe): |
| 13 |
title = 'BBC Vietnamese' |
| 14 |
__author__ = 'Huan Komrade T' |
| 15 |
description = 'Vietnam news and current affairs from the British Broadcasting Corporation' |
| 16 |
no_stylesheets = True |
| 17 |
language = 'vi' |
| 18 |
|
| 19 |
encoding = 'utf-8' |
| 20 |
recursions = 0 |
| 21 |
|
| 22 |
remove_tags = [dict(name='div', attrs={'class': 'footer'})] |
| 23 |
extra_css = '.headline {font-size: x-large;} \n .fact { padding-top: 10pt }' |
| 24 |
|
| 25 |
feeds = [ |
| 26 |
('Index', 'http://www.bbc.co.uk/vietnamese/index.xml'), |
| 27 |
('Vietnam', 'http://www.bbc.co.uk/vietnamese/vietnam/index.xml'), |
| 28 |
('Business', 'http://www.bbc.co.uk/vietnamese/business/index.xml'), |
| 29 |
('Culture', 'http://www.bbc.co.uk/vietnamese/culture/index.xml'), |
| 30 |
('Football', 'http://www.bbc.co.uk/vietnamese/football/index.xml'), |
| 31 |
('Forum', 'http://www.bbc.co.uk/vietnamese/forum/index.xml'), |
| 32 |
('In Depth', 'http://www.bbc.co.uk/vietnamese/indepth/index.xml'), |
| 33 |
] |
| 34 |
|
| 35 |
def print_version(self, url): |
| 36 |
return url.replace('http://www.bbc.co.uk/vietnamese/', 'http://www.bbc.co.uk/vietnamese/lg/') |