The headlines are tweeted daily by @schlagzeilenbot.
To get JSON data from the website, just set the Accept header of a GET request to application/json.
curl -H "accept: application/json" http://www.schlagzeilengenerator.ch/
Prerequisites: Python 3, Pip
Clone repository
If desired, create and activate a virtualenv:
virtualenv -p /usr/bin/python3 VIRTUAL source VIRTUAL/bin/activate
Install requirements:
pip install -r app/requirements.txt
Export some environment variables:
source env/dev
Run development server:
DEBUG=true python app/app.py
Start containers:
docker-compose build docker-compose up -d
To see the logs:
docker-compose logs
3-clause BSD, see LICENSE file for more information.
- Danilo Bargen (Github: @dbrgn, Twitter: @dbrgn)
- Simon Aebersold (Github: @aebersold, Twitter: @saebersold)