View Single Post
Old 03-13-2011, 09:47 PM   #4
grizliez
Junior Member
grizliez began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Mar 2011
Device: Nook
Just found the problem after searching further and following one of the ideas in the reusable code section. It was all about the links in certain stories. I used the code segment that converts links to text and now no more problems. Code reprinted here for the next person

Spoiler:

def preprocess_html(self, soup):
for alink in soup.findAll('a'):
if alink.string is not None:
tstr = alink.string
alink.replaceWith(tstr)
return soup
grizliez is offline   Reply With Quote