Collect the latest buzz about 'bieber' from the Twitter firehose
bieberhose requires python>=3.6
Checkout the code:
git clone [email protected]:zeebonk/bieberhose.git
cd bieberhoseCreate a new virtual environment via virtualenvwrapper:
mkvirtualenv -a . -p /usr/bin/python3.6 bieberhoseAnd install using pip:
pip install .Before usage, bieberhose needs to be authenticated against the Twitter API. The authentication data is storted on disk and will be reused in future usage. Authentication is done via a Twitter app, of which a consumer key and secret need to be passed during authentication. This can be done via arguments:
bieberhose authenticate --consumer-key ... --consumer-secret ...Or via environment variables:
COSUMER_KEY=... CONSUMER_SECRET=... bieberhose authenticateAfter a succesfull authentication you can collect tweets by running:
bieberhose collectFor more advanced usage, run:
bieberhose collect --helpCheckout the code:
git clone [email protected]:zeebonk/bieberhose.git
cd bieberhoseInstall the package in editable mode and install development extras:
pip install -e .[dev]Run all checks and tests:
black bieberhose tests # Automatic formatter
isort # Automatic formatter for imports
flake8 # Static checks
pytest # Tests