|
|
Thread Tools | Search this Thread |
11-01-2021, 03:16 AM | #1 |
Evangelist
Posts: 442
Karma: 82686
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' |
11-01-2021, 03:32 AM | #2 |
creator of calibre
Posts: 43,839
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
That's because the published date is in an invalid format.
|
11-01-2021, 03:54 AM | #3 |
Evangelist
Posts: 442
Karma: 82686
Join Date: May 2021
Device: kindle
|
|
11-01-2021, 05:25 AM | #4 |
creator of calibre
Posts: 43,839
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
11-02-2021, 01:11 AM | #5 |
Evangelist
Posts: 442
Karma: 82686
Join Date: May 2021
Device: kindle
|
Does this mean it'll work after the next update and not in the present version? |
11-02-2021, 05:06 AM | #6 |
creator of calibre
Posts: 43,839
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
yes these are changes to calibre not the recipe.
|
Thread Tools | Search this Thread |
|
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 02:50 AM |
Yikes: "this article was downloaded by calibre" after every article | sheygetz | Calibre | 11 | 05-29-2015 02:56 AM |
oldest_article not working, all RSS items downloaded instead | khromov | Recipes | 3 | 07-09-2012 05:07 PM |
This article was downloaded by calibre from | Agama | Recipes | 0 | 02-16-2012 02:32 PM |
adding some text to downloaded article | dabal | Recipes | 3 | 05-03-2011 11:24 AM |