|
|||||||
![]() |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 646
Karma: 85520
Join Date: May 2021
Device: kindle
|
every article is downloaded from an rss link instead of only today's!
This is live-mint recipe from calibre
Every article present in the rss links of this recipe gets downloaded instead of ignoring previous dates, even though the oldest article is set to 1 day. this is from https://www.livemint.com/rss/opinion even though the <pubDate>Thu, 28 Oct 2021 22:18:15+5:30 </pubDate> is old it gets downloaded as today's. Images also don't get downloaded even though image link is given. Code:
<item> <title> Coal's deadly grip over development is coming to an end </title> <link> https://www.livemint.com/opinion/columns/people-may-now-be-ready-for-a-renewable-revolution-11635439494131.html </link> <description> Incomes in large swathes of UP depend on power supply disrupted by coal shortages while coal-fired electricity generation loses economic viability in our clean-energy shift. </description> <pubDate>Thu, 28 Oct 2021 22:18:15+5:30 </pubDate> <guid>11635439494131</guid> <media:content height="900" medium="image" url="https://images.livemint.com/img/2021/10/28/1600x900/08526396-22d7-11ec-9efd-3aa1f7245a3d_1633178819103_1635439609948.jpg" width="1600"/> </item> Code:
#update links from https://www.livemint.com/static/rss
from calibre.web.feeds.news import BasicNewsRecipe
class LiveMint(BasicNewsRecipe):
title = u'Live Mint'
language = 'en_IN'
__author__ = 'Krittika Goyal'
oldest_article = 1 # days
max_articles_per_feed = 50
use_embedded_content = False
no_stylesheets = True
auto_cleanup = True
feeds = [
('Companies',
'http://www.livemint.com/rss/companies'),
('Opinion',
'http://www.livemint.com/rss/opinion'),
('Money',
'http://www.livemint.com/rss/money'),
('Politics',
'http://www.livemint.com/rss/politics'),
('Science',
'http://www.livemint.com/rss/science'),
('Industry',
'http://www.livemint.com/rss/industry'),
('Lounge',
'http://www.livemint.com/rss/lounge'),
('Education',
'http://www.livemint.com/rss/education'),
('Sports',
'http://www.livemint.com/rss/sports'),
('Technology',
'http://www.livemint.com/rss/technology'),
('News',
'http://www.livemint.com/rss/news'),
('Mutual Funds',
'http://www.livemint.com/rss/Mutual Funds'),
('Markets',
'http://www.livemint.com/rss/markets'),
('AI',
'http://www.livemint.com/rss/AI'),
('Insurance',
'http://www.livemint.com/rss/insurance'),
('Budget',
'http://www.livemint.com/rss/butget'),
('Elections',
'http://www.livemint.com/rss/elections'),
]
calibre_most_common_ua = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.87 Safari/537.36'
|
|
|
|
|
|
#2 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,706
Karma: 28549304
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
That's because the published date is in an invalid format.
|
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 646
Karma: 85520
Join Date: May 2021
Device: kindle
|
|
|
|
|
|
|
#4 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,706
Karma: 28549304
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
|
|
|
|
|
#5 |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 646
Karma: 85520
Join Date: May 2021
Device: kindle
|
![]() Does this mean it'll work after the next update and not in the present version? |
|
|
|
| Advert | |
|
|
|
|
#6 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,706
Karma: 28549304
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
yes these are changes to calibre not the recipe.
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Article link is hyperlinked into the text of every article of an RSS feed.. | unkn0wn | Recipes | 3 | 09-10-2021 03:50 AM |
| Yikes: "this article was downloaded by calibre" after every article | sheygetz | Calibre | 11 | 05-29-2015 03:56 AM |
| oldest_article not working, all RSS items downloaded instead | khromov | Recipes | 3 | 07-09-2012 06:07 PM |
| This article was downloaded by calibre from | Agama | Recipes | 0 | 02-16-2012 03:32 PM |
| adding some text to downloaded article | dabal | Recipes | 3 | 05-03-2011 12:24 PM |