Ejemplo n.º 1
0
    def getChapterText(self, url):
        soup = self._customized_fetch_url(url)
        storytext_div = soup.find('div', {'class': 'storytext'})

        if self.getConfig('strip_text_links'):
            for anchor in storytext_div('a', {'class': 'FAtxtL'}):
                navigable_string = BeautifulSoup.NavigableString(anchor.string)
                anchor.replaceWith(navigable_string)

        return self.utf8FromSoup(url, storytext_div)