from userio import * import requests import re from requests_html import HTML from requests_html import HTMLSession def articleImage(content): articleImgBegin ="\n" pageContent += "\n" pageContent += "\n" pageContent += "\n" pageContent += "\n" pageContent += "\n" pageContent += "\n" article_only+=article.html lenBefore=len(article_only) say("LengthBefore: "+str(lenBefore)) article_only = re.sub(r"", '', article_only) article_only = re.sub(r"", '', article_only) article_only = re.sub(r"", '', article_only) #article_only = re.sub(r"
Advertisement
",'',article_only) #article_only = re.sub(r"",'',article_only) #article_only = re.sub(r"",'',article_only,flags=re.M|re.S) article_only = re.sub(r"",'',article_only,flags=re.M|re.S) article_only = re.sub(r"
(.+?)
",'',article_only,flags=re.M|re.S) article_only = re.sub(r"
",'
',article_only) article_only = re.sub(r"