lib/twitterscraper/cli.rb in twitterscraper-ruby-0.6.0 vs lib/twitterscraper/cli.rb in twitterscraper-ruby-0.7.0

- old
+ new

@@ -13,18 +13,18 @@ def run print_help || return if print_help? print_version || return if print_version? - client = Twitterscraper::Client.new query_options = { start_date: options['start_date'], end_date: options['end_date'], lang: options['lang'], limit: options['limit'], threads: options['threads'], proxy: options['proxy'] } + client = Twitterscraper::Client.new tweets = client.query_tweets(options['query'], query_options) File.write(options['output'], generate_json(tweets)) end def generate_json(tweets)