def __init__(self, infile, indir, outfile, lang): self.user_ids = get_user_ids(infile) self.indir = indir self.outfile = outfile self.lang = lang self.n_users = 0 self.lang_users = []
def __init__(self, tweet_ids_file, infile, indir, outfile): self.tweet_ids = get_tweet_ids(tweet_ids_file) self.user_ids = get_user_ids(infile) self.indir = indir self.outfile = outfile self.retweet_ids = set() self.retweets = {}
def __init__(self, infile, indir, outfile, lang, month): self.user_ids = get_user_ids(infile) self.indir = indir self.outfile = outfile self.lang = lang self.month = month self.lang_str = '"lang": "{}"'.format(self.lang)
def __init__(self, infile, indir, outfile, month): self.user_ids = get_user_ids(infile) self.indir = indir self.outfile = outfile self.month = month self.n_trees = 0 self.n_quotes = 0 self.tweets = {}
def __init__(self, infile, user, outdir, errfile, min_utc, retweets, key_file, auth_file): super().__init__(rate_limit=900) if infile is not None: self.user_ids = get_user_ids(infile) elif user is not None: user_id = Users(key_file, auth_file).user2id(user) self.user_ids = [user_id] else: raise RuntimeError('Provide either --infile or --user.') self.outdir = outdir self.errfile = errfile self.retweets = retweets self.twitter = twython_from_key_and_auth(key_file, auth_file) self.min_id = utc2snowflake(min_utc) self.max_id = None self.iter = 0
def __init__(self, infile, outdir): self.user_ids = get_user_ids(infile) self.outdir = outdir
def __init__(self, infile, indir, outfile): self.user_ids = get_user_ids(infile) self.indir = indir self.outfile = outfile