Adding ^^ removal
This commit is contained in:
parent
cfdc491ec8
commit
33a9d9b88a
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
@ -45,7 +45,7 @@ class Listener(StreamListener):
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
tweet = status.text
|
tweet = status.text
|
||||||
# recovery of the last "usable" word of the tweet
|
# recovery of the last "usable" word of the tweet
|
||||||
regex = r"https?:\/\/\S+| +?\?|\?| +?\!| ?\!|-|~|(?<=ui)i+|@\S+|\.+|(?<=na)a+(?<!n)|(?<=quoi)i+|(?<=no)o+(?<!n)|…"
|
regex = r"https?:\/\/\S+| +?\?|\?| +?\!| ?\!|-|~|(?<=ui)i+|@\S+|\.+|(?<=na)a+(?<!n)|(?<=quoi)i+|(?<=no)o+(?<!n)|…|\^+"
|
||||||
tweetText = sub(regex, "", tweet.lower())
|
tweetText = sub(regex, "", tweet.lower())
|
||||||
lastWord = tweetText.split()[-1:][0]
|
lastWord = tweetText.split()[-1:][0]
|
||||||
if keys["VERBOSE"]:
|
if keys["VERBOSE"]:
|
||||||
|
|
Reference in a new issue