Metadata-Version: 2.1
Name: tatort-schedule
Version: 0.3.1
Summary: UNKNOWN
Home-page: https://github.com/Tanikai/tatort-schedule
Author: Tanikai
Author-email: kai.anter@web.de
License: UNKNOWN
Project-URL: Bug Tracker, https://github.com/Tanikai/tatort-schedule/issues
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Operating System :: OS Independent
Requires-Python: >=3.0
Description-Content-Type: text/markdown
License-File: LICENSE

# Tatort Schedule

## About The Project

This project contains a Python 3 module that parses the schedule of the
[*Tatort* website](https://www.daserste.de/unterhaltung/krimi/tatort/vorschau/index.html).
After parsing, it returns a list containing the next broadcasts on the channel
*Das Erste*.

### Built With

* [BeautifulSoup4](https://www.crummy.com/software/BeautifulSoup/)

## Getting Started

To get a local copy up and running follow these simple steps.

### Prerequisites

You will need a working installation of Python 3.

### Installation

1. Install via pip:

   ```sh
   pip install tatort_schedule
   ```

## Usage

Import tatort_schedule and call the get_tatort function:

```python
from tatort_schedule import schedule

schedule = schedule.get_tatort_erste()
```

For each schedule element, a dictionary with the following keys is returned:

| Key | Example Value |
| --- | --------------|
| title | "Mord Ex Machina" |
| city | "Saarbrücken" |
| inspectors | "Stellbrink und Marx" |
| time | "2021-07-09T22:15:00+02:00" |
| link | "[https://www.daserste.de/unterhaltung/krimi/tatort/sendung/mord-ex-machina-104.html](https://www.daserste.de/unterhaltung/krimi/tatort/sendung/mord-ex-machina-104.html)" |

If the schedule for other channels is fetched (using get_tatort_dritte()), every
schedule element has an additional *channel* key.

## License

Distributed under the GPLv3 License. See `LICENSE` for more information.

## Contact

Kai Anter - [@tanikai29](https://twitter.com/tanikai29) - kai.anter@web.de

Project Link: [https://github.com/Tanikai/tatort-schedule](https://github.com/Tanikai/tatort-schedule)


