mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Merge branch 'master' of https://github.com/unkn0w7n/calibre
This commit is contained in:
commit
c5a9ce6bfc
@ -73,11 +73,12 @@ class MoneyControlRecipe(BasicNewsRecipe):
|
|||||||
'personal-finance', 'commodities', 'trade', 'companies'
|
'personal-finance', 'commodities', 'trade', 'companies'
|
||||||
]
|
]
|
||||||
|
|
||||||
|
a = 'https://news.google.com/rss/search?q=when:{}h+allinurl:{}{}&hl=en-IN&gl=IN&ceid=IN:en'
|
||||||
|
|
||||||
for sec in business_sections:
|
for sec in business_sections:
|
||||||
allinurl_a = index + 'news/business'
|
allinurl_a = index + 'news/business'
|
||||||
a = 'https://news.google.com/rss/search?q=when:{}h+allinurl:{}{}&hl=en-IN&gl=IN&ceid=IN:en'
|
|
||||||
feeds.append((sec.capitalize(), a.format(when, quote(allinurl_a, safe=''), '%2F' + sec + '%2F')))
|
feeds.append((sec.capitalize(), a.format(when, quote(allinurl_a, safe=''), '%2F' + sec + '%2F')))
|
||||||
feeds.append(('Business' , a.format(str(when), quote(allinurl_a, safe=''), '')))
|
feeds.append(('Business' , a.format(when, quote(allinurl_a, safe=''), '')))
|
||||||
|
|
||||||
news_sections = [
|
news_sections = [
|
||||||
'india', 'world', 'opinion', 'politics', 'technology', 'trends', 'lifestyle'
|
'india', 'world', 'opinion', 'politics', 'technology', 'trends', 'lifestyle'
|
||||||
@ -85,11 +86,10 @@ class MoneyControlRecipe(BasicNewsRecipe):
|
|||||||
|
|
||||||
for sec in news_sections:
|
for sec in news_sections:
|
||||||
allinurl_b = index + 'news'
|
allinurl_b = index + 'news'
|
||||||
b = 'https://news.google.com/rss/search?q=when:{}h+allinurl:{}{}&hl=en-IN&gl=IN&ceid=IN:en'
|
feeds.append((sec.capitalize(), a.format(when, quote(allinurl_b, safe=''), '%2F' + sec + '%2F')))
|
||||||
feeds.append((sec.capitalize(), a.format(str(when), quote(allinurl_b, safe=''), '%2F' + sec + '%2F')))
|
feeds.append(('News', a.format(when, quote(allinurl_b, safe=''), '')))
|
||||||
feeds.append(('News', b.format(str(when), quote(allinurl_b, safe=''), '')))
|
|
||||||
feeds.append(
|
feeds.append(
|
||||||
('Others', 'https://news.google.com/rss/search?q=when:{}h+allinurl:{}&hl=en-IN&gl=IN&ceid=IN:en'.format(str(when), quote(index, safe='')))
|
('Others', 'https://news.google.com/rss/search?q=when:{}h+allinurl:{}&hl=en-IN&gl=IN&ceid=IN:en'.format(when, quote(index, safe='')))
|
||||||
)
|
)
|
||||||
|
|
||||||
def populate_article_metadata(self, article, soup, first):
|
def populate_article_metadata(self, article, soup, first):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user