![]() |
#16 |
Member
![]() Posts: 18
Karma: 10
Join Date: Sep 2010
Device: Kindle 3 3G intl
|
Finally got the time to update the rule
Hi there ! Sorry for the lag, I finally got the time to update the Mediapart rule. It's an improved version that adds sections for 'Brèves', 'Links', etc.
The rule can be found here: https://github.com/AltGr/Calibre-fre...diapart.recipe Thanks Malah for being quicker ! Feel free to update if you have improvements on the rule. Full code: Spoiler:
|
![]() |
![]() |
![]() |
#17 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Jul 2013
Device: kindle 4
|
Very nice Metapioca, thanks.
|
![]() |
![]() |
Advert | |
|
![]() |
#18 |
Member
![]() Posts: 18
Karma: 10
Join Date: Sep 2010
Device: Kindle 3 3G intl
|
Just improved the rule on github: it could miss some articles.
Indeed, I already had the problem before when getting the date from the article links, so the fix was ready: it seems the date in the rss feed is the creation date (when the journalist started writing the article) instead of the publication date. So any article that took more than 2 days to write would be marked as too old and not included even if it was just published. So now I get all links, and download the article header to get the date before deciding if it is too old or not. A tiny bit slower but we won't miss important articles ! Code still at: https://github.com/AltGr/Calibre-fre...diapart.recipe |
![]() |
![]() |
![]() |
#19 |
Member
![]() Posts: 18
Karma: 10
Join Date: Sep 2010
Device: Kindle 3 3G intl
|
(I also get more pages for the "fil d'actus" because the number of them on the first page is very limited. 3 pages seemed enough, but the value can be changed)
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
This Site RULES! | Drezin | News | 3 | 12-31-2008 10:10 AM |
@page rules | mtravellerh | Calibre | 1 | 12-28-2008 05:01 PM |
Rules | Alexander Turcic | Flea Market | 0 | 05-13-2008 03:35 AM |