mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
update the recipe tags
Changes to be committed: modified: hurriyet.recipe
This commit is contained in:
parent
d851c81b8c
commit
d42d8b95cc
@ -7,7 +7,7 @@
|
|||||||
# Copyright: Copyright 2015 Adrian Tennessee
|
# Copyright: Copyright 2015 Adrian Tennessee
|
||||||
##
|
##
|
||||||
# Written: 2015-07-11
|
# Written: 2015-07-11
|
||||||
# Last Edited: 2016-07-08
|
# Last Edited: 2024-08-30
|
||||||
##
|
##
|
||||||
|
|
||||||
from calibre.web.feeds.news import BasicNewsRecipe
|
from calibre.web.feeds.news import BasicNewsRecipe
|
||||||
@ -35,34 +35,33 @@ class Hurriyet(BasicNewsRecipe):
|
|||||||
compress_news_images = True
|
compress_news_images = True
|
||||||
|
|
||||||
# some mild formatting
|
# some mild formatting
|
||||||
extra_css = """.news-image { clear: left; }
|
extra_css = """.news-media { clear: left; }
|
||||||
.news-detail-title { clear:left; }
|
.news-detail-title { clear:left; }"""
|
||||||
.col-md-7 { font-size:small; }
|
|
||||||
.news-detail-spot { font-style:italic; font-size:smaller }"""
|
|
||||||
|
|
||||||
keep_only_tags = [
|
keep_only_tags = [
|
||||||
# title
|
# title
|
||||||
{'class': 'news-detail-title selectionShareable'},
|
{'class': 'news-detail-title'},
|
||||||
# date
|
# date
|
||||||
{'class': 'col-md-7 text-right'},
|
{'class': 'news-detail-text'},
|
||||||
# image
|
# media
|
||||||
{'class': 'news-image'},
|
{'class': 'news-media'},
|
||||||
# detail
|
# brief content
|
||||||
{'class': 'news-detail-spot'},
|
{'class': 'news-content__inf'},
|
||||||
# text
|
# main content
|
||||||
{'class': 'news-box'},
|
{'class': 'news-content readingTime'},
|
||||||
]
|
]
|
||||||
|
|
||||||
feeds = [
|
feeds = [
|
||||||
(u'Anasayfa', u'http://www.hurriyet.com.tr/rss/anasayfa'),
|
(u'Anasayfa', 'https://www.hurriyet.com.tr/rss/anasayfa'),
|
||||||
(u'Gündem', u' http://www.hurriyet.com.tr/rss/gundem'),
|
(u'Gündem', 'https://www.hurriyet.com.tr/rss/gundem'),
|
||||||
(u'Ekonomi', u'http://www.hurriyet.com.tr/rss/ekonomi'),
|
(u'Ekonomi', 'https://www.hurriyet.com.tr/rss/ekonomi'),
|
||||||
(u'Magazin', u'http://www.hurriyet.com.tr/rss/magazin'),
|
(u'Magazin', 'https://www.hurriyet.com.tr/rss/magazin'),
|
||||||
(u'Spor', u'http://www.hurriyet.com.tr/rss/spor'),
|
(u'Spor', 'https://www.hurriyet.com.tr/rss/spor'),
|
||||||
(u'Planet', u'http://www.hurriyet.com.tr/rss/dunya'),
|
(u'Planet', 'https://www.hurriyet.com.tr/rss/dunya'),
|
||||||
(u'Teknoloji', u'http://www.hurriyet.com.tr/rss/teknoloji'),
|
(u'Teknoloji', 'https://www.hurriyet.com.tr/rss/teknoloji'),
|
||||||
(u'Sağlık', u'http://www.hurriyet.com.tr/rss/saglik'),
|
(u'Sağlık', 'https://www.hurriyet.com.tr/rss/saglik'),
|
||||||
(u'Astroloji', u'http://www.hurriyet.com.tr/rss/astroloji'),
|
(u'Astroloji', 'https://www.hurriyet.com.tr/rss/astroloji'),
|
||||||
(u'Ankara', u'http://www.hurriyet.com.tr/rss/ankara'),
|
(u'Ankara', 'https://www.hurriyet.com.tr/rss/ankara'),
|
||||||
(u'Ege', u'http://www.hurriyet.com.tr/rss/ege')
|
(u'Ege', 'https://www.hurriyet.com.tr/rss/ege')
|
||||||
]
|
]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user