View Single Post
Old 02-28-2011, 09:37 AM   #8
rylsfan
Member
rylsfan began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Feb 2010
Device: Kindle2
One nice thing about this paper is it is (for now) easy to figure out the printable version from the website.

Here is an article's url:
...business/local/article_084a9798-8890-557d-b091-37a611b9337e.html

Here is the printable version of that same article:
.../business/local/article_084a9798-8890-557d-b091-37a611b9337e.html?print=1

The only difference between the two is the second url appends '?print=1' to the end of the article.

You can call print_version and get an easily readable format that way:

def print_version(self, url):
return url.replace('.html', '.html?print=1')

It's no silver bullet. The printable version so far as I can tell does not copy graphics. It is readable though so that's something.
Attached Files
File Type: zip HeraldReview.zip (6.3 KB, 168 views)
rylsfan is offline   Reply With Quote