Skip to content

Python script developed under the Social Media Analytics course project where we have to colect data from twitter for further text and sentiment analysis.

Notifications You must be signed in to change notification settings

paulocbranco/sma-tw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Script for search tweets in Twitter

Python script developed under the Social Media Analytics course project where we have to colect data from twitter for further text and sentiment analysis.

Required libraries

pip install python-twitter
pib install pandas 

How to use

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

About

Python script developed under the Social Media Analytics course project where we have to colect data from twitter for further text and sentiment analysis.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages