View Single Post
Old 08-13-2010, 06:29 PM   #2436
jordanmills
Junior Member
jordanmills began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Aug 2010
Device: nook
Can anyone make a recipe for texasmonthly.com? It's kind of convoluted...

It might be subscriber only so I'll post some examples.

RSS feed:
http://feeds.feedburner.com/texasmonthlycurrent

example article url:
http://feedproxy.google.com/~r/texas...Q/webextra.php

The article URL is always in the form of "http://feedproxy.google.com/~r/texasmonthlycurrent/~3/" + randomkey + "/" + pagename

article url directs to:
http://www.texasmonthly.com/2010-08-...as+Monthly%29#

Everything after the ? can be ignored, so it's in the form of:
"http://www.texasmonthly.com/" + currentyear + "-" + currentmonth + "-01" + "/" + pagename

example print view url:
http://www.texasmonthly.com/cms/prin...sue=2010-08-01

That's always in the form of
"http://www.texasmonthly.com/cms/printthis.php?file=" + pagename + "&issue=" + currentyear + "-" + currentmonth + "-01"


The names and number of pages may vary so it has to be pulled from the RSS feed in realtime. I assume printthis.php can pull anything from the past, but we're only worried about current articles so we can use the current year and month. Everything publishes on the first, os the day is always 01. The logic seems simple enough, I just don't know enough about the coding to implement it.

Last edited by jordanmills; 08-13-2010 at 06:31 PM.
jordanmills is offline