The API is used to stream tweets for a recent high trafiic event and stores these tweets in a SQLite databse for later access and analysis.
- Endpoints to start/stop streaming.
- Time limit based streaming.
- Ordering of tweets based on particular fields.
- Searching of words/text in tweets.
- CSV export support
- Clone the git repository.
- Make sure python3.5+ is installed.
- Install the requirements listed in requirements.txt
- Open file private.py in subdirectory Streamer
- Replace your-keys* , your-tokens* with your authentication keys and access tokens.
Open the terminal and enter:-
$ cd TweetStreamer
$ python3 manage.py makemigrations
$ python3 manage.py migrate
$ python3 manage.py runserver
here replace {any-keyword} by keyword you want to search, {time-limit} by an integer value in seconds stating the time limit for which you want to stream the tweets.
Note :- Streaming can be also be stooped by using GET /tweets/
here replace ______ by the aprropriate words you want to search for
for ascending :- replace ______ by field-name and for descending :- replace _______ by -field-name
- Python 3.5
- Django Rest Framework
- Django Filters
- Tweepy (twitter streaming library in python)
- Multiple-keyword search
- Use of NoSQL databases
- More personalized filters like (greater than, less than) for integer fields.