Skip to content

Kudusch/tokenCollector

Repository files navigation

tokenCollector

Collect Twitter API-tokens from invited users for research purposes and export them in a user-friendly way.

Installation

git clone https://github.com/Kudusch/tokenCollector.git

cd tokenCollector

virtualenv -p python3 flaskServer/venv

source flaskServer/venv/bin/activate

pip3 install -r requirements.txt

Edit example_config.py and rename to config.py.

FLASK_APP=flaskServer FLASK_ENV=development python -m flask init-db

Make sure you have the correct permissions to read and write from the virtualenv and the instance directory.

Development and Local Tests

You can use this app locally with the build-in development server:

FLASK_APP=flaskServer FLASK_ENV=development python -m flask run

Deployment

You can deploy the app with Apache, mod_wsgi and virtual hosts.

apt-get install libapache2-mod-wsgi-py3

Edit example_flaskServer.wsgi and rename to flaskServer.wsgi and move, edit and enable 000-example.conf to /etc/apache2/sites-available.

Configuration

In order to use Twitters OAuth features, you have to register an application. The Callback URL of your app should be set to domain.tld/oauth-authorized when deployed and http://127.0.0.1:5000/oauth-authorized when still in development.

Helper Scrips

License

This software is released under MIT License (MIT).

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published