Skip to content

Instantly share code, notes, and snippets.

require 'yaml'
require 'twitter'
#OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE
CONFIG_FILE = File.dirname(__FILE__) + "/config.yaml"
config_data = YAML.load_file(CONFIG_FILE)
stream_client = Twitter::Streaming::Client.new do |config|
config.consumer_key = config_data['consumer_key']