Twitter Intelligence
A project written in Python to twitter tracking and analysis without using Twitter API.
Prerequisites
- This project is a Python 3.x application.
- The package dependencies are in the file requirements.txt. Run that command to install the dependencies.
pip3 install -r requirements.txt
Database
- SQLite is used as the database.
- Tweet data are stored on the Tweet, User, Location, Hashtag, HashtagTweet tables.
- The database is created automically.
Usage Example
Application work view:
- Get help
python3 tracking.py -h
python3 tracking.py --username "HaberSau"
python3 tracking.py --query "sakarya"
python3 tracking.py --username "HaberSau" --since 2015-09-10 --until 2015-09-12 --maxtweets 10
python3 tracking.py --query "sakarya" --location "True"
Analysis
analysis.py performs analysis processing. User, hashtag and location analyzes are performed.
python3 analysis.py -h
python3 analysis py --location
location analysis runs through address http://localhost:5000/locations
You must write Google Map Api Key in setting.py to display google map.
GOOGLE_MAP_API_KEY='YOUR_GOOGLE_MAP_API_KEY'
python3 analysis.py --hashtag
python3 analysis.py --user
Graphical User Interface
socialgui.py used for gui application