2
Profile to download Jutarnji.hr by Valloric
7
from calibre.ebooks.lrf.web.profiles import DefaultProfile
9
class USAToday(DefaultProfile):
13
timefmt = ' [%d %b %Y]'
14
max_articles_per_feed = 20
15
html_description = True
16
#no_stylesheets = True
18
preprocess_regexps = [
19
(re.compile(r'<BODY.*?<!--Article Goes Here-->', re.IGNORECASE | re.DOTALL), lambda match : '<BODY>'),
20
(re.compile(r'<!--Article End-->.*?</BODY>', re.IGNORECASE | re.DOTALL), lambda match : '</BODY>'),
23
## Getting the print version
25
def print_version(self, url):
26
return 'http://www.printthis.clickability.com/pt/printThis?clickMap=printThis&fb=Y&url=' + url
29
## Comment out the feeds you don't want retrieved.
30
## Or add any new new RSS feed URL's here, sorted alphabetically when converted to LRF
31
## If you want one of these at the top, append a space in front of the name.
35
(' Top Headlines', 'http://rssfeeds.usatoday.com/usatoday-NewsTopStories'),
36
('Sport Headlines', 'http://rssfeeds.usatoday.com/UsatodaycomSports-TopStories'),
37
('Tech Headlines', 'http://rssfeeds.usatoday.com/usatoday-TechTopStories'),
38
('Travel Headlines', 'http://rssfeeds.usatoday.com/UsatodaycomTravel-TopStories'),
39
('Money Headlines', 'http://rssfeeds.usatoday.com/UsatodaycomMoney-TopStories'),
40
('Entertainment Headlines', 'http://rssfeeds.usatoday.com/usatoday-LifeTopStories'),
41
('Weather Headlines', 'http://rssfeeds.usatoday.com/usatoday-WeatherTopStories'),
42
('Most Popular', 'http://rssfeeds.usatoday.com/Usatoday-MostViewedArticles'),
b'\\ No newline at end of file'