Browse Source

add HTML escaping on text provided by tweepy

master
Tuxicoman 2 years ago
parent
commit
1b7a3d7658
  1. 4
      twitter2mastodon.py

4
twitter2mastodon.py

@ -19,7 +19,7 @@ import argparse
from getpass import getpass
import mimetypes
import urllib.request
import html
def register():
"""Generate config file"""
@ -151,7 +151,7 @@ def post(config_file_path,dry_run=False):
continue
#Get full text
text = tweet.full_text
text = html.unescape(tweet.full_text)
#Get medias urls
imgs = []

Loading…
Cancel
Save