![]() |
#1 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 615
Karma: 85520
Join Date: May 2021
Device: kindle
|
Update India Today
from website
the rss feeds that are there presently have been hard to find and not all sections are there. Editor's Note section appears somewhere in the middle of the section list instead of being at the top of sections. Can this be changed to appear at the top? |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,311
Karma: 27111242
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Simply sort the feeds moving the one you want to the top before returning them from parse_index.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 615
Karma: 85520
Join Date: May 2021
Device: kindle
|
I tried but couldn't.
I made an error in title name, ignored the 'z' in Magazine. |
![]() |
![]() |
![]() |
#4 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 615
Karma: 85520
Join Date: May 2021
Device: kindle
|
with help from other recipes
|
![]() |
![]() |
![]() |
#5 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 615
Karma: 85520
Join Date: May 2021
Device: kindle
|
https://github.com/kovidgoyal/calibr...d8809f064c3115
replace line 61 feedSort = ['EDITOR\'S NOTE', 'Cover Story', 'The Big Story', 'Upfront', 'NATION', 'INTERVIEW'] with feedSort = ['EDITOR\'S NOTE'] getting error if a section got skipped from the list. Last edited by unkn0wn; 05-28-2022 at 06:34 AM. |
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 615
Karma: 85520
Join Date: May 2021
Device: kindle
|
Quote:
|
|
![]() |
![]() |
![]() |
#7 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,311
Karma: 27111242
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
![]() |
![]() |
![]() |
#8 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 615
Karma: 85520
Join Date: May 2021
Device: kindle
|
some changes
|
![]() |
![]() |
![]() |
#9 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 615
Karma: 85520
Join Date: May 2021
Device: kindle
|
addl changes
https://github.com/kovidgoyal/calibr...a_today.recipe
remove line 12 and add it to 19 extra_css .. it repeated. add below after line 65 Code:
try: desc = self.tag_to_string(a.findParent( 'span', attrs={'class':'field-content'}).findNext( 'div', attrs={'class':'views-field'})).strip() except Exception: desc = self.tag_to_string(a.findParent( ('h3','p')).findNext('span', attrs={'class':'kicket-text'})).strip() if not url or not title: continue self.log('\t', title) self.log('\t', desc) self.log('\t\t', url) sections[section].append({'title': title, 'url': url, 'description':desc}) Code:
for h2 in soup.findAll('h2'): h2.name = 'h5' add 'ie-premium' to remove_tags_classes and remove lines 108-110 and replace with Code:
for h2 in soup.findAll('h2'): h2.name = 'h5' |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Can anyone do 'The Week' and 'India Today' WeeklyMagazine recipes. No login required. | unkn0wn | Recipes | 0 | 06-11-2021 05:39 AM |
Caravan Magazine India Error In The New Update | abhix3 | Recipes | 2 | 07-18-2020 10:43 PM |
Recipe for hindustan times and India Today | agbpatro | Recipes | 1 | 09-11-2011 05:02 PM |
Update today -- anyone know what it's about? | Last_of_the_PEs | enTourage eDGe | 4 | 05-29-2011 11:08 PM |