View Single Post
Old 07-08-2011, 09:15 AM   #4
joseelsegundo
Junior Member
joseelsegundo began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jul 2011
Device: Kindle
Looking at this further, I don't if it is possible to grab the King Features comics via WashingtonPost.com. The URL for each of the King comics is populated via javascript when the page is loaded in the browser. If you do a "View Source" you'll only see javascript where the img tag ought to be. Likewise with a "wget".

The problem is that Beautiful Soup can't find an IMG tag, and so the recipe fails .

As above I inspected the IMG url in Chrome, and did see the URL. So I tried just using that URL to get the comic. No dice. The web page at King Features requires that there be an allowed referring page.

So at this point I'm going to cut my losses and look for another way outside of washingtonpost.com.
joseelsegundo is offline   Reply With Quote