twitter-scraper
twitter-scraper copied to clipboard
DeprecationWarning: invalid escape sequence \g
There are still invalid escape sequences in tweets.py, that could raise errors in a future Python version:
twitter_scraper/modules/tweets.py:161: DeprecationWarning: invalid escape sequence \g tweet["text"] = re.sub(r"(\S)http", "\g<1> http", tweet["text"], 1)
twitter_scraper/modules/tweets.py:163: DeprecationWarning: invalid escape sequence \g r"(\S)pic.twitter", "\g<1> pic.twitter", tweet["text"], 1