Python script developed under the Social Media Analytics course project where we have to colect data from twitter for further text and sentiment analysis.
pip install python-twitter
pib install pandas Put your own twitter consumer and access token keys in the following code
CONSUMER_KEY = 'xxxxxxxxxxxxx'
CONSUMER_SECRET = 'xxxxxxxxxxxxxxxx'
ACCESS_TOKEN = 'xxxxxxxxxxxxxxxxxx'
ACCESS_TOKEN_SECRET = 'xxxxxxxxxxxxxxx'Replace the searching words
def main():
search('WorldCup+2018')Execute the script
python3 sma-tw.py