crawl only mentions, no replies

This commit is contained in:
b3yond 2018-10-05 11:02:12 +02:00
parent dc8f51c632
commit 24598f0b87

View file

@ -50,6 +50,8 @@ class TwitterBot(Bot):
text = re.sub( text = re.sub(
"(?<=^|(?<=[^a-zA-Z0-9-_\.]))@([A-Za-z]+[A-Za-z0-9-_]+)", "(?<=^|(?<=[^a-zA-Z0-9-_\.]))@([A-Za-z]+[A-Za-z0-9-_]+)",
"", status.text) "", status.text)
username = api.me()
if username in status.text:
reports.append(report.Report(status.author.screen_name, reports.append(report.Report(status.author.screen_name,
self, self,
text, text,