Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def process_page(page):
wiki_document = wikiextractor.extract_document(page)
if not wiki_document: return
wiki_document = wiki_extractor.extract(wiki_document)
if not wiki_document: return
return wiki_document.__str__().encode('utf-8')
def process_page(page):
wiki_document = wikiextractor.extract_document(page)
if not wiki_document: return
wiki_document = wiki_extractor.extract(wiki_document)
if not wiki_document: return
return wiki_document.__str__().encode('utf-8')