https://github.com/dbrgn/schlagzeilengenerator
A generator for tabloid press headlines written using Python and Flask.
https://github.com/dbrgn/schlagzeilengenerator
Last synced: 10 months ago
JSON representation
A generator for tabloid press headlines written using Python and Flask.
- Host: GitHub
- URL: https://github.com/dbrgn/schlagzeilengenerator
- Owner: dbrgn
- License: other
- Created: 2012-06-09T14:31:09.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2022-06-19T22:35:55.000Z (about 4 years ago)
- Last Synced: 2025-01-12T10:42:23.895Z (over 1 year ago)
- Language: Python
- Homepage: http://www.schlagzeilengenerator.ch/
- Size: 181 KB
- Stars: 9
- Watchers: 4
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
########################
schlagzeilengenerator.ch
########################
.. image:: https://github.com/dbrgn/schlagzeilengenerator/raw/master/screenshot.png
The headlines are tweeted daily by `@schlagzeilenbot `_.
JSON API
========
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/
Setup (Local)
=============
Prerequisites: Python 3, Pip
1. Clone repository
2. If desired, create and activate a virtualenv::
virtualenv -p /usr/bin/python3 VIRTUAL
source VIRTUAL/bin/activate
3. Install requirements::
pip install -r app/requirements.txt
4. Export some environment variables::
source env/dev
5. Run development server::
DEBUG=true python app/app.py
Setup (Docker)
==============
Start containers::
docker-compose build
docker-compose up -d
To see the logs::
docker-compose logs
License
=======
3-clause BSD, see `LICENSE` file for more information.
Authors
=======
* Danilo Bargen (Github: `@dbrgn `_, Twitter: `@dbrgn `_)
* Simon Aebersold (Github: `@aebersold `_, Twitter: `@saebersold `_)