Commit c370e77d authored by Francesco Poldi's avatar Francesco Poldi

Evaluate tweets only if it makes sense #321

parent 41fd78fe
...@@ -83,12 +83,14 @@ def _output(obj, output, config, **extra): ...@@ -83,12 +83,14 @@ def _output(obj, output, config, **extra):
async def checkData(tweet, location, config, conn): async def checkData(tweet, location, config, conn):
usernames = [] usernames = []
user_ids = set()
global _duplicate_dict
copyright = tweet.find("div", "StreamItemContent--withheld") copyright = tweet.find("div", "StreamItemContent--withheld")
if copyright is None and is_tweet(tweet): if copyright is None and is_tweet(tweet):
tweet = Tweet(tweet, location, config) tweet = Tweet(tweet, location, config)
if not tweet.datestamp:
print("[x] Hidden tweet found, account suspended due to violation of TOS")
return
if datecheck(tweet.datestamp, config): if datecheck(tweet.datestamp, config):
output = format.Tweet(config, tweet) output = format.Tweet(config, tweet)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment