Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bozzmob/twitter-stream-elasticsearch
Using Twitter Stream API, Elastic Search, Flask
https://github.com/bozzmob/twitter-stream-elasticsearch
csv elasticsearch search-keywords tweepy twitter-streaming-api
Last synced: about 2 months ago
JSON representation
Using Twitter Stream API, Elastic Search, Flask
- Host: GitHub
- URL: https://github.com/bozzmob/twitter-stream-elasticsearch
- Owner: bozzmob
- Created: 2017-05-03T07:20:16.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-07-24T10:52:53.000Z (over 2 years ago)
- Last Synced: 2023-08-03T00:05:21.302Z (over 1 year ago)
- Topics: csv, elasticsearch, search-keywords, tweepy, twitter-streaming-api
- Language: Python
- Size: 21.5 KB
- Stars: 5
- Watchers: 1
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Twitter Stream API, Elastic Search
Read data from Twitter Stream API and push it to Elastic Search. Read data from Elastic Search and generate a CSV.##Usage
### Twitter Stream API
Get live tweets from Twitter's Stream API and pushes the data to Elastic searchRun - ```python getStream.py keyword```
Example - ```python getStream.py india```
### Read Data and create CSV (Command line)
Read data that match the search keyword from elastic search and write it into a CSV fileRun - ```python readData.py keyword```
Example - ```python readData.py india```
### Download CSV (REST API)
You can download a CSV file of data that contains your search keyword.Run - ```python downloadCSV.py```
URL - ```http://127.0.0.1:5000/getCSV?keyword=search-keyword```
Example - ```http://127.0.0.1:5000/getCSV?keyword=india```
## Example CSV
There are sample/example CSV's provided already for reference. Search keywords were - KKR, sports, india.