Debian Codegraph @

recipes/tulsaworld.recipe

raw
1 # -*- mode: python -*-
2 # -*- coding: utf-8 -*-
3
4 __license__ = 'GPL v3'
5 __copyright__ = '2010-2017, Darko Miletic <darko.miletic at gmail.com>'
6 '''
7 tulsaworld.com
8 '''
9
10 from calibre.web.feeds.news import BasicNewsRecipe
11
12
13 class TulsaWorld(BasicNewsRecipe):
14 title = 'Tulsa World'
15 __author__ = 'Darko Miletic'
16 description = 'Find breaking news, local news, Oklahoma weather, sports, business, entertainment, lifestyle, opinion, government, movies, books, jobs, education, blogs, video & multimedia.' # noqa: E501
17 publisher = 'World Publishing Co.'
18 oldest_article = 2
19 max_articles_per_feed = 200
20 no_stylesheets = True
21 encoding = 'utf8'
22 use_embedded_content = False
23 language = 'en_US'
24 country = 'US'
25 auto_cleanup = True
26 remove_empty_feeds = True
27 masthead_url = (
28 'https://bloximages.newyork1.vip.townnews.com/tulsaworld.com/content/tncms/custom/image/cfd1ce2e-7ec7-11e7-b919-8754a2b60fa6.png?_dc=1502478231' # noqa: E501
29 )
30 extra_css = ' body{font-family: Arial,Verdana,sans-serif } img{margin-bottom: 0.4em} .articleHeadline{font-size: xx-large; font-weight: bold} .articleKicker{font-size: x-large; font-weight: bold} .articleByline,.articleDate{font-size: small} .leadp{font-size: 1.1em} ' # noqa: E501
31
32 conversion_options = {'comment': description, 'publisher': publisher, 'language': language}
33
34 feeds = [
35 ('News', 'http://www.tulsaworld.com/search/?f=rss&t=article&c=news&l=150&s=start_time&sd=desc'),
36 ('Business', 'http://www.tulsaworld.com/search/?f=rss&t=article&c=business&l=150&s=start_time&sd=desc'),
37 ('Opinion', 'http://www.tulsaworld.com/search/?f=rss&t=article&c=opinion&l=150&s=start_time&sd=desc'),
38 ]