Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Recipes

Notices

Reply
 
Thread Tools Search this Thread
Old 06-02-2020, 01:03 PM   #1
divinp
Junior Member
divinp began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jun 2020
Device: Kindle Paperwhite
Question The Hindu News Paper Receipe

I was using the builtin recipe for The Hindu newspaper, but there are few changes I feel that needs to be updated. I tried updating the source code but was not successful. So Kovid can you please help in implementing the below functionality:

1. In the omit list you have omitted news from all different states, and I tried to include 3 states of my liking. So I removed Karnataka, TamilNadu and Kerala from the omit list. And it worked and I started getting the news for that region.

But there is a catch in that: If a particular state is having news from 5 different districts, its only showing the news of first district shown, so rest of the district news are not shown. So kindly let me know what changes has to be done for this to work.

Thanks in Advance
--Divin
Attached Thumbnails
Click image for larger version

Name:	Kerala_calibre_only showing first district.JPG
Views:	165
Size:	68.7 KB
ID:	179655   Click image for larger version

Name:	Kerala_ThHindu Site showing all districts.JPG
Views:	161
Size:	47.7 KB
ID:	179656  
divinp is offline   Reply With Quote
Old 06-03-2020, 12:21 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,856
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
No idea, presumably you will need to find the URL for a page that lists the articles from the district of interest for you and add that to section_list in parse_index()
kovidgoyal is offline   Reply With Quote
Advert
Old 06-03-2020, 01:57 AM   #3
divinp
Junior Member
divinp began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jun 2020
Device: Kindle Paperwhite
Unhappy

Quote:
Originally Posted by kovidgoyal View Post
No idea, presumably you will need to find the URL for a page that lists the articles from the district of interest for you and add that to section_list in parse_index()
There is no separate URL for districts, but for states we have
https://www.thehindu.com/todays-pape...nal/tp-kerala/
https://www.thehindu.com/todays-pape.../tp-karnataka/

Can you please help me to achieve this.
divinp is offline   Reply With Quote
Old 06-03-2020, 02:05 AM   #4
divinp
Junior Member
divinp began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jun 2020
Device: Kindle Paperwhite
Unhappy

We don't have specific URL for districts, however we have for states:

https://www.thehindu.com/todays-pape...nal/tp-kerala/
https://www.thehindu.com/todays-pape.../tp-karnataka/

since I'm not much into coding, could anyone please help to achieve this
divinp is offline   Reply With Quote
Old 06-03-2020, 02:42 AM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,856
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
That should take care of it: https://github.com/kovidgoyal/calibr...58db4a289f80f7
kovidgoyal is offline   Reply With Quote
Advert
Old 06-03-2020, 03:19 AM   #6
divinp
Junior Member
divinp began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jun 2020
Device: Kindle Paperwhite
Smile

Thanks Kovid, that worked. I have one more suggestion :

1. To add today's date in the book title so that we can track it in Kindle easily.
divinp is offline   Reply With Quote
Old 06-03-2020, 04:22 AM   #7
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,856
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
the kindle shows you the date fo periodicals automatically, send it to the kindle with usb and you will see it.
kovidgoyal is offline   Reply With Quote
Old 06-03-2020, 05:00 AM   #8
divinp
Junior Member
divinp began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jun 2020
Device: Kindle Paperwhite
But I was using send to mail feature, in that its not showing date. So is there any workaround for that?
divinp is offline   Reply With Quote
Old 06-03-2020, 06:32 AM   #9
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,856
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Change your output profile to something other than kindle, then the date is added to the title automatically.
kovidgoyal is offline   Reply With Quote
Old 06-03-2020, 09:49 PM   #10
duluoz
Newsbeamer dev
duluoz can extract oil from cheeseduluoz can extract oil from cheeseduluoz can extract oil from cheeseduluoz can extract oil from cheeseduluoz can extract oil from cheeseduluoz can extract oil from cheeseduluoz can extract oil from cheeseduluoz can extract oil from cheese
 
Posts: 122
Karma: 1000
Join Date: Dec 2011
Device: Kindle Voyage
Quote:
Originally Posted by kovidgoyal View Post
Change your output profile to something other than kindle, then the date is added to the title automatically.
That's interesting. What else does the kindle output profile actually do?
duluoz is offline   Reply With Quote
Old 06-03-2020, 09:54 PM   #11
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,856
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
various things to the file internals to make them work witht he Kindle's "Periodical mode". Of course if you send the file via email/send to kindle, amazon destroys it be reformatting everything, since it wants you to buy your news through it.
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre News Source 'The Hindu' Recipe needs correction snji Recipes 12 10-05-2018 11:11 PM
Req for Adding H4 section to the hindu receipe vishnumvv Recipes 1 06-24-2017 09:53 PM
Receipe request: for abo-key e-paper customers for the austrian newspaper "DiePresse" newsfreak Recipes 0 07-11-2014 03:16 PM
New receipe: novinky.cz - czech news portal latal.tomas Recipes 2 04-30-2011 09:16 AM


All times are GMT -4. The time now is 01:34 PM.


MobileRead.com is a privately owned, operated and funded community.