View Single Post
Old 01-24-2010, 01:27 AM   #1257
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,897
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
Quote:
Originally Posted by kovidgoyal View Post
Code:
def postprocess_html(self, soup, first):
   for img in soup.findAll('img', src=True):
       if img['src'].startswith('http:'): img.extract()
Thank you I'll give it a go.

Update: I appended this post process onto the offending site recipe, but they corrected their page so I have to assume it works great. One thing for sure it isn't doing any harm.

Thanks again.

Last edited by DoctorOhh; 01-24-2010 at 05:38 AM.
DoctorOhh is offline