![]() |
#1 |
Big Poppa
![]() Posts: 110
Karma: 10
Join Date: Jul 2010
Device: Nook
|
Fixing Sunday Times UK - ToC creation
Hi Kovid and all -
The Sunday Times and Times UK have done a rather large relaunch of their site, breaking the existing recipes. I'd like to update the recipe and I've gotten it working now with the exception of the headings. The new site uses # anchors to define the sections. Beautiful Soup doesn't use them properly so using the index/#section functionality doesn't allow me to chop up the sections. I can parse out the sections via regexp possibly but how would I be able to recreate the section headers for the Table of Contents? Optimally I'd like to define a regexp for each section title and use that to group the articles appropriately. Any pointer to another similar recipe with this kind of workflow would be appreciated. From poking around it seems the Atlantic is somewhat close? Thanks Last edited by bobbysteel; 01-01-2017 at 11:43 AM. |
![]() |
![]() |
![]() |
#2 |
Big Poppa
![]() Posts: 110
Karma: 10
Join Date: Jul 2010
Device: Nook
|
ok i fixed this now. submitting a PR. note that they've now unified the sites so Times and Sunday Times are really the same thing and there's no reason to separate them anymore.
|
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Request: Sunday Times | us06154 | Recipes | 0 | 07-13-2012 03:44 AM |
TOC Creation | taraboom11 | Conversion | 7 | 02-08-2011 12:40 AM |
Interesting listing in Sunday Times Culture Magazine for pricing | suecsi | General Discussions | 0 | 01-04-2011 08:23 AM |
NY Times Sunday Magazine ? | MichaelMSeattle | Recipes | 2 | 11-18-2010 02:49 PM |
The Sunday Times:Google makes a grab for e-books | Kris777 | News | 8 | 03-29-2009 01:18 PM |