Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Recipes

Notices

Reply
 
Thread Tools Search this Thread
Old 12-31-2012, 10: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, 06: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: 320
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, 26 views)
nickredding is offline   Reply With Quote
Old 01-01-2013, 10: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

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 12:40 AM.


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