mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
a37212a456
commit
f41c8c9a08
@ -4,7 +4,6 @@ __copyright__ = '2011 Aurélien Chabot <contact@aurelienchabot.fr>'
|
|||||||
'''
|
'''
|
||||||
20minutes.fr
|
20minutes.fr
|
||||||
'''
|
'''
|
||||||
import re
|
|
||||||
from calibre.web.feeds.recipes import BasicNewsRecipe
|
from calibre.web.feeds.recipes import BasicNewsRecipe
|
||||||
|
|
||||||
class Minutes(BasicNewsRecipe):
|
class Minutes(BasicNewsRecipe):
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
class BasicUserRecipe1318572550(AutomaticNewsRecipe):
|
|
||||||
|
from calibre.web.feeds.news import BasicNewsRecipe
|
||||||
|
class BasicUserRecipe1318572550(BasicNewsRecipe):
|
||||||
title = u'FrAndroid'
|
title = u'FrAndroid'
|
||||||
oldest_article = 2
|
oldest_article = 2
|
||||||
max_articles_per_feed = 100
|
max_articles_per_feed = 100
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
class BasicUserRecipe1318572445(AutomaticNewsRecipe):
|
|
||||||
|
from calibre.web.feeds.news import BasicNewsRecipe
|
||||||
|
|
||||||
|
class BasicUserRecipe1318572445(BasicNewsRecipe):
|
||||||
title = u'Google Mobile Blog'
|
title = u'Google Mobile Blog'
|
||||||
oldest_article = 7
|
oldest_article = 7
|
||||||
max_articles_per_feed = 100
|
max_articles_per_feed = 100
|
||||||
|
@ -3,34 +3,31 @@ __copyright__ = '2011, Seongkyoun Yoo <seongkyoun.yoo at gmail.com>'
|
|||||||
'''
|
'''
|
||||||
Profile to download The Hankyoreh
|
Profile to download The Hankyoreh
|
||||||
'''
|
'''
|
||||||
import re
|
|
||||||
from calibre.web.feeds.news import BasicNewsRecipe
|
from calibre.web.feeds.news import BasicNewsRecipe
|
||||||
from calibre.ebooks.BeautifulSoup import BeautifulSoup
|
|
||||||
|
|
||||||
|
|
||||||
class Hankyoreh(BasicNewsRecipe):
|
class Hankyoreh(BasicNewsRecipe):
|
||||||
title = u'Hankyoreh'
|
title = u'Hankyoreh'
|
||||||
language = 'ko'
|
language = 'ko'
|
||||||
description = u'The Hankyoreh News articles'
|
description = u'The Hankyoreh News articles'
|
||||||
__author__ = 'Seongkyoun Yoo'
|
__author__ = 'Seongkyoun Yoo'
|
||||||
oldest_article = 5
|
oldest_article = 5
|
||||||
recursions = 1
|
recursions = 1
|
||||||
max_articles_per_feed = 5
|
max_articles_per_feed = 5
|
||||||
no_stylesheets = True
|
no_stylesheets = True
|
||||||
keep_only_tags = [
|
keep_only_tags = [
|
||||||
dict(name='tr', attrs={'height':['60px']}),
|
dict(name='tr', attrs={'height':['60px']}),
|
||||||
dict(id=['fontSzArea'])
|
dict(id=['fontSzArea'])
|
||||||
]
|
]
|
||||||
remove_tags = [
|
remove_tags = [
|
||||||
dict(target='_blank'),
|
dict(target='_blank'),
|
||||||
dict(name='td', attrs={'style':['padding: 10px 8px 5px 8px;']}),
|
dict(name='td', attrs={'style':['padding: 10px 8px 5px 8px;']}),
|
||||||
dict(name='iframe', attrs={'width':['590']}),
|
dict(name='iframe', attrs={'width':['590']}),
|
||||||
]
|
]
|
||||||
remove_tags_after = [
|
remove_tags_after = [
|
||||||
dict(target='_top')
|
dict(target='_top')
|
||||||
]
|
]
|
||||||
feeds = [
|
feeds = [
|
||||||
('All News','http://www.hani.co.kr/rss/'),
|
('All News','http://www.hani.co.kr/rss/'),
|
||||||
('Politics','http://www.hani.co.kr/rss/politics/'),
|
('Politics','http://www.hani.co.kr/rss/politics/'),
|
||||||
('Economy','http://www.hani.co.kr/rss/economy/'),
|
('Economy','http://www.hani.co.kr/rss/economy/'),
|
||||||
('Society','http://www.hani.co.kr/rss/society/'),
|
('Society','http://www.hani.co.kr/rss/society/'),
|
||||||
|
@ -3,7 +3,6 @@ __copyright__ = '2011, Seongkyoun Yoo <seongkyoun.yoo at gmail.com>'
|
|||||||
'''
|
'''
|
||||||
Profile to download The Hankyoreh
|
Profile to download The Hankyoreh
|
||||||
'''
|
'''
|
||||||
import re
|
|
||||||
from calibre.web.feeds.news import BasicNewsRecipe
|
from calibre.web.feeds.news import BasicNewsRecipe
|
||||||
|
|
||||||
class Hankyoreh21(BasicNewsRecipe):
|
class Hankyoreh21(BasicNewsRecipe):
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
class BasicUserRecipe1318619728(AutomaticNewsRecipe):
|
from calibre.web.feeds.news import BasicNewsRecipe
|
||||||
|
|
||||||
|
class BasicUserRecipe1318619728(BasicNewsRecipe):
|
||||||
title = u'Korben'
|
title = u'Korben'
|
||||||
oldest_article = 7
|
oldest_article = 7
|
||||||
max_articles_per_feed = 100
|
max_articles_per_feed = 100
|
||||||
|
@ -4,7 +4,6 @@ __copyright__ = '2011 Aurélien Chabot <contact@aurelienchabot.fr>'
|
|||||||
'''
|
'''
|
||||||
LePoint.fr
|
LePoint.fr
|
||||||
'''
|
'''
|
||||||
import re
|
|
||||||
from calibre.web.feeds.recipes import BasicNewsRecipe
|
from calibre.web.feeds.recipes import BasicNewsRecipe
|
||||||
|
|
||||||
class lepoint(BasicNewsRecipe):
|
class lepoint(BasicNewsRecipe):
|
||||||
|
@ -4,7 +4,6 @@ __copyright__ = '2011 Aurélien Chabot <contact@aurelienchabot.fr>'
|
|||||||
'''
|
'''
|
||||||
Lexpress.fr
|
Lexpress.fr
|
||||||
'''
|
'''
|
||||||
import re
|
|
||||||
from calibre.web.feeds.recipes import BasicNewsRecipe
|
from calibre.web.feeds.recipes import BasicNewsRecipe
|
||||||
|
|
||||||
class lepoint(BasicNewsRecipe):
|
class lepoint(BasicNewsRecipe):
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
class BasicUserRecipe1318619832(AutomaticNewsRecipe):
|
|
||||||
|
from calibre.web.feeds.news import BasicNewsRecipe
|
||||||
|
class BasicUserRecipe1318619832(BasicNewsRecipe):
|
||||||
title = u'OmgUbuntu'
|
title = u'OmgUbuntu'
|
||||||
oldest_article = 7
|
oldest_article = 7
|
||||||
max_articles_per_feed = 100
|
max_articles_per_feed = 100
|
||||||
|
@ -20,9 +20,8 @@ from calibre.devices.usbms.driver import USBMS, debug_print
|
|||||||
from calibre.devices.usbms.device import USBDevice
|
from calibre.devices.usbms.device import USBDevice
|
||||||
from calibre.devices.usbms.books import CollectionsBookList
|
from calibre.devices.usbms.books import CollectionsBookList
|
||||||
from calibre.devices.usbms.books import BookList
|
from calibre.devices.usbms.books import BookList
|
||||||
from calibre.ebooks.metadata import authors_to_sort_string
|
from calibre.ebooks.metadata import authors_to_sort_string, authors_to_string
|
||||||
from calibre.constants import islinux
|
from calibre.constants import islinux
|
||||||
from calibre.ebooks.metadata import authors_to_string, authors_to_sort_string
|
|
||||||
|
|
||||||
DBPATH = 'Sony_Reader/database/books.db'
|
DBPATH = 'Sony_Reader/database/books.db'
|
||||||
THUMBPATH = 'Sony_Reader/database/cache/books/%s/thumbnail/main_thumbnail.jpg'
|
THUMBPATH = 'Sony_Reader/database/cache/books/%s/thumbnail/main_thumbnail.jpg'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user