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 12-31-2012, 09:32 AM   #1
gianfri
Connoisseur
gianfri has a spectacular aura aboutgianfri has a spectacular aura aboutgianfri has a spectacular aura aboutgianfri has a spectacular aura aboutgianfri has a spectacular aura aboutgianfri has a spectacular aura aboutgianfri has a spectacular aura aboutgianfri has a spectacular aura aboutgianfri has a spectacular aura aboutgianfri has a spectacular aura aboutgianfri has a spectacular aura about
 
Posts: 59
Karma: 4212
Join Date: Feb 2010
Device: Sony
New York Times - adding most emailed?

Is there a way to add the most emailed section to the recipe? It is included in the purchased electronic edition of the newspaper and I find it interesting.

Thanks to all of you who support this and other recipes!

Gianfranco
gianfri is offline   Reply With Quote
Old 12-31-2012, 05:03 PM   #2
nickredding
onlinenewsreader.net
nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'
 
Posts: 324
Karma: 10143
Join Date: Dec 2009
Location: Phoenix, AZ & Victoria, BC
Device: Kindle 3, Kindle Fire, IPad3, iPhone4, Playbook, HTC Inspire
Great idea!

I have revised the standard recipe (attached) to include both "Most E-Mailed" and "Most Viewed" as separate sections by default. You can suppress these two sections by customizing the recipe with getPopularArticles=False.

The NYT gives you the 20 most e-mailed/viewed. The recipe won't necessarily give you all of them because articles with "video" or "interactive" or similar are omitted (since they result in empty articles).

If you are really picky you can change the interval over which popularity is measured (by default it's over the last 24 hours). If you set popularPeriod = '7' it will select the most e-mailed/viewed over the last week. Likewise popularPeriod = '30' measures over a month. You still won't get more than 20 articles, just possibly different ones depending on the time interval that popularity is measured over.

I have also improved the recipe to not follow links to NYT index pages when recursions=1 (and you are getting related articles and inline links to other NYT articles). This speeds up the recipe quite a bit, especially on Sunday when Today's Paper is quite large.
Attached Files
File Type: zip nytimes.zip (12.1 KB, 100 views)
nickredding is offline   Reply With Quote
Advert
Old 01-01-2013, 09:55 AM   #3
gianfri
Connoisseur
gianfri has a spectacular aura aboutgianfri has a spectacular aura aboutgianfri has a spectacular aura aboutgianfri has a spectacular aura aboutgianfri has a spectacular aura aboutgianfri has a spectacular aura aboutgianfri has a spectacular aura aboutgianfri has a spectacular aura aboutgianfri has a spectacular aura aboutgianfri has a spectacular aura aboutgianfri has a spectacular aura about
 
Posts: 59
Karma: 4212
Join Date: Feb 2010
Device: Sony
Thank you so much! This is why I love this community!!
gianfri is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Which New York Times recipe? jdomingos76 Recipes 1 03-25-2011 08:40 PM
New York Times Error in .6.23 geneaber Calibre 0 11-14-2009 12:27 PM
New York Times review: K2 akira28 Amazon Kindle 32 02-28-2009 02:23 PM
New York times about Kindle 2 Kris777 News 12 02-18-2009 08:51 AM
New York Times on 505 Hamza Sony Reader 21 03-03-2008 12:55 PM


All times are GMT -4. The time now is 01:43 AM.


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