# Path: tweetget/settings.py
# TWITTER_API_KEY = os.environ['TWITTER_API_KEY']
# TWITTER_API_SECRET = os.environ['TWITTER_API_SECRET']
# RATE_LIMIT = 1  # requests every 15 minutes, max is 450 for app twitter api
# RATE_LIMIT_WINDOW = 900  # 15 minutes * 60
# DATA_PATH = './data'
# QUERIES = ['python -monty', '#sarcasm', '#happy', '#sad']
# 
# Path: tweetget/core.py
# def process_argv(argv):
#     queries = QUERIES
#     if len(argv) > 1:
#         if '--verbose' in argv[1:]:
#             argv = [a for a in argv if a != '--verbose']
#             verbosity = 1
#         queries = argv[1:]
#     return queries, verbosity


from builtins import str
from twython import Twython
from .settings import DATA_PATH, TWITTER_API_KEY, TWITTER_API_SECRET, TWEETS_PER_REQUEST
from .core import process_argv
import json
import os
import datetime
import gzip
import sys
# -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function




def get_twitter():
    twitter = Twython(TWITTER_API_KEY, TWITTER_API_SECRET, oauth_version=2)

# Path: tweetget/settings.py
# TWITTER_API_KEY = os.environ['TWITTER_API_KEY']
# TWITTER_API_SECRET = os.environ['TWITTER_API_SECRET']
# RATE_LIMIT = 1  # requests every 15 minutes, max is 450 for app twitter api
# RATE_LIMIT_WINDOW = 900  # 15 minutes * 60
# DATA_PATH = './data'
# QUERIES = ['python -monty', '#sarcasm', '#happy', '#sad']
# 
# Path: tweetget/core.py
# def process_argv(argv):
#     queries = QUERIES
#     if len(argv) > 1:
#         if '--verbose' in argv[1:]:
#             argv = [a for a in argv if a != '--verbose']
#             verbosity = 1
#         queries = argv[1:]
#     return queries, verbosity


# Path: tweetget/single.py
from builtins import str
from twython import Twython
from .settings import DATA_PATH, TWITTER_API_KEY, TWITTER_API_SECRET, TWEETS_PER_REQUEST
from .core import process_argv
import json
import os
import datetime
import gzip
import sys

# -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function




def get_twitter():
    twitter = Twython(TWITTER_API_KEY, TWITTER_API_SECRET, oauth_version=2)

    return Twython(TWITTER_API_KEY, access_token=twitter.obtain_access_token())