Skip to content

dbrgn/schlagzeilengenerator

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
app
 
 
 
 
 
 
 
 
 
 

schlagzeilengenerator.ch

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

About

A generator for tabloid press headlines written using Python and Flask.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published