From 75769cb225b946badebfedaea725c10c0fd401ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Boris=20Daniel=20Martinez=20Mill=C3=A1n?= Date: Mon, 8 Mar 2021 15:36:36 -0500 Subject: [PATCH] html update --- api.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/api.py b/api.py index a330365..bc9d8a3 100644 --- a/api.py +++ b/api.py @@ -1,4 +1,4 @@ - +from html2text import html2text import requests,io,random,re ua = 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:60.0) Gecko/20100101' @@ -44,13 +44,9 @@ class FriendApi(): exp=re.findall('
.*
',texto) exp1=re.findall('"display/.*"',texto) out=[] - for i in re.findall('',texto): - texto=texto.replace(i,'') - for i in re.findall('.*',texto): - texto.replace(i,'') for i in range(0,limit): try: - out.append(exp[i].replace('','').replace('','').replace('
','').replace('
','')+'\n'+self.url+exp1[i].replace('"','').replace('>