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 11-06-2010, 09:17 AM   #1
Keios
Junior Member
Keios began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Nov 2010
Device: Kindle 3
The Daily Mail Newspaper

Hello all,

I have recently bought a kindle and really appreciate being able to read the daily mail on it however i miss having the comments being available to read since they are often very entertaining.

Can anyone add a piece of code to the recipe in order to potentially capture the comments from each article?

best wishes

Alex
Keios is offline   Reply With Quote
Old 11-06-2010, 11:34 AM   #2
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by Keios View Post
Can anyone add a piece of code to the recipe in order to potentially capture the comments from each article?
Try changing this:
Code:
    keep_only_tags = [dict(name='div', attrs={'id':'js-article-text'})]
to this:
Code:
    keep_only_tags = [dict(name='div', attrs={'id':['js-article-text','js-comments']})]
Starson17 is offline   Reply With Quote
Old 11-07-2010, 12:50 AM   #3
Keios
Junior Member
Keios began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Nov 2010
Device: Kindle 3
Hello Starson17,

That code works great and can now download the latest six comments for each article, would it be possible to tweak it slightly more to be able to view all the comments?

Thanks again!

best wishes,

Alex
Keios is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre recipe for daily Portuguese newspaper "Correio da Manhã" jmst Recipes 2 11-01-2010 01:01 PM
7 Day Free Trial Daily Mail Newspaper U.K. on 650. Joshseadog Sony Reader 0 10-12-2010 11:35 AM
Daily Austrian Newspaper "derStandard" as Ebook laborg Workshop 2 10-12-2010 08:48 AM
An Article on the Sony Reader in the Daily Mail M0zza News 9 09-02-2008 01:12 PM
Chinese newspaper Yantai Daily on iLiad yokos iRex 6 10-28-2006 02:21 AM


All times are GMT -4. The time now is 04:08 PM.


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