From: Boris Daniel Martinez Millán Date: Tue, 9 Mar 2021 01:14:53 +0000 (-0500) Subject: beta -> master X-Git-Url: https://reisub.nsupdate.info/git/?p=telefricabot.git%2F.git;a=commitdiff_plain;h=14cc40f336bab1552344e692490b8ac57434a8de;ds=sidebyside beta -> master --- diff --git a/README.md b/README.md index 510e103..b708d28 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Telefricabot +#Telefricabot Es un proyecto hecho en python para utilizar telegram como cliente de friendica, nacio desde la idea de un diff --git a/api.py b/api.py index a330365..0b650b8 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('> _< span class=sr-only','')+'\n\n') except: break return out