mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix West Hawaii Today
This commit is contained in:
parent
e70550dc8a
commit
3112d5ebf3
@ -11,45 +11,11 @@ class AdvancedUserRecipe1282101454(BasicNewsRecipe):
|
|||||||
max_articles_per_feed = 100
|
max_articles_per_feed = 100
|
||||||
no_stylesheets = True
|
no_stylesheets = True
|
||||||
remove_javascript = True
|
remove_javascript = True
|
||||||
|
use_embedded_content = True
|
||||||
|
|
||||||
masthead_url = 'http://images.townnews.com/westhawaiitoday.com/art/whttoplogo.gif'
|
masthead_url = 'http://images.townnews.com/westhawaiitoday.com/art/whttoplogo.gif'
|
||||||
|
|
||||||
|
|
||||||
|
feeds = [ 'http://www.westhawaiitoday.com/rss.xml']
|
||||||
|
|
||||||
|
|
||||||
feeds = [
|
|
||||||
('Local News', 'http://www.westhawaiitoday.com/?rss=local/'),
|
|
||||||
('Local Sports', 'http://www.westhawaiitoday.com/?rss=sports/local_sports/'),
|
|
||||||
('Big Fish List', 'http://www.westhawaiitoday.com/?rss=sports/big_fish_list/'),
|
|
||||||
('Local Features', 'http://www.westhawaiitoday.com/?rss=features/'),
|
|
||||||
('Obituaries', 'http://www.westhawaiitoday.com/?rss=obituaries/'),
|
|
||||||
('Letters To Editor', 'http://www.westhawaiitoday.com/?rss=opinion/letters_-_your_voice/'),
|
|
||||||
('Editorial', 'http://www.westhawaiitoday.com/?rss=opinion/editorial/'),
|
|
||||||
('Columns', 'http://www.westhawaiitoday.com/?rss=opinion/columns/'),
|
|
||||||
('Volcano Update Sunday', 'http://www.westhawaiitoday.com/?rss=volcano/')
|
|
||||||
]
|
|
||||||
|
|
||||||
def print_version(self, url):
|
|
||||||
split1 = url.split("//")
|
|
||||||
url1 = split1[1]
|
|
||||||
xxx = split1[2]
|
|
||||||
split2 = xxx.split(".")
|
|
||||||
artid = split2[0]
|
|
||||||
print 'ARTICLE ID IS: ', artid
|
|
||||||
|
|
||||||
#example of link to convert
|
|
||||||
#Original link: http://www.westhawaiitoday.com/articles/2010/08/27/local//local01.txt
|
|
||||||
#print version: http://www.westhawaiitoday.com/articles/2010/08/27/local//local01.prt
|
|
||||||
|
|
||||||
print_url = 'http://' + url1 + '//' + artid + '.prt'
|
|
||||||
print 'print_url is: ', print_url
|
|
||||||
return print_url
|
|
||||||
|
|
||||||
#test with ebook-convert hawaii.recipe output_dir --test -vv > myrecipe.txt
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user