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.
|