Skip to content
Import twint results into datashare
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
README.md
requirements.txt
script.py

README.md

Goal

This script is used to import twint json results into Datashare.

What's before all of that ?

Just use twint to extract tweets from USERNAME's account

twint -u USERNAME -o USERNAME.json --json

How to install it

List of requirements

  • click
  • elasticsearch

Install requirements

pip install -r requirements.txt

# How to use it

See help

python script.py --help

Call script

python script --username TWITTER_USERNAME --index ES_INDEX --host ES_HOST --port ES_PORT --filesPath FILE_PATH

  • username (mandatory) : username from where you extracted the tweets with twint.
  • index : Elasticsearch index name, default is local-datashare.
  • host : Elasticsearch host, default is 9200.
  • port : Elasticsearch port, default is 9200.
  • filesPath: Path where files are stored, default is "/home/dev/data".
You can’t perform that action at this time.