12-16-2011, 05:27 PM | #16 |
Connoisseur
Posts: 65
Karma: 4640
Join Date: Aug 2011
Device: kindle
|
Quick fix. Let me know if there are any problems.
|
12-16-2011, 05:51 PM | #17 |
Connoisseur
Posts: 65
Karma: 4640
Join Date: Aug 2011
Device: kindle
|
Just noticed that they changed the star rating to a decimal, so I changed to code a little to accommodate this.
|
Advert | |
|
12-17-2011, 07:42 AM | #18 |
Connoisseur
Posts: 50
Karma: 10
Join Date: Dec 2008
Location: Scotland
Device: Kindle DX, Kindle. iPad 3
|
|
12-23-2011, 03:26 PM | #19 |
onlinenewsreader.net
Posts: 324
Karma: 10143
Join Date: Dec 2009
Location: Phoenix, AZ & Victoria, BC
Device: Kindle 3, Kindle Fire, IPad3, iPhone4, Playbook, HTC Inspire
|
If you don't like the ragged-right edge you can get justified formatting by adding the following lines to postprocess_html
Code:
for ptag in soup.findAll('p',attrs={'align':'left'}): del(ptag['align']) |
05-28-2012, 07:57 PM | #20 |
Connoisseur
Posts: 65
Karma: 4640
Join Date: Aug 2011
Device: kindle
|
Got rid of the "suggested topics" that appeared before news stories and added nickredding's suggestion (thanks).
|
Advert | |
|
06-08-2012, 03:25 PM | #21 |
Connoisseur
Posts: 65
Karma: 4640
Join Date: Aug 2011
Device: kindle
|
Just updated the recipe to add support for the new style galleries (articles with the view gallery link). You can set MAX_GALLERY_IMAGES to control how many are fetched - default is download them all.
|
12-14-2012, 10:06 AM | #22 |
Connoisseur
Posts: 65
Karma: 4640
Join Date: Aug 2011
Device: kindle
|
> Fixed some styling issuses due to change in html markup.
> Fixed a few issues with 'voices' articles (http://www.independent.co.uk/voices) which have a slightly different layout |
12-14-2012, 12:01 PM | #23 |
Connoisseur
Posts: 65
Karma: 4640
Join Date: Aug 2011
Device: kindle
|
Turns out I hadn't finished tweaking :
> Added voices rss feed (this replaces opinions) > Tweaked css for Voices->'IV Drip' articles (which use a slightly different layout again) |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Updated recipe] Ming Pao (明報) - Hong Kong (2011/10/21) | tylau0 | Recipes | 0 | 10-21-2011 11:38 AM |
[Updated recipe] Ming Pao (明報) - Hong Kong (2011/09/21) | tylau0 | Recipes | 0 | 09-21-2011 07:13 AM |
[Updated recipe] Ming Pao (明報) - Hong Kong (2011/09/20) | tylau0 | Recipes | 1 | 09-20-2011 06:56 PM |
[Updated recipe] Ming Pao (明報) - Hong Kong (2011/06/26) | tylau0 | Recipes | 3 | 06-28-2011 12:17 PM |
Updated Recipe: Ming Pao - Hong Kong (2011/03/08) | tylau0 | Recipes | 0 | 03-08-2011 07:25 PM |