Browse Source

show retweets: RT xxxx

master
cquest 7 years ago
parent
commit
ecbbf79a9a
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      tootbot.py

+ 2
- 1
tootbot.py View File

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



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


Loading…
Cancel
Save