This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import packages and config | |
from tweepy.streaming import StreamListener | |
from tweepy import OAuthHandler | |
from tweepy import Stream | |
from config import consumer_key, consumer_secret, access_token, access_token_secret | |
import datetime | |
import csv | |
# Takes tweets and a designated csv file and writes them to it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from tweepy.streaming import StreamListener | |
from tweepy import OAuthHandler | |
from tweepy import Stream | |
from config import consumer_key, consumer_secret, access_token, access_token_secret | |
import datetime | |
import csv | |
import sys |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import got3 as got | |
def get_tweets(start_date, end_date, team_name, location): | |
""" | |
Return tweets for an individual day, based on search criteria | |
""" | |
tweetCriteria = got.manager.TweetCriteria()\ | |
.setQuerySearch(team_name)\ | |
.setSince(start_date)\ | |
.setUntil(end_date)\ |