Twitter Intelligence: twitter tracking and analysis without using Twitter API
Twitter Intelligence
A project is written in Python to twitter tracking and analysis without using Twitter API.
Database
- SQLite is used as the database.
- Tweet data are stored on the Tweet, User, Location, Hashtag, HashtagTweet tables.
- The database is created automatically.
Install
Requirement
Python 3.x
git clone https://github.com/batuhaniskr/twitter-intelligence.git
pip install -r requirements.txt
Use
Application work view:
-
- Get help
python3 tracking.py -h
-
- Get tweets by username
python3 tracking.py --username "HaberSau"
-
- Get tweets by a query
python3 tracking.py --query "sakarya"
-
- Get tweet at a specific date range
python3 tracking.py --username "HaberSau" --since 2015-09-10 --until 2015-09-12 --maxtweets 10
- If you get a location of tweets, add –location “True” param but application will be slower due to new response times.
python3 tracking.py --query "sakarya" --location "True"
Analysis
analysis.py performs analysis processing. User, hashtag and location analyzes are performed.
- Get help:
python3 analysis.py -h
- for location analysis
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'
- Runs hashtag analysis.
python3 analysis.py --hashtag
- Runs user analysis.
python3 analysis.py --user
Graphical User Interface
socialgui.py used for gui application
Copyright (c) 2017 BATUHAN\Batuhan
Source: https://github.com/batuhaniskr/