Sfoglia il codice sorgente

show retweets: RT xxxx

master
cquest 7 anni fa
parent
commit
ecbbf79a9a
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. +2
    -1
      tootbot.py

+ 2
- 1
tootbot.py Vedi File

@@ -70,9 +70,10 @@ for t in reversed(d.entries):
print("ERROR: First Login Failed!")
sys.exit(1)


#h = BeautifulSoup(t.summary_detail.value, "html.parser")
c = t.title
if t.author != '(%s)' % twitter:
c = ("RT %s\n" % t.author[1:-1]) + c
toot_media = []
# get the pictures...
for p in re.finditer(r"https://pbs.twimg.com/[^ \xa0\"]*", t.summary):


Caricamento…
Annulla
Salva