├── .github └── workflows │ ├── deutschland_generator.yml │ ├── openapi_check.yaml │ └── schemathesis.yaml ├── CNAME ├── README.md ├── README_en.md ├── generator_config.yaml ├── index.html ├── openapi.yaml ├── openapi_en.yaml └── python-client ├── .openapi-generator-ignore ├── .openapi-generator ├── FILES └── VERSION ├── README.md ├── deutschland └── tagesschau │ ├── __init__.py │ ├── api │ ├── __init__.py │ ├── channels_api.py │ ├── homepage_api.py │ ├── news_api.py │ └── search_api.py │ ├── api_client.py │ ├── apis │ └── __init__.py │ ├── configuration.py │ ├── exceptions.py │ ├── model │ ├── __init__.py │ ├── channels_response.py │ ├── channels_response_channels_inner.py │ ├── homepage_response.py │ ├── homepage_response_news_inner.py │ ├── homepage_response_regional_inner.py │ ├── multimedia_response.py │ ├── news_response.py │ ├── news_response_news_inner.py │ ├── search_response.py │ └── search_response_search_results_inner.py │ ├── model_utils.py │ ├── models │ └── __init__.py │ └── rest.py ├── docs ├── ChannelsApi.md ├── ChannelsResponse.md ├── ChannelsResponseChannelsInner.md ├── HomepageApi.md ├── HomepageResponse.md ├── HomepageResponseNewsInner.md ├── HomepageResponseRegionalInner.md ├── MultimediaResponse.md ├── NewsApi.md ├── NewsResponse.md ├── NewsResponseNewsInner.md ├── SearchApi.md ├── SearchResponse.md └── SearchResponseSearchResultsInner.md ├── pyproject.toml ├── requirements.txt ├── sphinx-docs ├── Makefile ├── conf.py ├── index.rst ├── make.bat └── source │ ├── modules.rst │ ├── tagesschau.api.rst │ ├── tagesschau.apis.rst │ ├── tagesschau.model.rst │ ├── tagesschau.models.rst │ └── tagesschau.rst ├── test-requirements.txt ├── test ├── __init__.py ├── test_channels_api.py ├── test_channels_response.py ├── test_channels_response_channels_inner.py ├── test_homepage_api.py ├── test_homepage_response.py ├── test_homepage_response_news_inner.py ├── test_homepage_response_regional_inner.py ├── test_multimedia_response.py ├── test_news_api.py ├── test_news_response.py ├── test_news_response_news_inner.py ├── test_search_api.py ├── test_search_response.py └── test_search_response_search_results_inner.py └── tox.ini /.github/workflows/deutschland_generator.yml: -------------------------------------------------------------------------------- 1 | on: [push] 2 | jobs: 3 | deutschland_generation: 4 | name: "Deutschland Generation" 5 | runs-on: ubuntu-latest 6 | strategy: 7 | fail-fast: false 8 | matrix: 9 | python-version: ['3.11.1' ] 10 | steps: 11 | - uses: actions/checkout@v2 12 | 13 | # Create default .spectral.yaml file used for linting if its not existing already 14 | - name: "Create spectral file if it not exists" 15 | continue-on-error: true 16 | run: | 17 | set -C; echo "extends: spectral:oas" > .spectral.yaml 18 | # Runs a single command using the runners shell 19 | - name: "Lint file" 20 | uses: stoplightio/spectral-action@v0.8.2 21 | with: 22 | file_glob: "openapi.yaml" 23 | 24 | - name: "Generate deutschland code" 25 | uses: wirthual/deutschland-generator-action@latest 26 | with: 27 | openapi-file: ${{ github.workspace }}/openapi.yaml 28 | commit-to-git: true 29 | upload-to-pypi: true 30 | upload-to-testpypi: false 31 | pypi-token: ${{ secrets.PYPI_PRODUCTION }} 32 | testpypi-token: ${{ secrets.PYPI_TEST }} 33 | python-version: ${{ matrix.python-version }} 34 | -------------------------------------------------------------------------------- /.github/workflows/openapi_check.yaml: -------------------------------------------------------------------------------- 1 | on: [push, pull_request] 2 | jobs: 3 | openapi_check: 4 | name: "OpenAPI check" 5 | runs-on: ubuntu-latest 6 | steps: 7 | # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it 8 | - uses: actions/checkout@v2 9 | 10 | # Create default .spectral.yaml file used for linting if its not existing already 11 | - name: "Create spectral file if it not exists" 12 | continue-on-error: true 13 | run: | 14 | set -C; echo "extends: spectral:oas" > .spectral.yaml 15 | 16 | # Run Spectral 17 | - uses: stoplightio/spectral-action@v0.8.2 18 | with: 19 | file_glob: openapi.yaml 20 | spectral_ruleset: .spectral.yaml 21 | -------------------------------------------------------------------------------- /.github/workflows/schemathesis.yaml: -------------------------------------------------------------------------------- 1 | on: [push, pull_request] 2 | jobs: 3 | schemathesis: 4 | name: "Perform schemathesis checks" 5 | runs-on: ubuntu-latest 6 | steps: 7 | - uses: actions/checkout@v3 8 | - uses: actions/setup-python@v4 9 | with: 10 | python-version: '3.8' 11 | 12 | - run: pip install schemathesis 13 | 14 | - name: "Extract base url from openapi.yaml" 15 | uses: mikefarah/yq@master 16 | with: 17 | cmd: echo "base_url=$(yq -r .servers[].url openapi.yaml)" >> $GITHUB_ENV 18 | 19 | - run: schemathesis run ./openapi.yaml --base-url "${{ env.base_url }}" --checks all 20 | 21 | -------------------------------------------------------------------------------- /CNAME: -------------------------------------------------------------------------------- 1 | tagesschau.api.bund.dev 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | [[DE]](README.md)/[[EN]](README_en.md) 2 | 3 | # Tagesschau API 4 | 5 | Die Tagesschau ist eine Nachrichtensendung der ARD (Abkürzung für Arbeitsgemeinschaft der öffentlich-rechtlichen Rundfunkanstalten der Bundesrepublik Deutschland), die von ARD-aktuell in Hamburg produziert und mehrmals täglich ausgestrahlt wird. ARD-aktuell ist seit 1977 die zentrale Fernsehnachrichtenredaktion der ARD, bei welcher es sich wiederum um einen Rundfunkverbund handelt, der aus den Landesrundfunkanstalten und der Deutschen Welle besteht. 6 | 7 | Über die hier dokumentierte API stehen auf [www.tagesschau.de](https://www.tagesschau.de) aktuelle Nachrichten und Medienbeiträge im JSON-Format zur Verfügung. 8 | 9 | **ACHTUNG:** Die Nutzung der Inhalte für den privaten, nicht-kommerziellen Gebrauch ist gestattet, die Veröffentlichung hingegen nicht - mit Ausnahme von Angeboten, die explizit unter der CC-Lizenz stehen (https://tagesschau.de/creativecommons). Es ist unzulässig, mehr als 60 Abrufe pro Stunde zu tätigen. 10 | 11 | 12 | ## Homepage 13 | 14 | **URL:** https://www.tagesschau.de/api2u/homepage/ 15 | 16 | Ausgewählte Nachrichten und Eilmeldungen, die auf der Startseite der Tagesschau-App zu sehen sind. 17 | 18 | 19 | ## News 20 | 21 | **URL:** https://www.tagesschau.de/api2u/news/ 22 | 23 | Aktuelle Nachrichten, die über GET-Parameter gefiltert werden können: 24 | 25 | **Parameter:** *regions* 26 | - 1 27 | - 2 28 | - 3 29 | - 4 30 | - 5 31 | - 6 32 | - 7 33 | - 8 34 | - 9 35 | - 10 36 | - 11 37 | - 12 38 | - 13 39 | - 14 40 | - 15 41 | - 16 42 | 43 | Bundesland: 1=Baden-Württemberg, 2=Bayern, 3=Berlin, 4=Brandenburg, 5=Bremen, 6=Hamburg, 7=Hessen, 8=Mecklenburg-Vorpommern, 9=Niedersachsen, 10=Nordrhein-Westfalen, 11=Rheinland-Pfalz, 12=Saarland, 13=Sachsen, 14=Sachsen-Anhalt, 15=Schleswig-Holstein, 16=Thüringen. Mehrere Komma-getrennte Angaben möglich (z.B. regions=1,2). 44 | 45 | 46 | **Parameters:** *ressort* 47 | 48 | - inland 49 | - ausland 50 | - wirtschaft 51 | - sport 52 | - video 53 | - investigativ 54 | - wissen 55 | 56 | Ressort/Themengebiet 57 | 58 | 59 | ## Channels 60 | 61 | **URL:** https://www.tagesschau.de/api2u/channels/ 62 | 63 | Aktuelle Kanäle (im Livestream: tagesschau24, tagesschau in 100 Sekunden, tagesschau, tagesschau 20 Uhr, tagesthemen, nachtmagazin, Bericht aus Berlin, tagesschau vor 20 Jahren, tagesschau mit Gebärdensprache) 64 | 65 | 66 | ## Search 67 | 68 | **URL:** https://www.tagesschau.de/api2u/search/ 69 | 70 | 71 | **Parameter:** *searchText* 72 | 73 | Suchtext 74 | 75 | 76 | **Parameter:** *resultPage* 77 | 78 | Seite 79 | 80 | 81 | **Parameter:** *pageSize* 82 | 83 | Suchergebnisse pro Seite (1-30) 84 | 85 | 86 | ## Beispiel 87 | 88 | ```bash 89 | tagesschau=$(curl -m 60 https://www.tagesschau.de/api2/homepage/) 90 | ``` 91 | -------------------------------------------------------------------------------- /README_en.md: -------------------------------------------------------------------------------- 1 | [[DE]](README.md)/[[EN]](README_en.md) 2 | 3 | # Tagesschau API 4 | 5 | The Tagesschau is a news program of the ARD (abbreviation for "Arbeitsgemeinschaft der öffentlich-rechtlichen Rundfunkanstalten der Bundesrepublik Deutschland"), which is produced by ARD-aktuell in Hamburg and broadcast several times a day. ARD-aktuell has been the central television news department of ARD since 1977, which in turn is a broadcasting association consisting of the state broadcasting corporations and Deutsche Welle. 6 | 7 | Current news and media articles are available in JSON format on [www.tagesschau.de](https://www.tagesschau.de) via the API documented here. 8 | 9 | **ATTENTION:** : The use of the content for private, non-commercial use is permitted, but publication is not - with the exception of content that is explicitly under the CC license (https://tagesschau.de/creativecommons). It is not permitted to make more than 60 requests per hour. 10 | 11 | 12 | ## Homepage 13 | 14 | **URL:** https://www.tagesschau.de/api2u/homepage/ 15 | 16 | Selected news and breaking news that are shown on the homepage of the Tagesschau app. 17 | 18 | 19 | ## News 20 | 21 | **URL:** https://www.tagesschau.de/api2u/news/ 22 | 23 | Current news that can be filtered via GET parameters: 24 | 25 | **Parameter:** *regions* 26 | - 1 27 | - 2 28 | - 3 29 | - 4 30 | - 5 31 | - 6 32 | - 7 33 | - 8 34 | - 9 35 | - 10 36 | - 11 37 | - 12 38 | - 13 39 | - 14 40 | - 15 41 | - 16 42 | 43 | State: 1=Baden-Württemberg, 2=Bavaria, 3=Berlin, 4=Brandenburg, 5=Bremen, 6=Hamburg, 7=Hesse, 8=Mecklenburg-Western Pomerania, 9=Lower Saxony, 10=North Rhine-Westphalia, 11= Rhineland-Palatinate, 12=Saarland, 13=Saxony, 14=Saxony-Anhalt, 15=Schleswig-Holstein, 16=Thuringia. Multiple comma-separated specifications possible (e.g. regions=1,2). 44 | 45 | 46 | **Parameters:** *ressort* 47 | 48 | - inland 49 | - ausland 50 | - wirtschaft 51 | - sport 52 | - video 53 | - investigativ 54 | - wissen 55 | 56 | Department/subject area 57 | 58 | 59 | ## Channels 60 | 61 | **URL:** https://www.tagesschau.de/api2u/channels/ 62 | 63 | Current channels (im Livestream: tagesschau24, tagesschau in 100 Sekunden, tagesschau, tagesschau 20 Uhr, tagesthemen, nachtmagazin, Bericht aus Berlin, tagesschau vor 20 Jahren, tagesschau mit Gebärdensprache) 64 | 65 | 66 | ## Search 67 | 68 | **URL:** https://www.tagesschau.de/api2u/search/ 69 | 70 | 71 | **Parameter:** *searchText* 72 | 73 | search text 74 | 75 | 76 | **Parameter:** *resultPage* 77 | 78 | page 79 | 80 | 81 | **Parameter:** *pageSize* 82 | 83 | Search results per page (1-30) 84 | 85 | 86 | ## Example 87 | 88 | ```bash 89 | tagesschau=$(curl -m 60 https://www.tagesschau.de/api2/homepage/) 90 | ``` 91 | -------------------------------------------------------------------------------- /generator_config.yaml: -------------------------------------------------------------------------------- 1 | templateDir: deutschland_templates # For local use: ./local/deutschland_templates 2 | additionalProperties: 3 | packageName: "tagesschau" 4 | infoName: "BundesAPI" 5 | infoEmail: "kontakt@bund.dev" 6 | packageVersion: 0.2.0 7 | packageUrl: "https://github.com/bundesAPI/tagesschau-api" 8 | namespace: "deutschland" 9 | docLanguage: "de" 10 | gitHost: "github.com" 11 | gitUserId: "bundesAPI" 12 | gitRepoId: "tagesschau-api" 13 | files: 14 | pyproject.mustache: 15 | destinationFilename: pyproject.toml 16 | templateType: SupportingFiles 17 | requirements.txt: {} 18 | create_doc.mustache: 19 | destinationFilename: create_doc.py 20 | templateType: SupportingFiles 21 | rename_generated_code.mustache: 22 | destinationFilename: rename_generated_code.py 23 | templateType: SupportingFiles 24 | README.mustache: 25 | destinationFilename: README.md 26 | templateType: SupportingFiles 27 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | Tagesschau API - OpenAPI Documentation 8 | 9 | 10 |
[DE]/[EN]
11 | 12 |
13 | 14 | 15 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /python-client/.openapi-generator-ignore: -------------------------------------------------------------------------------- 1 | # OpenAPI Generator Ignore 2 | # Generated by openapi-generator https://github.com/openapitools/openapi-generator 3 | 4 | # Use this file to prevent files from being overwritten by the generator. 5 | # The patterns follow closely to .gitignore or .dockerignore. 6 | 7 | # As an example, the C# client generator defines ApiClient.cs. 8 | # You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: 9 | #ApiClient.cs 10 | 11 | # You can match any string of characters against a directory, file or extension with a single asterisk (*): 12 | #foo/*/qux 13 | # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux 14 | 15 | # You can recursively match patterns against a directory, file or extension with a double asterisk (**): 16 | #foo/**/qux 17 | # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux 18 | 19 | # You can also negate patterns with an exclamation (!). 20 | # For example, you can ignore all files in a docs folder with the file extension .md: 21 | #docs/*.md 22 | # Then explicitly reverse the ignore rule for a single file: 23 | #!docs/README.md 24 | -------------------------------------------------------------------------------- /python-client/.openapi-generator/FILES: -------------------------------------------------------------------------------- 1 | .gitignore 2 | .gitlab-ci.yml 3 | .openapi-generator-ignore 4 | .travis.yml 5 | README.md 6 | create_doc.py 7 | docs/ChannelsApi.md 8 | docs/ChannelsResponse.md 9 | docs/ChannelsResponseChannelsInner.md 10 | docs/HomepageApi.md 11 | docs/HomepageResponse.md 12 | docs/HomepageResponseNewsInner.md 13 | docs/HomepageResponseRegionalInner.md 14 | docs/MultimediaResponse.md 15 | docs/NewsApi.md 16 | docs/NewsResponse.md 17 | docs/NewsResponseNewsInner.md 18 | docs/SearchApi.md 19 | docs/SearchResponse.md 20 | docs/SearchResponseSearchResultsInner.md 21 | git_push.sh 22 | pyproject.toml 23 | rename_generated_code.py 24 | requirements.txt 25 | requirements.txt 26 | setup.cfg 27 | setup.py 28 | tagesschau/__init__.py 29 | tagesschau/api/__init__.py 30 | tagesschau/api/channels_api.py 31 | tagesschau/api/homepage_api.py 32 | tagesschau/api/news_api.py 33 | tagesschau/api/search_api.py 34 | tagesschau/api_client.py 35 | tagesschau/apis/__init__.py 36 | tagesschau/configuration.py 37 | tagesschau/exceptions.py 38 | tagesschau/model/__init__.py 39 | tagesschau/model/channels_response.py 40 | tagesschau/model/channels_response_channels_inner.py 41 | tagesschau/model/homepage_response.py 42 | tagesschau/model/homepage_response_news_inner.py 43 | tagesschau/model/homepage_response_regional_inner.py 44 | tagesschau/model/multimedia_response.py 45 | tagesschau/model/news_response.py 46 | tagesschau/model/news_response_news_inner.py 47 | tagesschau/model/search_response.py 48 | tagesschau/model/search_response_search_results_inner.py 49 | tagesschau/model_utils.py 50 | tagesschau/models/__init__.py 51 | tagesschau/rest.py 52 | test-requirements.txt 53 | test/__init__.py 54 | test/test_channels_api.py 55 | test/test_channels_response.py 56 | test/test_channels_response_channels_inner.py 57 | test/test_homepage_api.py 58 | test/test_homepage_response.py 59 | test/test_homepage_response_news_inner.py 60 | test/test_homepage_response_regional_inner.py 61 | test/test_multimedia_response.py 62 | test/test_news_api.py 63 | test/test_news_response.py 64 | test/test_news_response_news_inner.py 65 | test/test_search_api.py 66 | test/test_search_response.py 67 | test/test_search_response_search_results_inner.py 68 | tox.ini 69 | -------------------------------------------------------------------------------- /python-client/.openapi-generator/VERSION: -------------------------------------------------------------------------------- 1 | 6.1.0 -------------------------------------------------------------------------------- /python-client/README.md: -------------------------------------------------------------------------------- 1 | # tagesschau 2 | Die Tagesschau ist eine Nachrichtensendung der ARD (Abkürzung für Arbeitsgemeinschaft der öffentlich-rechtlichen Rundfunkanstalten der Bundesrepublik Deutschland), die von ARD-aktuell in Hamburg produziert und mehrmals täglich ausgestrahlt wird. ARD-aktuell ist seit 1977 die zentrale Fernsehnachrichtenredaktion der ARD, bei welcher es sich wiederum um einen Rundfunkverbund handelt, der aus den Landesrundfunkanstalten und der Deutschen Welle besteht.

Über die hier dokumentierte API stehen auf [www.tagesschau.de](https://www.tagesschau.de) aktuelle Nachrichten und Medienbeiträge im JSON-Format zur Verfügung.

**Achtung:** Die Nutzung der Inhalte für den privaten, nicht-kommerziellen Gebrauch ist gestattet, die Veröffentlichung hingegen nicht - mit Ausnahme von Angeboten, die explizit unter der CC-Lizenz stehen (https://tagesschau.de/creativecommons). Es ist unzulässig, mehr als 60 Abrufe pro Stunde zu tätigen. 3 | 4 | This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: 5 | 6 | - API version: 2.0.1 7 | - Package version: 0.2.0 8 | - Build package: org.openapitools.codegen.languages.PythonClientCodegen 9 | For more information, please visit [https://github.com/AndreasFischer1985/tagesschau-api](https://github.com/AndreasFischer1985/tagesschau-api) 10 | 11 | ## Requirements. 12 | 13 | Python >= 3.6 14 | 15 | ## Installation & Usage 16 | ### pip install 17 | 18 | ```sh 19 | pip install deutschland[tagesschau] 20 | ``` 21 | 22 | ### poetry install 23 | 24 | ```sh 25 | poetry add deutschland -E tagesschau 26 | ``` 27 | 28 | ### Setuptools 29 | 30 | Install via [Setuptools](http://pypi.python.org/pypi/setuptools). 31 | 32 | ```sh 33 | python setup.py install --user 34 | ``` 35 | (or `sudo python setup.py install` to install the package for all users) 36 | 37 | ## Usage 38 | 39 | Import the package: 40 | ```python 41 | from deutschland import tagesschau 42 | ``` 43 | 44 | ## Getting Started 45 | 46 | Please follow the [installation procedure](#installation--usage) and then run the following: 47 | 48 | ```python 49 | 50 | import time 51 | from deutschland import tagesschau 52 | from pprint import pprint 53 | from deutschland.tagesschau.api import channels_api 54 | from deutschland.tagesschau.model.channels_response import ChannelsResponse 55 | # Defining the host is optional and defaults to https://www.tagesschau.de 56 | # See configuration.py for a list of all supported configuration parameters. 57 | configuration = tagesschau.Configuration( 58 | host = "https://www.tagesschau.de" 59 | ) 60 | 61 | 62 | 63 | # Enter a context with an instance of the API client 64 | with tagesschau.ApiClient(configuration) as api_client: 65 | # Create an instance of the API class 66 | api_instance = channels_api.ChannelsApi(api_client) 67 | 68 | try: 69 | # Aktuelle Kanäle 70 | api_response = api_instance.channels() 71 | pprint(api_response) 72 | except tagesschau.ApiException as e: 73 | print("Exception when calling ChannelsApi->channels: %s\n" % e) 74 | ``` 75 | 76 | ## Documentation for API Endpoints 77 | 78 | All URIs are relative to *https://www.tagesschau.de* 79 | 80 | Class | Method | HTTP request | Description 81 | ------------ | ------------- | ------------- | ------------- 82 | *ChannelsApi* | [**channels**](docs/ChannelsApi.md#channels) | **GET** /api2u/channels/ | Aktuelle Kanäle 83 | *HomepageApi* | [**homepage**](docs/HomepageApi.md#homepage) | **GET** /api2u/homepage/ | Ausgewählte aktuelle Nachrichten und Eilmeldungen 84 | *NewsApi* | [**news**](docs/NewsApi.md#news) | **GET** /api2u/news/ | Aktuelle Nachrichten und Eilmeldungen 85 | *SearchApi* | [**search**](docs/SearchApi.md#search) | **GET** /api2u/search/ | Suche 86 | 87 | 88 | ## Documentation For Models 89 | 90 | - [ChannelsResponse](docs/ChannelsResponse.md) 91 | - [ChannelsResponseChannelsInner](docs/ChannelsResponseChannelsInner.md) 92 | - [HomepageResponse](docs/HomepageResponse.md) 93 | - [HomepageResponseNewsInner](docs/HomepageResponseNewsInner.md) 94 | - [HomepageResponseRegionalInner](docs/HomepageResponseRegionalInner.md) 95 | - [MultimediaResponse](docs/MultimediaResponse.md) 96 | - [NewsResponse](docs/NewsResponse.md) 97 | - [NewsResponseNewsInner](docs/NewsResponseNewsInner.md) 98 | - [SearchResponse](docs/SearchResponse.md) 99 | - [SearchResponseSearchResultsInner](docs/SearchResponseSearchResultsInner.md) 100 | 101 | 102 | ## Documentation For Authorization 103 | 104 | All endpoints do not require authorization. 105 | 106 | ## Author 107 | 108 | andreasfischer1985@web.de 109 | 110 | 111 | ## Notes for Large OpenAPI documents 112 | If the OpenAPI document is large, imports in tagesschau.apis and tagesschau.models may fail with a 113 | RecursionError indicating the maximum recursion limit has been exceeded. In that case, there are a couple of solutions: 114 | 115 | Solution 1: 116 | Use specific imports for apis and models like: 117 | - `from deutschland.tagesschau.api.default_api import DefaultApi` 118 | - `from deutschland.tagesschau.model.pet import Pet` 119 | 120 | Solution 2: 121 | Before importing the package, adjust the maximum recursion limit as shown below: 122 | ``` 123 | import sys 124 | sys.setrecursionlimit(1500) 125 | from deutschland import tagesschau 126 | from deutschland.tagesschau.apis import * 127 | from deutschland.tagesschau.models import * 128 | ``` 129 | 130 | -------------------------------------------------------------------------------- /python-client/deutschland/tagesschau/__init__.py: -------------------------------------------------------------------------------- 1 | # flake8: noqa 2 | 3 | """ 4 | Tagesschau API 5 | 6 | Die Tagesschau ist eine Nachrichtensendung der ARD (Abkürzung für Arbeitsgemeinschaft der öffentlich-rechtlichen Rundfunkanstalten der Bundesrepublik Deutschland), die von ARD-aktuell in Hamburg produziert und mehrmals täglich ausgestrahlt wird. ARD-aktuell ist seit 1977 die zentrale Fernsehnachrichtenredaktion der ARD, bei welcher es sich wiederum um einen Rundfunkverbund handelt, der aus den Landesrundfunkanstalten und der Deutschen Welle besteht.

Über die hier dokumentierte API stehen auf [www.tagesschau.de](https://www.tagesschau.de) aktuelle Nachrichten und Medienbeiträge im JSON-Format zur Verfügung.

**Achtung:** Die Nutzung der Inhalte für den privaten, nicht-kommerziellen Gebrauch ist gestattet, die Veröffentlichung hingegen nicht - mit Ausnahme von Angeboten, die explizit unter der CC-Lizenz stehen (https://tagesschau.de/creativecommons). Es ist unzulässig, mehr als 60 Abrufe pro Stunde zu tätigen. # noqa: E501 7 | 8 | The version of the OpenAPI document: 2.0.1 9 | Contact: andreasfischer1985@web.de 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | __version__ = "0.2.0" 15 | 16 | # import ApiClient 17 | from deutschland.tagesschau.api_client import ApiClient 18 | 19 | # import Configuration 20 | from deutschland.tagesschau.configuration import Configuration 21 | 22 | # import exceptions 23 | from deutschland.tagesschau.exceptions import ( 24 | ApiAttributeError, 25 | ApiException, 26 | ApiKeyError, 27 | ApiTypeError, 28 | ApiValueError, 29 | OpenApiException, 30 | ) 31 | -------------------------------------------------------------------------------- /python-client/deutschland/tagesschau/api/__init__.py: -------------------------------------------------------------------------------- 1 | # do not import all apis into this module because that uses a lot of memory and stack frames 2 | # if you need the ability to import all apis from one package, import them with 3 | # from deutschland.tagesschau.apis import ChannelsApi 4 | -------------------------------------------------------------------------------- /python-client/deutschland/tagesschau/api/channels_api.py: -------------------------------------------------------------------------------- 1 | """ 2 | Tagesschau API 3 | 4 | Die Tagesschau ist eine Nachrichtensendung der ARD (Abkürzung für Arbeitsgemeinschaft der öffentlich-rechtlichen Rundfunkanstalten der Bundesrepublik Deutschland), die von ARD-aktuell in Hamburg produziert und mehrmals täglich ausgestrahlt wird. ARD-aktuell ist seit 1977 die zentrale Fernsehnachrichtenredaktion der ARD, bei welcher es sich wiederum um einen Rundfunkverbund handelt, der aus den Landesrundfunkanstalten und der Deutschen Welle besteht.

Über die hier dokumentierte API stehen auf [www.tagesschau.de](https://www.tagesschau.de) aktuelle Nachrichten und Medienbeiträge im JSON-Format zur Verfügung.

**Achtung:** Die Nutzung der Inhalte für den privaten, nicht-kommerziellen Gebrauch ist gestattet, die Veröffentlichung hingegen nicht - mit Ausnahme von Angeboten, die explizit unter der CC-Lizenz stehen (https://tagesschau.de/creativecommons). Es ist unzulässig, mehr als 60 Abrufe pro Stunde zu tätigen. # noqa: E501 5 | 6 | The version of the OpenAPI document: 2.0.1 7 | Contact: andreasfischer1985@web.de 8 | Generated by: https://openapi-generator.tech 9 | """ 10 | 11 | import re # noqa: F401 12 | import sys # noqa: F401 13 | 14 | from deutschland.tagesschau.api_client import ApiClient 15 | from deutschland.tagesschau.api_client import Endpoint as _Endpoint 16 | from deutschland.tagesschau.model.channels_response import ChannelsResponse 17 | from deutschland.tagesschau.model_utils import ( # noqa: F401 18 | check_allowed_values, 19 | check_validations, 20 | date, 21 | datetime, 22 | file_type, 23 | none_type, 24 | validate_and_convert_types, 25 | ) 26 | 27 | 28 | class ChannelsApi(object): 29 | """NOTE: This class is auto generated by OpenAPI Generator 30 | Ref: https://openapi-generator.tech 31 | 32 | Do not edit the class manually. 33 | """ 34 | 35 | def __init__(self, api_client=None): 36 | if api_client is None: 37 | api_client = ApiClient() 38 | self.api_client = api_client 39 | self.channels_endpoint = _Endpoint( 40 | settings={ 41 | "response_type": (ChannelsResponse,), 42 | "auth": [], 43 | "endpoint_path": "/api2u/channels/", 44 | "operation_id": "channels", 45 | "http_method": "GET", 46 | "servers": None, 47 | }, 48 | params_map={ 49 | "all": [], 50 | "required": [], 51 | "nullable": [], 52 | "enum": [], 53 | "validation": [], 54 | }, 55 | root_map={ 56 | "validations": {}, 57 | "allowed_values": {}, 58 | "openapi_types": {}, 59 | "attribute_map": {}, 60 | "location_map": {}, 61 | "collection_format_map": {}, 62 | }, 63 | headers_map={ 64 | "accept": ["application/json"], 65 | "content_type": [], 66 | }, 67 | api_client=api_client, 68 | ) 69 | 70 | def channels(self, **kwargs): 71 | """Aktuelle Kanäle # noqa: E501 72 | 73 | Aktuelle Kanäle (im Livestream: tagesschau24, tagesschau in 100 Sekunden, tagesschau, tagesschau 20 Uhr, tagesthemen, nachtmagazin, Bericht aus Berlin, tagesschau vor 20 Jahren, tagesschau mit Gebärdensprache # noqa: E501 74 | This method makes a synchronous HTTP request by default. To make an 75 | asynchronous HTTP request, please pass async_req=True 76 | 77 | >>> thread = api.channels(async_req=True) 78 | >>> result = thread.get() 79 | 80 | 81 | Keyword Args: 82 | _return_http_data_only (bool): response data without head status 83 | code and headers. Default is True. 84 | _preload_content (bool): if False, the urllib3.HTTPResponse object 85 | will be returned without reading/decoding response data. 86 | Default is True. 87 | _request_timeout (int/float/tuple): timeout setting for this request. If 88 | one number provided, it will be total request timeout. It can also 89 | be a pair (tuple) of (connection, read) timeouts. 90 | Default is None. 91 | _check_input_type (bool): specifies if type checking 92 | should be done one the data sent to the server. 93 | Default is True. 94 | _check_return_type (bool): specifies if type checking 95 | should be done one the data received from the server. 96 | Default is True. 97 | _spec_property_naming (bool): True if the variable names in the input data 98 | are serialized names, as specified in the OpenAPI document. 99 | False if the variable names in the input data 100 | are pythonic names, e.g. snake case (default) 101 | _content_type (str/None): force body content-type. 102 | Default is None and content-type will be predicted by allowed 103 | content-types and body. 104 | _host_index (int/None): specifies the index of the server 105 | that we want to use. 106 | Default is read from the configuration. 107 | _request_auths (list): set to override the auth_settings for an a single 108 | request; this effectively ignores the authentication 109 | in the spec for a single request. 110 | Default is None 111 | async_req (bool): execute request asynchronously 112 | 113 | Returns: 114 | ChannelsResponse 115 | If the method is called asynchronously, returns the request 116 | thread. 117 | """ 118 | kwargs["async_req"] = kwargs.get("async_req", False) 119 | kwargs["_return_http_data_only"] = kwargs.get("_return_http_data_only", True) 120 | kwargs["_preload_content"] = kwargs.get("_preload_content", True) 121 | kwargs["_request_timeout"] = kwargs.get("_request_timeout", None) 122 | kwargs["_check_input_type"] = kwargs.get("_check_input_type", True) 123 | kwargs["_check_return_type"] = kwargs.get("_check_return_type", True) 124 | kwargs["_spec_property_naming"] = kwargs.get("_spec_property_naming", False) 125 | kwargs["_content_type"] = kwargs.get("_content_type") 126 | kwargs["_host_index"] = kwargs.get("_host_index") 127 | kwargs["_request_auths"] = kwargs.get("_request_auths", None) 128 | return self.channels_endpoint.call_with_http_info(**kwargs) 129 | -------------------------------------------------------------------------------- /python-client/deutschland/tagesschau/api/homepage_api.py: -------------------------------------------------------------------------------- 1 | """ 2 | Tagesschau API 3 | 4 | Die Tagesschau ist eine Nachrichtensendung der ARD (Abkürzung für Arbeitsgemeinschaft der öffentlich-rechtlichen Rundfunkanstalten der Bundesrepublik Deutschland), die von ARD-aktuell in Hamburg produziert und mehrmals täglich ausgestrahlt wird. ARD-aktuell ist seit 1977 die zentrale Fernsehnachrichtenredaktion der ARD, bei welcher es sich wiederum um einen Rundfunkverbund handelt, der aus den Landesrundfunkanstalten und der Deutschen Welle besteht.

Über die hier dokumentierte API stehen auf [www.tagesschau.de](https://www.tagesschau.de) aktuelle Nachrichten und Medienbeiträge im JSON-Format zur Verfügung.

**Achtung:** Die Nutzung der Inhalte für den privaten, nicht-kommerziellen Gebrauch ist gestattet, die Veröffentlichung hingegen nicht - mit Ausnahme von Angeboten, die explizit unter der CC-Lizenz stehen (https://tagesschau.de/creativecommons). Es ist unzulässig, mehr als 60 Abrufe pro Stunde zu tätigen. # noqa: E501 5 | 6 | The version of the OpenAPI document: 2.0.1 7 | Contact: andreasfischer1985@web.de 8 | Generated by: https://openapi-generator.tech 9 | """ 10 | 11 | import re # noqa: F401 12 | import sys # noqa: F401 13 | 14 | from deutschland.tagesschau.api_client import ApiClient 15 | from deutschland.tagesschau.api_client import Endpoint as _Endpoint 16 | from deutschland.tagesschau.model.homepage_response import HomepageResponse 17 | from deutschland.tagesschau.model_utils import ( # noqa: F401 18 | check_allowed_values, 19 | check_validations, 20 | date, 21 | datetime, 22 | file_type, 23 | none_type, 24 | validate_and_convert_types, 25 | ) 26 | 27 | 28 | class HomepageApi(object): 29 | """NOTE: This class is auto generated by OpenAPI Generator 30 | Ref: https://openapi-generator.tech 31 | 32 | Do not edit the class manually. 33 | """ 34 | 35 | def __init__(self, api_client=None): 36 | if api_client is None: 37 | api_client = ApiClient() 38 | self.api_client = api_client 39 | self.homepage_endpoint = _Endpoint( 40 | settings={ 41 | "response_type": (HomepageResponse,), 42 | "auth": [], 43 | "endpoint_path": "/api2u/homepage/", 44 | "operation_id": "homepage", 45 | "http_method": "GET", 46 | "servers": None, 47 | }, 48 | params_map={ 49 | "all": [], 50 | "required": [], 51 | "nullable": [], 52 | "enum": [], 53 | "validation": [], 54 | }, 55 | root_map={ 56 | "validations": {}, 57 | "allowed_values": {}, 58 | "openapi_types": {}, 59 | "attribute_map": {}, 60 | "location_map": {}, 61 | "collection_format_map": {}, 62 | }, 63 | headers_map={ 64 | "accept": ["application/json"], 65 | "content_type": [], 66 | }, 67 | api_client=api_client, 68 | ) 69 | 70 | def homepage(self, **kwargs): 71 | """Ausgewählte aktuelle Nachrichten und Eilmeldungen # noqa: E501 72 | 73 | Ausgewählte aktuelle Nachrichten und Eilmeldungen, sowie regionale Nachrichten, die auf der Startseite der Tagesschau-App zu sehen sind. # noqa: E501 74 | This method makes a synchronous HTTP request by default. To make an 75 | asynchronous HTTP request, please pass async_req=True 76 | 77 | >>> thread = api.homepage(async_req=True) 78 | >>> result = thread.get() 79 | 80 | 81 | Keyword Args: 82 | _return_http_data_only (bool): response data without head status 83 | code and headers. Default is True. 84 | _preload_content (bool): if False, the urllib3.HTTPResponse object 85 | will be returned without reading/decoding response data. 86 | Default is True. 87 | _request_timeout (int/float/tuple): timeout setting for this request. If 88 | one number provided, it will be total request timeout. It can also 89 | be a pair (tuple) of (connection, read) timeouts. 90 | Default is None. 91 | _check_input_type (bool): specifies if type checking 92 | should be done one the data sent to the server. 93 | Default is True. 94 | _check_return_type (bool): specifies if type checking 95 | should be done one the data received from the server. 96 | Default is True. 97 | _spec_property_naming (bool): True if the variable names in the input data 98 | are serialized names, as specified in the OpenAPI document. 99 | False if the variable names in the input data 100 | are pythonic names, e.g. snake case (default) 101 | _content_type (str/None): force body content-type. 102 | Default is None and content-type will be predicted by allowed 103 | content-types and body. 104 | _host_index (int/None): specifies the index of the server 105 | that we want to use. 106 | Default is read from the configuration. 107 | _request_auths (list): set to override the auth_settings for an a single 108 | request; this effectively ignores the authentication 109 | in the spec for a single request. 110 | Default is None 111 | async_req (bool): execute request asynchronously 112 | 113 | Returns: 114 | HomepageResponse 115 | If the method is called asynchronously, returns the request 116 | thread. 117 | """ 118 | kwargs["async_req"] = kwargs.get("async_req", False) 119 | kwargs["_return_http_data_only"] = kwargs.get("_return_http_data_only", True) 120 | kwargs["_preload_content"] = kwargs.get("_preload_content", True) 121 | kwargs["_request_timeout"] = kwargs.get("_request_timeout", None) 122 | kwargs["_check_input_type"] = kwargs.get("_check_input_type", True) 123 | kwargs["_check_return_type"] = kwargs.get("_check_return_type", True) 124 | kwargs["_spec_property_naming"] = kwargs.get("_spec_property_naming", False) 125 | kwargs["_content_type"] = kwargs.get("_content_type") 126 | kwargs["_host_index"] = kwargs.get("_host_index") 127 | kwargs["_request_auths"] = kwargs.get("_request_auths", None) 128 | return self.homepage_endpoint.call_with_http_info(**kwargs) 129 | -------------------------------------------------------------------------------- /python-client/deutschland/tagesschau/api/news_api.py: -------------------------------------------------------------------------------- 1 | """ 2 | Tagesschau API 3 | 4 | Die Tagesschau ist eine Nachrichtensendung der ARD (Abkürzung für Arbeitsgemeinschaft der öffentlich-rechtlichen Rundfunkanstalten der Bundesrepublik Deutschland), die von ARD-aktuell in Hamburg produziert und mehrmals täglich ausgestrahlt wird. ARD-aktuell ist seit 1977 die zentrale Fernsehnachrichtenredaktion der ARD, bei welcher es sich wiederum um einen Rundfunkverbund handelt, der aus den Landesrundfunkanstalten und der Deutschen Welle besteht.

Über die hier dokumentierte API stehen auf [www.tagesschau.de](https://www.tagesschau.de) aktuelle Nachrichten und Medienbeiträge im JSON-Format zur Verfügung.

**Achtung:** Die Nutzung der Inhalte für den privaten, nicht-kommerziellen Gebrauch ist gestattet, die Veröffentlichung hingegen nicht - mit Ausnahme von Angeboten, die explizit unter der CC-Lizenz stehen (https://tagesschau.de/creativecommons). Es ist unzulässig, mehr als 60 Abrufe pro Stunde zu tätigen. # noqa: E501 5 | 6 | The version of the OpenAPI document: 2.0.1 7 | Contact: andreasfischer1985@web.de 8 | Generated by: https://openapi-generator.tech 9 | """ 10 | 11 | import re # noqa: F401 12 | import sys # noqa: F401 13 | 14 | from deutschland.tagesschau.api_client import ApiClient 15 | from deutschland.tagesschau.api_client import Endpoint as _Endpoint 16 | from deutschland.tagesschau.model.news_response import NewsResponse 17 | from deutschland.tagesschau.model_utils import ( # noqa: F401 18 | check_allowed_values, 19 | check_validations, 20 | date, 21 | datetime, 22 | file_type, 23 | none_type, 24 | validate_and_convert_types, 25 | ) 26 | 27 | 28 | class NewsApi(object): 29 | """NOTE: This class is auto generated by OpenAPI Generator 30 | Ref: https://openapi-generator.tech 31 | 32 | Do not edit the class manually. 33 | """ 34 | 35 | def __init__(self, api_client=None): 36 | if api_client is None: 37 | api_client = ApiClient() 38 | self.api_client = api_client 39 | self.news_endpoint = _Endpoint( 40 | settings={ 41 | "response_type": (NewsResponse,), 42 | "auth": [], 43 | "endpoint_path": "/api2u/news/", 44 | "operation_id": "news", 45 | "http_method": "GET", 46 | "servers": None, 47 | }, 48 | params_map={ 49 | "all": [ 50 | "regions", 51 | "ressort", 52 | ], 53 | "required": [], 54 | "nullable": [], 55 | "enum": [ 56 | "regions", 57 | "ressort", 58 | ], 59 | "validation": [], 60 | }, 61 | root_map={ 62 | "validations": {}, 63 | "allowed_values": { 64 | ("regions",): { 65 | "1": 1, 66 | "2": 2, 67 | "3": 3, 68 | "4": 4, 69 | "5": 5, 70 | "6": 6, 71 | "7": 7, 72 | "8": 8, 73 | "9": 9, 74 | "10": 10, 75 | "11": 11, 76 | "12": 12, 77 | "13": 13, 78 | "14": 14, 79 | "15": 15, 80 | "16": 16, 81 | }, 82 | ("ressort",): { 83 | "INLAND": "inland", 84 | "AUSLAND": "ausland", 85 | "WIRTSCHAFT": "wirtschaft", 86 | "SPORT": "sport", 87 | "VIDEO": "video", 88 | "INVESTIGATIV": "investigativ", 89 | "WISSEN": "wissen", 90 | }, 91 | }, 92 | "openapi_types": { 93 | "regions": (int,), 94 | "ressort": (str,), 95 | }, 96 | "attribute_map": { 97 | "regions": "regions", 98 | "ressort": "ressort", 99 | }, 100 | "location_map": { 101 | "regions": "query", 102 | "ressort": "query", 103 | }, 104 | "collection_format_map": {}, 105 | }, 106 | headers_map={ 107 | "accept": ["application/json"], 108 | "content_type": [], 109 | }, 110 | api_client=api_client, 111 | ) 112 | 113 | def news(self, **kwargs): 114 | """Aktuelle Nachrichten und Eilmeldungen # noqa: E501 115 | 116 | Aktuelle Nachrichten und Eilmeldungen # noqa: E501 117 | This method makes a synchronous HTTP request by default. To make an 118 | asynchronous HTTP request, please pass async_req=True 119 | 120 | >>> thread = api.news(async_req=True) 121 | >>> result = thread.get() 122 | 123 | 124 | Keyword Args: 125 | regions (int): Bundesland - 1=Baden-Württemberg, 2=Bayern, 3=Berlin, 4=Brandenburg, 5=Bremen, 6=Hamburg, 7=Hessen, 8=Mecklenburg-Vorpommern, 9=Niedersachsen, 10=Nordrhein-Westfalen, 11=Rheinland-Pfalz, 12=Saarland, 13=Sachsen, 14=Sachsen-Anhalt, 15=Schleswig-Holstein, 16=Thüringen. Mehrere Komma-getrennte Angaben möglich (z.B. regions=1,2).. [optional] 126 | ressort (str): Ressort/Themengebiet. [optional] 127 | _return_http_data_only (bool): response data without head status 128 | code and headers. Default is True. 129 | _preload_content (bool): if False, the urllib3.HTTPResponse object 130 | will be returned without reading/decoding response data. 131 | Default is True. 132 | _request_timeout (int/float/tuple): timeout setting for this request. If 133 | one number provided, it will be total request timeout. It can also 134 | be a pair (tuple) of (connection, read) timeouts. 135 | Default is None. 136 | _check_input_type (bool): specifies if type checking 137 | should be done one the data sent to the server. 138 | Default is True. 139 | _check_return_type (bool): specifies if type checking 140 | should be done one the data received from the server. 141 | Default is True. 142 | _spec_property_naming (bool): True if the variable names in the input data 143 | are serialized names, as specified in the OpenAPI document. 144 | False if the variable names in the input data 145 | are pythonic names, e.g. snake case (default) 146 | _content_type (str/None): force body content-type. 147 | Default is None and content-type will be predicted by allowed 148 | content-types and body. 149 | _host_index (int/None): specifies the index of the server 150 | that we want to use. 151 | Default is read from the configuration. 152 | _request_auths (list): set to override the auth_settings for an a single 153 | request; this effectively ignores the authentication 154 | in the spec for a single request. 155 | Default is None 156 | async_req (bool): execute request asynchronously 157 | 158 | Returns: 159 | NewsResponse 160 | If the method is called asynchronously, returns the request 161 | thread. 162 | """ 163 | kwargs["async_req"] = kwargs.get("async_req", False) 164 | kwargs["_return_http_data_only"] = kwargs.get("_return_http_data_only", True) 165 | kwargs["_preload_content"] = kwargs.get("_preload_content", True) 166 | kwargs["_request_timeout"] = kwargs.get("_request_timeout", None) 167 | kwargs["_check_input_type"] = kwargs.get("_check_input_type", True) 168 | kwargs["_check_return_type"] = kwargs.get("_check_return_type", True) 169 | kwargs["_spec_property_naming"] = kwargs.get("_spec_property_naming", False) 170 | kwargs["_content_type"] = kwargs.get("_content_type") 171 | kwargs["_host_index"] = kwargs.get("_host_index") 172 | kwargs["_request_auths"] = kwargs.get("_request_auths", None) 173 | return self.news_endpoint.call_with_http_info(**kwargs) 174 | -------------------------------------------------------------------------------- /python-client/deutschland/tagesschau/api/search_api.py: -------------------------------------------------------------------------------- 1 | """ 2 | Tagesschau API 3 | 4 | Die Tagesschau ist eine Nachrichtensendung der ARD (Abkürzung für Arbeitsgemeinschaft der öffentlich-rechtlichen Rundfunkanstalten der Bundesrepublik Deutschland), die von ARD-aktuell in Hamburg produziert und mehrmals täglich ausgestrahlt wird. ARD-aktuell ist seit 1977 die zentrale Fernsehnachrichtenredaktion der ARD, bei welcher es sich wiederum um einen Rundfunkverbund handelt, der aus den Landesrundfunkanstalten und der Deutschen Welle besteht.

Über die hier dokumentierte API stehen auf [www.tagesschau.de](https://www.tagesschau.de) aktuelle Nachrichten und Medienbeiträge im JSON-Format zur Verfügung.

**Achtung:** Die Nutzung der Inhalte für den privaten, nicht-kommerziellen Gebrauch ist gestattet, die Veröffentlichung hingegen nicht - mit Ausnahme von Angeboten, die explizit unter der CC-Lizenz stehen (https://tagesschau.de/creativecommons). Es ist unzulässig, mehr als 60 Abrufe pro Stunde zu tätigen. # noqa: E501 5 | 6 | The version of the OpenAPI document: 2.0.1 7 | Contact: andreasfischer1985@web.de 8 | Generated by: https://openapi-generator.tech 9 | """ 10 | 11 | import re # noqa: F401 12 | import sys # noqa: F401 13 | 14 | from deutschland.tagesschau.api_client import ApiClient 15 | from deutschland.tagesschau.api_client import Endpoint as _Endpoint 16 | from deutschland.tagesschau.model.search_response import SearchResponse 17 | from deutschland.tagesschau.model_utils import ( # noqa: F401 18 | check_allowed_values, 19 | check_validations, 20 | date, 21 | datetime, 22 | file_type, 23 | none_type, 24 | validate_and_convert_types, 25 | ) 26 | 27 | 28 | class SearchApi(object): 29 | """NOTE: This class is auto generated by OpenAPI Generator 30 | Ref: https://openapi-generator.tech 31 | 32 | Do not edit the class manually. 33 | """ 34 | 35 | def __init__(self, api_client=None): 36 | if api_client is None: 37 | api_client = ApiClient() 38 | self.api_client = api_client 39 | self.search_endpoint = _Endpoint( 40 | settings={ 41 | "response_type": (SearchResponse,), 42 | "auth": [], 43 | "endpoint_path": "/api2u/search/", 44 | "operation_id": "search", 45 | "http_method": "GET", 46 | "servers": None, 47 | }, 48 | params_map={ 49 | "all": [ 50 | "search_text", 51 | "page_size", 52 | "result_page", 53 | ], 54 | "required": [], 55 | "nullable": [], 56 | "enum": [], 57 | "validation": [], 58 | }, 59 | root_map={ 60 | "validations": {}, 61 | "allowed_values": {}, 62 | "openapi_types": { 63 | "search_text": (str,), 64 | "page_size": (int,), 65 | "result_page": (int,), 66 | }, 67 | "attribute_map": { 68 | "search_text": "searchText", 69 | "page_size": "pageSize", 70 | "result_page": "resultPage", 71 | }, 72 | "location_map": { 73 | "search_text": "query", 74 | "page_size": "query", 75 | "result_page": "query", 76 | }, 77 | "collection_format_map": {}, 78 | }, 79 | headers_map={ 80 | "accept": ["application/json"], 81 | "content_type": [], 82 | }, 83 | api_client=api_client, 84 | ) 85 | 86 | def search(self, **kwargs): 87 | """Suche # noqa: E501 88 | 89 | Suche # noqa: E501 90 | This method makes a synchronous HTTP request by default. To make an 91 | asynchronous HTTP request, please pass async_req=True 92 | 93 | >>> thread = api.search(async_req=True) 94 | >>> result = thread.get() 95 | 96 | 97 | Keyword Args: 98 | search_text (str): Suchtext. [optional] 99 | page_size (int): Seite. [optional] 100 | result_page (int): Suchergebnisse pro Seite (1-30). [optional] 101 | _return_http_data_only (bool): response data without head status 102 | code and headers. Default is True. 103 | _preload_content (bool): if False, the urllib3.HTTPResponse object 104 | will be returned without reading/decoding response data. 105 | Default is True. 106 | _request_timeout (int/float/tuple): timeout setting for this request. If 107 | one number provided, it will be total request timeout. It can also 108 | be a pair (tuple) of (connection, read) timeouts. 109 | Default is None. 110 | _check_input_type (bool): specifies if type checking 111 | should be done one the data sent to the server. 112 | Default is True. 113 | _check_return_type (bool): specifies if type checking 114 | should be done one the data received from the server. 115 | Default is True. 116 | _spec_property_naming (bool): True if the variable names in the input data 117 | are serialized names, as specified in the OpenAPI document. 118 | False if the variable names in the input data 119 | are pythonic names, e.g. snake case (default) 120 | _content_type (str/None): force body content-type. 121 | Default is None and content-type will be predicted by allowed 122 | content-types and body. 123 | _host_index (int/None): specifies the index of the server 124 | that we want to use. 125 | Default is read from the configuration. 126 | _request_auths (list): set to override the auth_settings for an a single 127 | request; this effectively ignores the authentication 128 | in the spec for a single request. 129 | Default is None 130 | async_req (bool): execute request asynchronously 131 | 132 | Returns: 133 | SearchResponse 134 | If the method is called asynchronously, returns the request 135 | thread. 136 | """ 137 | kwargs["async_req"] = kwargs.get("async_req", False) 138 | kwargs["_return_http_data_only"] = kwargs.get("_return_http_data_only", True) 139 | kwargs["_preload_content"] = kwargs.get("_preload_content", True) 140 | kwargs["_request_timeout"] = kwargs.get("_request_timeout", None) 141 | kwargs["_check_input_type"] = kwargs.get("_check_input_type", True) 142 | kwargs["_check_return_type"] = kwargs.get("_check_return_type", True) 143 | kwargs["_spec_property_naming"] = kwargs.get("_spec_property_naming", False) 144 | kwargs["_content_type"] = kwargs.get("_content_type") 145 | kwargs["_host_index"] = kwargs.get("_host_index") 146 | kwargs["_request_auths"] = kwargs.get("_request_auths", None) 147 | return self.search_endpoint.call_with_http_info(**kwargs) 148 | -------------------------------------------------------------------------------- /python-client/deutschland/tagesschau/apis/__init__.py: -------------------------------------------------------------------------------- 1 | # flake8: noqa 2 | 3 | # Import all APIs into this package. 4 | # If you have many APIs here with many many models used in each API this may 5 | # raise a `RecursionError`. 6 | # In order to avoid this, import only the API that you directly need like: 7 | # 8 | # from deutschland.tagesschau.api.channels_api import ChannelsApi 9 | # 10 | # or import this package, but before doing it, use: 11 | # 12 | # import sys 13 | # sys.setrecursionlimit(n) 14 | 15 | # Import APIs into API package: 16 | from deutschland.tagesschau.api.channels_api import ChannelsApi 17 | from deutschland.tagesschau.api.homepage_api import HomepageApi 18 | from deutschland.tagesschau.api.news_api import NewsApi 19 | from deutschland.tagesschau.api.search_api import SearchApi 20 | -------------------------------------------------------------------------------- /python-client/deutschland/tagesschau/exceptions.py: -------------------------------------------------------------------------------- 1 | """ 2 | Tagesschau API 3 | 4 | Die Tagesschau ist eine Nachrichtensendung der ARD (Abkürzung für Arbeitsgemeinschaft der öffentlich-rechtlichen Rundfunkanstalten der Bundesrepublik Deutschland), die von ARD-aktuell in Hamburg produziert und mehrmals täglich ausgestrahlt wird. ARD-aktuell ist seit 1977 die zentrale Fernsehnachrichtenredaktion der ARD, bei welcher es sich wiederum um einen Rundfunkverbund handelt, der aus den Landesrundfunkanstalten und der Deutschen Welle besteht.

Über die hier dokumentierte API stehen auf [www.tagesschau.de](https://www.tagesschau.de) aktuelle Nachrichten und Medienbeiträge im JSON-Format zur Verfügung.

**Achtung:** Die Nutzung der Inhalte für den privaten, nicht-kommerziellen Gebrauch ist gestattet, die Veröffentlichung hingegen nicht - mit Ausnahme von Angeboten, die explizit unter der CC-Lizenz stehen (https://tagesschau.de/creativecommons). Es ist unzulässig, mehr als 60 Abrufe pro Stunde zu tätigen. # noqa: E501 5 | 6 | The version of the OpenAPI document: 2.0.1 7 | Contact: andreasfischer1985@web.de 8 | Generated by: https://openapi-generator.tech 9 | """ 10 | 11 | 12 | class OpenApiException(Exception): 13 | """The base exception class for all OpenAPIExceptions""" 14 | 15 | 16 | class ApiTypeError(OpenApiException, TypeError): 17 | def __init__(self, msg, path_to_item=None, valid_classes=None, key_type=None): 18 | """Raises an exception for TypeErrors 19 | 20 | Args: 21 | msg (str): the exception message 22 | 23 | Keyword Args: 24 | path_to_item (list): a list of keys an indices to get to the 25 | current_item 26 | None if unset 27 | valid_classes (tuple): the primitive classes that current item 28 | should be an instance of 29 | None if unset 30 | key_type (bool): False if our value is a value in a dict 31 | True if it is a key in a dict 32 | False if our item is an item in a list 33 | None if unset 34 | """ 35 | self.path_to_item = path_to_item 36 | self.valid_classes = valid_classes 37 | self.key_type = key_type 38 | full_msg = msg 39 | if path_to_item: 40 | full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) 41 | super(ApiTypeError, self).__init__(full_msg) 42 | 43 | 44 | class ApiValueError(OpenApiException, ValueError): 45 | def __init__(self, msg, path_to_item=None): 46 | """ 47 | Args: 48 | msg (str): the exception message 49 | 50 | Keyword Args: 51 | path_to_item (list) the path to the exception in the 52 | received_data dict. None if unset 53 | """ 54 | 55 | self.path_to_item = path_to_item 56 | full_msg = msg 57 | if path_to_item: 58 | full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) 59 | super(ApiValueError, self).__init__(full_msg) 60 | 61 | 62 | class ApiAttributeError(OpenApiException, AttributeError): 63 | def __init__(self, msg, path_to_item=None): 64 | """ 65 | Raised when an attribute reference or assignment fails. 66 | 67 | Args: 68 | msg (str): the exception message 69 | 70 | Keyword Args: 71 | path_to_item (None/list) the path to the exception in the 72 | received_data dict 73 | """ 74 | self.path_to_item = path_to_item 75 | full_msg = msg 76 | if path_to_item: 77 | full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) 78 | super(ApiAttributeError, self).__init__(full_msg) 79 | 80 | 81 | class ApiKeyError(OpenApiException, KeyError): 82 | def __init__(self, msg, path_to_item=None): 83 | """ 84 | Args: 85 | msg (str): the exception message 86 | 87 | Keyword Args: 88 | path_to_item (None/list) the path to the exception in the 89 | received_data dict 90 | """ 91 | self.path_to_item = path_to_item 92 | full_msg = msg 93 | if path_to_item: 94 | full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) 95 | super(ApiKeyError, self).__init__(full_msg) 96 | 97 | 98 | class ApiException(OpenApiException): 99 | 100 | def __init__(self, status=None, reason=None, http_resp=None): 101 | if http_resp: 102 | self.status = http_resp.status 103 | self.reason = http_resp.reason 104 | self.body = http_resp.data 105 | self.headers = http_resp.getheaders() 106 | else: 107 | self.status = status 108 | self.reason = reason 109 | self.body = None 110 | self.headers = None 111 | 112 | def __str__(self): 113 | """Custom error messages for exception""" 114 | error_message = "Status Code: {0}\n" "Reason: {1}\n".format( 115 | self.status, self.reason 116 | ) 117 | if self.headers: 118 | error_message += "HTTP response headers: {0}\n".format(self.headers) 119 | 120 | if self.body: 121 | error_message += "HTTP response body: {0}\n".format(self.body) 122 | 123 | return error_message 124 | 125 | 126 | class NotFoundException(ApiException): 127 | 128 | def __init__(self, status=None, reason=None, http_resp=None): 129 | super(NotFoundException, self).__init__(status, reason, http_resp) 130 | 131 | 132 | class UnauthorizedException(ApiException): 133 | 134 | def __init__(self, status=None, reason=None, http_resp=None): 135 | super(UnauthorizedException, self).__init__(status, reason, http_resp) 136 | 137 | 138 | class ForbiddenException(ApiException): 139 | 140 | def __init__(self, status=None, reason=None, http_resp=None): 141 | super(ForbiddenException, self).__init__(status, reason, http_resp) 142 | 143 | 144 | class ServiceException(ApiException): 145 | 146 | def __init__(self, status=None, reason=None, http_resp=None): 147 | super(ServiceException, self).__init__(status, reason, http_resp) 148 | 149 | 150 | def render_path(path_to_item): 151 | """Returns a string representation of a path""" 152 | result = "" 153 | for pth in path_to_item: 154 | if isinstance(pth, int): 155 | result += "[{0}]".format(pth) 156 | else: 157 | result += "['{0}']".format(pth) 158 | return result 159 | -------------------------------------------------------------------------------- /python-client/deutschland/tagesschau/model/__init__.py: -------------------------------------------------------------------------------- 1 | # we can not import model classes here because that would create a circular 2 | # reference which would not work in python2 3 | # do not import all models into this module because that uses a lot of memory and stack frames 4 | # if you need the ability to import all models from one package, import them with 5 | # from deutschland.tagesschau.models import ModelA, ModelB 6 | -------------------------------------------------------------------------------- /python-client/deutschland/tagesschau/model/channels_response.py: -------------------------------------------------------------------------------- 1 | """ 2 | Tagesschau API 3 | 4 | Die Tagesschau ist eine Nachrichtensendung der ARD (Abkürzung für Arbeitsgemeinschaft der öffentlich-rechtlichen Rundfunkanstalten der Bundesrepublik Deutschland), die von ARD-aktuell in Hamburg produziert und mehrmals täglich ausgestrahlt wird. ARD-aktuell ist seit 1977 die zentrale Fernsehnachrichtenredaktion der ARD, bei welcher es sich wiederum um einen Rundfunkverbund handelt, der aus den Landesrundfunkanstalten und der Deutschen Welle besteht.

Über die hier dokumentierte API stehen auf [www.tagesschau.de](https://www.tagesschau.de) aktuelle Nachrichten und Medienbeiträge im JSON-Format zur Verfügung.

**Achtung:** Die Nutzung der Inhalte für den privaten, nicht-kommerziellen Gebrauch ist gestattet, die Veröffentlichung hingegen nicht - mit Ausnahme von Angeboten, die explizit unter der CC-Lizenz stehen (https://tagesschau.de/creativecommons). Es ist unzulässig, mehr als 60 Abrufe pro Stunde zu tätigen. # noqa: E501 5 | 6 | The version of the OpenAPI document: 2.0.1 7 | Contact: andreasfischer1985@web.de 8 | Generated by: https://openapi-generator.tech 9 | """ 10 | 11 | import re # noqa: F401 12 | import sys # noqa: F401 13 | 14 | from deutschland.tagesschau.exceptions import ApiAttributeError 15 | from deutschland.tagesschau.model_utils import ( # noqa: F401 16 | ApiTypeError, 17 | ModelComposed, 18 | ModelNormal, 19 | ModelSimple, 20 | OpenApiModel, 21 | cached_property, 22 | change_keys_js_to_python, 23 | convert_js_args_to_python_args, 24 | date, 25 | datetime, 26 | file_type, 27 | none_type, 28 | validate_get_composed_info, 29 | ) 30 | 31 | 32 | def lazy_import(): 33 | from deutschland.tagesschau.model.channels_response_channels_inner import ( 34 | ChannelsResponseChannelsInner, 35 | ) 36 | 37 | globals()["ChannelsResponseChannelsInner"] = ChannelsResponseChannelsInner 38 | 39 | 40 | class ChannelsResponse(ModelNormal): 41 | """NOTE: This class is auto generated by OpenAPI Generator. 42 | Ref: https://openapi-generator.tech 43 | 44 | Do not edit the class manually. 45 | 46 | Attributes: 47 | allowed_values (dict): The key is the tuple path to the attribute 48 | and the for var_name this is (var_name,). The value is a dict 49 | with a capitalized key describing the allowed value and an allowed 50 | value. These dicts store the allowed enum values. 51 | attribute_map (dict): The key is attribute name 52 | and the value is json key in definition. 53 | discriminator_value_class_map (dict): A dict to go from the discriminator 54 | variable value to the discriminator class name. 55 | validations (dict): The key is the tuple path to the attribute 56 | and the for var_name this is (var_name,). The value is a dict 57 | that stores validations for max_length, min_length, max_items, 58 | min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, 59 | inclusive_minimum, and regex. 60 | additional_properties_type (tuple): A tuple of classes accepted 61 | as additional properties values. 62 | """ 63 | 64 | allowed_values = {} 65 | 66 | validations = {} 67 | 68 | @cached_property 69 | def additional_properties_type(): 70 | """ 71 | This must be a method because a model may have properties that are 72 | of type self, this must run after the class is loaded 73 | """ 74 | lazy_import() 75 | return ( 76 | bool, 77 | date, 78 | datetime, 79 | dict, 80 | float, 81 | int, 82 | list, 83 | str, 84 | none_type, 85 | ) # noqa: E501 86 | 87 | _nullable = False 88 | 89 | @cached_property 90 | def openapi_types(): 91 | """ 92 | This must be a method because a model may have properties that are 93 | of type self, this must run after the class is loaded 94 | 95 | Returns 96 | openapi_types (dict): The key is attribute name 97 | and the value is attribute type. 98 | """ 99 | lazy_import() 100 | return { 101 | "channels": ([ChannelsResponseChannelsInner],), # noqa: E501 102 | "type": (str,), # noqa: E501 103 | } 104 | 105 | @cached_property 106 | def discriminator(): 107 | return None 108 | 109 | attribute_map = { 110 | "channels": "channels", # noqa: E501 111 | "type": "type", # noqa: E501 112 | } 113 | 114 | read_only_vars = {} 115 | 116 | _composed_schemas = {} 117 | 118 | @classmethod 119 | @convert_js_args_to_python_args 120 | def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 121 | """ChannelsResponse - a model defined in OpenAPI 122 | 123 | Keyword Args: 124 | _check_type (bool): if True, values for parameters in openapi_types 125 | will be type checked and a TypeError will be 126 | raised if the wrong type is input. 127 | Defaults to True 128 | _path_to_item (tuple/list): This is a list of keys or values to 129 | drill down to the model in received_data 130 | when deserializing a response 131 | _spec_property_naming (bool): True if the variable names in the input data 132 | are serialized names, as specified in the OpenAPI document. 133 | False if the variable names in the input data 134 | are pythonic names, e.g. snake case (default) 135 | _configuration (Configuration): the instance to use when 136 | deserializing a file_type parameter. 137 | If passed, type conversion is attempted 138 | If omitted no type conversion is done. 139 | _visited_composed_classes (tuple): This stores a tuple of 140 | classes that we have traveled through so that 141 | if we see that class again we will not use its 142 | discriminator again. 143 | When traveling through a discriminator, the 144 | composed schema that is 145 | is traveled through is added to this set. 146 | For example if Animal has a discriminator 147 | petType and we pass in "Dog", and the class Dog 148 | allOf includes Animal, we move through Animal 149 | once using the discriminator, and pick Dog. 150 | Then in Dog, we will make an instance of the 151 | Animal class but this time we won't travel 152 | through its discriminator because we passed in 153 | _visited_composed_classes = (Animal,) 154 | channels ([ChannelsResponseChannelsInner]): [optional] # noqa: E501 155 | type (str): [optional] # noqa: E501 156 | """ 157 | 158 | _check_type = kwargs.pop("_check_type", True) 159 | _spec_property_naming = kwargs.pop("_spec_property_naming", True) 160 | _path_to_item = kwargs.pop("_path_to_item", ()) 161 | _configuration = kwargs.pop("_configuration", None) 162 | _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) 163 | 164 | self = super(OpenApiModel, cls).__new__(cls) 165 | 166 | if args: 167 | for arg in args: 168 | if isinstance(arg, dict): 169 | kwargs.update(arg) 170 | else: 171 | raise ApiTypeError( 172 | "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." 173 | % ( 174 | args, 175 | self.__class__.__name__, 176 | ), 177 | path_to_item=_path_to_item, 178 | valid_classes=(self.__class__,), 179 | ) 180 | 181 | self._data_store = {} 182 | self._check_type = _check_type 183 | self._spec_property_naming = _spec_property_naming 184 | self._path_to_item = _path_to_item 185 | self._configuration = _configuration 186 | self._visited_composed_classes = _visited_composed_classes + (self.__class__,) 187 | 188 | for var_name, var_value in kwargs.items(): 189 | if ( 190 | var_name not in self.attribute_map 191 | and self._configuration is not None 192 | and self._configuration.discard_unknown_keys 193 | and self.additional_properties_type is None 194 | ): 195 | # discard variable. 196 | continue 197 | setattr(self, var_name, var_value) 198 | return self 199 | 200 | required_properties = set( 201 | [ 202 | "_data_store", 203 | "_check_type", 204 | "_spec_property_naming", 205 | "_path_to_item", 206 | "_configuration", 207 | "_visited_composed_classes", 208 | ] 209 | ) 210 | 211 | @convert_js_args_to_python_args 212 | def __init__(self, *args, **kwargs): # noqa: E501 213 | """ChannelsResponse - a model defined in OpenAPI 214 | 215 | Keyword Args: 216 | _check_type (bool): if True, values for parameters in openapi_types 217 | will be type checked and a TypeError will be 218 | raised if the wrong type is input. 219 | Defaults to True 220 | _path_to_item (tuple/list): This is a list of keys or values to 221 | drill down to the model in received_data 222 | when deserializing a response 223 | _spec_property_naming (bool): True if the variable names in the input data 224 | are serialized names, as specified in the OpenAPI document. 225 | False if the variable names in the input data 226 | are pythonic names, e.g. snake case (default) 227 | _configuration (Configuration): the instance to use when 228 | deserializing a file_type parameter. 229 | If passed, type conversion is attempted 230 | If omitted no type conversion is done. 231 | _visited_composed_classes (tuple): This stores a tuple of 232 | classes that we have traveled through so that 233 | if we see that class again we will not use its 234 | discriminator again. 235 | When traveling through a discriminator, the 236 | composed schema that is 237 | is traveled through is added to this set. 238 | For example if Animal has a discriminator 239 | petType and we pass in "Dog", and the class Dog 240 | allOf includes Animal, we move through Animal 241 | once using the discriminator, and pick Dog. 242 | Then in Dog, we will make an instance of the 243 | Animal class but this time we won't travel 244 | through its discriminator because we passed in 245 | _visited_composed_classes = (Animal,) 246 | channels ([ChannelsResponseChannelsInner]): [optional] # noqa: E501 247 | type (str): [optional] # noqa: E501 248 | """ 249 | 250 | _check_type = kwargs.pop("_check_type", True) 251 | _spec_property_naming = kwargs.pop("_spec_property_naming", False) 252 | _path_to_item = kwargs.pop("_path_to_item", ()) 253 | _configuration = kwargs.pop("_configuration", None) 254 | _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) 255 | 256 | if args: 257 | for arg in args: 258 | if isinstance(arg, dict): 259 | kwargs.update(arg) 260 | else: 261 | raise ApiTypeError( 262 | "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." 263 | % ( 264 | args, 265 | self.__class__.__name__, 266 | ), 267 | path_to_item=_path_to_item, 268 | valid_classes=(self.__class__,), 269 | ) 270 | 271 | self._data_store = {} 272 | self._check_type = _check_type 273 | self._spec_property_naming = _spec_property_naming 274 | self._path_to_item = _path_to_item 275 | self._configuration = _configuration 276 | self._visited_composed_classes = _visited_composed_classes + (self.__class__,) 277 | 278 | for var_name, var_value in kwargs.items(): 279 | if ( 280 | var_name not in self.attribute_map 281 | and self._configuration is not None 282 | and self._configuration.discard_unknown_keys 283 | and self.additional_properties_type is None 284 | ): 285 | # discard variable. 286 | continue 287 | setattr(self, var_name, var_value) 288 | if var_name in self.read_only_vars: 289 | raise ApiAttributeError( 290 | f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " 291 | f"class with read only attributes." 292 | ) 293 | -------------------------------------------------------------------------------- /python-client/deutschland/tagesschau/model/channels_response_channels_inner.py: -------------------------------------------------------------------------------- 1 | """ 2 | Tagesschau API 3 | 4 | Die Tagesschau ist eine Nachrichtensendung der ARD (Abkürzung für Arbeitsgemeinschaft der öffentlich-rechtlichen Rundfunkanstalten der Bundesrepublik Deutschland), die von ARD-aktuell in Hamburg produziert und mehrmals täglich ausgestrahlt wird. ARD-aktuell ist seit 1977 die zentrale Fernsehnachrichtenredaktion der ARD, bei welcher es sich wiederum um einen Rundfunkverbund handelt, der aus den Landesrundfunkanstalten und der Deutschen Welle besteht.

Über die hier dokumentierte API stehen auf [www.tagesschau.de](https://www.tagesschau.de) aktuelle Nachrichten und Medienbeiträge im JSON-Format zur Verfügung.

**Achtung:** Die Nutzung der Inhalte für den privaten, nicht-kommerziellen Gebrauch ist gestattet, die Veröffentlichung hingegen nicht - mit Ausnahme von Angeboten, die explizit unter der CC-Lizenz stehen (https://tagesschau.de/creativecommons). Es ist unzulässig, mehr als 60 Abrufe pro Stunde zu tätigen. # noqa: E501 5 | 6 | The version of the OpenAPI document: 2.0.1 7 | Contact: andreasfischer1985@web.de 8 | Generated by: https://openapi-generator.tech 9 | """ 10 | 11 | import re # noqa: F401 12 | import sys # noqa: F401 13 | 14 | from deutschland.tagesschau.exceptions import ApiAttributeError 15 | from deutschland.tagesschau.model_utils import ( # noqa: F401 16 | ApiTypeError, 17 | ModelComposed, 18 | ModelNormal, 19 | ModelSimple, 20 | OpenApiModel, 21 | cached_property, 22 | change_keys_js_to_python, 23 | convert_js_args_to_python_args, 24 | date, 25 | datetime, 26 | file_type, 27 | none_type, 28 | validate_get_composed_info, 29 | ) 30 | 31 | 32 | class ChannelsResponseChannelsInner(ModelNormal): 33 | """NOTE: This class is auto generated by OpenAPI Generator. 34 | Ref: https://openapi-generator.tech 35 | 36 | Do not edit the class manually. 37 | 38 | Attributes: 39 | allowed_values (dict): The key is the tuple path to the attribute 40 | and the for var_name this is (var_name,). The value is a dict 41 | with a capitalized key describing the allowed value and an allowed 42 | value. These dicts store the allowed enum values. 43 | attribute_map (dict): The key is attribute name 44 | and the value is json key in definition. 45 | discriminator_value_class_map (dict): A dict to go from the discriminator 46 | variable value to the discriminator class name. 47 | validations (dict): The key is the tuple path to the attribute 48 | and the for var_name this is (var_name,). The value is a dict 49 | that stores validations for max_length, min_length, max_items, 50 | min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, 51 | inclusive_minimum, and regex. 52 | additional_properties_type (tuple): A tuple of classes accepted 53 | as additional properties values. 54 | """ 55 | 56 | allowed_values = {} 57 | 58 | validations = {} 59 | 60 | @cached_property 61 | def additional_properties_type(): 62 | """ 63 | This must be a method because a model may have properties that are 64 | of type self, this must run after the class is loaded 65 | """ 66 | return ( 67 | bool, 68 | date, 69 | datetime, 70 | dict, 71 | float, 72 | int, 73 | list, 74 | str, 75 | none_type, 76 | ) # noqa: E501 77 | 78 | _nullable = False 79 | 80 | @cached_property 81 | def openapi_types(): 82 | """ 83 | This must be a method because a model may have properties that are 84 | of type self, this must run after the class is loaded 85 | 86 | Returns 87 | openapi_types (dict): The key is attribute name 88 | and the value is attribute type. 89 | """ 90 | return { 91 | "sophora_id": (str,), # noqa: E501 92 | "external_id": (str,), # noqa: E501 93 | "title": (str,), # noqa: E501 94 | "teaser_image": ( 95 | {str: (bool, date, datetime, dict, float, int, list, str, none_type)}, 96 | ), # noqa: E501 97 | "tracking": ( 98 | [{str: (bool, date, datetime, dict, float, int, list, str, none_type)}], 99 | ), # noqa: E501 100 | "tags": ( 101 | [{str: (bool, date, datetime, dict, float, int, list, str, none_type)}], 102 | ), # noqa: E501 103 | "update_check_url": (str,), # noqa: E501 104 | "streams": ( 105 | {str: (bool, date, datetime, dict, float, int, list, str, none_type)}, 106 | ), # noqa: E501 107 | "copyright": (str,), # noqa: E501 108 | "type": (str,), # noqa: E501 109 | "alttext": (str,), # noqa: E501 110 | } 111 | 112 | @cached_property 113 | def discriminator(): 114 | return None 115 | 116 | attribute_map = { 117 | "sophora_id": "sophoraId", # noqa: E501 118 | "external_id": "externalId", # noqa: E501 119 | "title": "title", # noqa: E501 120 | "teaser_image": "teaserImage", # noqa: E501 121 | "tracking": "tracking", # noqa: E501 122 | "tags": "tags", # noqa: E501 123 | "update_check_url": "updateCheckUrl", # noqa: E501 124 | "streams": "streams", # noqa: E501 125 | "copyright": "copyright", # noqa: E501 126 | "type": "type", # noqa: E501 127 | "alttext": "alttext", # noqa: E501 128 | } 129 | 130 | read_only_vars = {} 131 | 132 | _composed_schemas = {} 133 | 134 | @classmethod 135 | @convert_js_args_to_python_args 136 | def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 137 | """ChannelsResponseChannelsInner - a model defined in OpenAPI 138 | 139 | Keyword Args: 140 | _check_type (bool): if True, values for parameters in openapi_types 141 | will be type checked and a TypeError will be 142 | raised if the wrong type is input. 143 | Defaults to True 144 | _path_to_item (tuple/list): This is a list of keys or values to 145 | drill down to the model in received_data 146 | when deserializing a response 147 | _spec_property_naming (bool): True if the variable names in the input data 148 | are serialized names, as specified in the OpenAPI document. 149 | False if the variable names in the input data 150 | are pythonic names, e.g. snake case (default) 151 | _configuration (Configuration): the instance to use when 152 | deserializing a file_type parameter. 153 | If passed, type conversion is attempted 154 | If omitted no type conversion is done. 155 | _visited_composed_classes (tuple): This stores a tuple of 156 | classes that we have traveled through so that 157 | if we see that class again we will not use its 158 | discriminator again. 159 | When traveling through a discriminator, the 160 | composed schema that is 161 | is traveled through is added to this set. 162 | For example if Animal has a discriminator 163 | petType and we pass in "Dog", and the class Dog 164 | allOf includes Animal, we move through Animal 165 | once using the discriminator, and pick Dog. 166 | Then in Dog, we will make an instance of the 167 | Animal class but this time we won't travel 168 | through its discriminator because we passed in 169 | _visited_composed_classes = (Animal,) 170 | sophora_id (str): [optional] # noqa: E501 171 | external_id (str): [optional] # noqa: E501 172 | title (str): [optional] # noqa: E501 173 | teaser_image ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): [optional] # noqa: E501 174 | tracking ([{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]): [optional] # noqa: E501 175 | tags ([{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]): [optional] # noqa: E501 176 | update_check_url (str): [optional] # noqa: E501 177 | streams ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): [optional] # noqa: E501 178 | copyright (str): [optional] # noqa: E501 179 | type (str): [optional] # noqa: E501 180 | alttext (str): [optional] # noqa: E501 181 | """ 182 | 183 | _check_type = kwargs.pop("_check_type", True) 184 | _spec_property_naming = kwargs.pop("_spec_property_naming", True) 185 | _path_to_item = kwargs.pop("_path_to_item", ()) 186 | _configuration = kwargs.pop("_configuration", None) 187 | _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) 188 | 189 | self = super(OpenApiModel, cls).__new__(cls) 190 | 191 | if args: 192 | for arg in args: 193 | if isinstance(arg, dict): 194 | kwargs.update(arg) 195 | else: 196 | raise ApiTypeError( 197 | "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." 198 | % ( 199 | args, 200 | self.__class__.__name__, 201 | ), 202 | path_to_item=_path_to_item, 203 | valid_classes=(self.__class__,), 204 | ) 205 | 206 | self._data_store = {} 207 | self._check_type = _check_type 208 | self._spec_property_naming = _spec_property_naming 209 | self._path_to_item = _path_to_item 210 | self._configuration = _configuration 211 | self._visited_composed_classes = _visited_composed_classes + (self.__class__,) 212 | 213 | for var_name, var_value in kwargs.items(): 214 | if ( 215 | var_name not in self.attribute_map 216 | and self._configuration is not None 217 | and self._configuration.discard_unknown_keys 218 | and self.additional_properties_type is None 219 | ): 220 | # discard variable. 221 | continue 222 | setattr(self, var_name, var_value) 223 | return self 224 | 225 | required_properties = set( 226 | [ 227 | "_data_store", 228 | "_check_type", 229 | "_spec_property_naming", 230 | "_path_to_item", 231 | "_configuration", 232 | "_visited_composed_classes", 233 | ] 234 | ) 235 | 236 | @convert_js_args_to_python_args 237 | def __init__(self, *args, **kwargs): # noqa: E501 238 | """ChannelsResponseChannelsInner - a model defined in OpenAPI 239 | 240 | Keyword Args: 241 | _check_type (bool): if True, values for parameters in openapi_types 242 | will be type checked and a TypeError will be 243 | raised if the wrong type is input. 244 | Defaults to True 245 | _path_to_item (tuple/list): This is a list of keys or values to 246 | drill down to the model in received_data 247 | when deserializing a response 248 | _spec_property_naming (bool): True if the variable names in the input data 249 | are serialized names, as specified in the OpenAPI document. 250 | False if the variable names in the input data 251 | are pythonic names, e.g. snake case (default) 252 | _configuration (Configuration): the instance to use when 253 | deserializing a file_type parameter. 254 | If passed, type conversion is attempted 255 | If omitted no type conversion is done. 256 | _visited_composed_classes (tuple): This stores a tuple of 257 | classes that we have traveled through so that 258 | if we see that class again we will not use its 259 | discriminator again. 260 | When traveling through a discriminator, the 261 | composed schema that is 262 | is traveled through is added to this set. 263 | For example if Animal has a discriminator 264 | petType and we pass in "Dog", and the class Dog 265 | allOf includes Animal, we move through Animal 266 | once using the discriminator, and pick Dog. 267 | Then in Dog, we will make an instance of the 268 | Animal class but this time we won't travel 269 | through its discriminator because we passed in 270 | _visited_composed_classes = (Animal,) 271 | sophora_id (str): [optional] # noqa: E501 272 | external_id (str): [optional] # noqa: E501 273 | title (str): [optional] # noqa: E501 274 | teaser_image ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): [optional] # noqa: E501 275 | tracking ([{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]): [optional] # noqa: E501 276 | tags ([{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]): [optional] # noqa: E501 277 | update_check_url (str): [optional] # noqa: E501 278 | streams ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): [optional] # noqa: E501 279 | copyright (str): [optional] # noqa: E501 280 | type (str): [optional] # noqa: E501 281 | alttext (str): [optional] # noqa: E501 282 | """ 283 | 284 | _check_type = kwargs.pop("_check_type", True) 285 | _spec_property_naming = kwargs.pop("_spec_property_naming", False) 286 | _path_to_item = kwargs.pop("_path_to_item", ()) 287 | _configuration = kwargs.pop("_configuration", None) 288 | _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) 289 | 290 | if args: 291 | for arg in args: 292 | if isinstance(arg, dict): 293 | kwargs.update(arg) 294 | else: 295 | raise ApiTypeError( 296 | "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." 297 | % ( 298 | args, 299 | self.__class__.__name__, 300 | ), 301 | path_to_item=_path_to_item, 302 | valid_classes=(self.__class__,), 303 | ) 304 | 305 | self._data_store = {} 306 | self._check_type = _check_type 307 | self._spec_property_naming = _spec_property_naming 308 | self._path_to_item = _path_to_item 309 | self._configuration = _configuration 310 | self._visited_composed_classes = _visited_composed_classes + (self.__class__,) 311 | 312 | for var_name, var_value in kwargs.items(): 313 | if ( 314 | var_name not in self.attribute_map 315 | and self._configuration is not None 316 | and self._configuration.discard_unknown_keys 317 | and self.additional_properties_type is None 318 | ): 319 | # discard variable. 320 | continue 321 | setattr(self, var_name, var_value) 322 | if var_name in self.read_only_vars: 323 | raise ApiAttributeError( 324 | f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " 325 | f"class with read only attributes." 326 | ) 327 | -------------------------------------------------------------------------------- /python-client/deutschland/tagesschau/model/homepage_response.py: -------------------------------------------------------------------------------- 1 | """ 2 | Tagesschau API 3 | 4 | Die Tagesschau ist eine Nachrichtensendung der ARD (Abkürzung für Arbeitsgemeinschaft der öffentlich-rechtlichen Rundfunkanstalten der Bundesrepublik Deutschland), die von ARD-aktuell in Hamburg produziert und mehrmals täglich ausgestrahlt wird. ARD-aktuell ist seit 1977 die zentrale Fernsehnachrichtenredaktion der ARD, bei welcher es sich wiederum um einen Rundfunkverbund handelt, der aus den Landesrundfunkanstalten und der Deutschen Welle besteht.

Über die hier dokumentierte API stehen auf [www.tagesschau.de](https://www.tagesschau.de) aktuelle Nachrichten und Medienbeiträge im JSON-Format zur Verfügung.

**Achtung:** Die Nutzung der Inhalte für den privaten, nicht-kommerziellen Gebrauch ist gestattet, die Veröffentlichung hingegen nicht - mit Ausnahme von Angeboten, die explizit unter der CC-Lizenz stehen (https://tagesschau.de/creativecommons). Es ist unzulässig, mehr als 60 Abrufe pro Stunde zu tätigen. # noqa: E501 5 | 6 | The version of the OpenAPI document: 2.0.1 7 | Contact: andreasfischer1985@web.de 8 | Generated by: https://openapi-generator.tech 9 | """ 10 | 11 | import re # noqa: F401 12 | import sys # noqa: F401 13 | 14 | from deutschland.tagesschau.exceptions import ApiAttributeError 15 | from deutschland.tagesschau.model_utils import ( # noqa: F401 16 | ApiTypeError, 17 | ModelComposed, 18 | ModelNormal, 19 | ModelSimple, 20 | OpenApiModel, 21 | cached_property, 22 | change_keys_js_to_python, 23 | convert_js_args_to_python_args, 24 | date, 25 | datetime, 26 | file_type, 27 | none_type, 28 | validate_get_composed_info, 29 | ) 30 | 31 | 32 | def lazy_import(): 33 | from deutschland.tagesschau.model.homepage_response_news_inner import ( 34 | HomepageResponseNewsInner, 35 | ) 36 | from deutschland.tagesschau.model.homepage_response_regional_inner import ( 37 | HomepageResponseRegionalInner, 38 | ) 39 | 40 | globals()["HomepageResponseNewsInner"] = HomepageResponseNewsInner 41 | globals()["HomepageResponseRegionalInner"] = HomepageResponseRegionalInner 42 | 43 | 44 | class HomepageResponse(ModelNormal): 45 | """NOTE: This class is auto generated by OpenAPI Generator. 46 | Ref: https://openapi-generator.tech 47 | 48 | Do not edit the class manually. 49 | 50 | Attributes: 51 | allowed_values (dict): The key is the tuple path to the attribute 52 | and the for var_name this is (var_name,). The value is a dict 53 | with a capitalized key describing the allowed value and an allowed 54 | value. These dicts store the allowed enum values. 55 | attribute_map (dict): The key is attribute name 56 | and the value is json key in definition. 57 | discriminator_value_class_map (dict): A dict to go from the discriminator 58 | variable value to the discriminator class name. 59 | validations (dict): The key is the tuple path to the attribute 60 | and the for var_name this is (var_name,). The value is a dict 61 | that stores validations for max_length, min_length, max_items, 62 | min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, 63 | inclusive_minimum, and regex. 64 | additional_properties_type (tuple): A tuple of classes accepted 65 | as additional properties values. 66 | """ 67 | 68 | allowed_values = {} 69 | 70 | validations = {} 71 | 72 | @cached_property 73 | def additional_properties_type(): 74 | """ 75 | This must be a method because a model may have properties that are 76 | of type self, this must run after the class is loaded 77 | """ 78 | lazy_import() 79 | return ( 80 | bool, 81 | date, 82 | datetime, 83 | dict, 84 | float, 85 | int, 86 | list, 87 | str, 88 | none_type, 89 | ) # noqa: E501 90 | 91 | _nullable = False 92 | 93 | @cached_property 94 | def openapi_types(): 95 | """ 96 | This must be a method because a model may have properties that are 97 | of type self, this must run after the class is loaded 98 | 99 | Returns 100 | openapi_types (dict): The key is attribute name 101 | and the value is attribute type. 102 | """ 103 | lazy_import() 104 | return { 105 | "news": ([HomepageResponseNewsInner],), # noqa: E501 106 | "regional": ([HomepageResponseRegionalInner],), # noqa: E501 107 | "new_stories_count_link": (str,), # noqa: E501 108 | "type": (str,), # noqa: E501 109 | } 110 | 111 | @cached_property 112 | def discriminator(): 113 | return None 114 | 115 | attribute_map = { 116 | "news": "news", # noqa: E501 117 | "regional": "regional", # noqa: E501 118 | "new_stories_count_link": "newStoriesCountLink", # noqa: E501 119 | "type": "type", # noqa: E501 120 | } 121 | 122 | read_only_vars = {} 123 | 124 | _composed_schemas = {} 125 | 126 | @classmethod 127 | @convert_js_args_to_python_args 128 | def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 129 | """HomepageResponse - a model defined in OpenAPI 130 | 131 | Keyword Args: 132 | _check_type (bool): if True, values for parameters in openapi_types 133 | will be type checked and a TypeError will be 134 | raised if the wrong type is input. 135 | Defaults to True 136 | _path_to_item (tuple/list): This is a list of keys or values to 137 | drill down to the model in received_data 138 | when deserializing a response 139 | _spec_property_naming (bool): True if the variable names in the input data 140 | are serialized names, as specified in the OpenAPI document. 141 | False if the variable names in the input data 142 | are pythonic names, e.g. snake case (default) 143 | _configuration (Configuration): the instance to use when 144 | deserializing a file_type parameter. 145 | If passed, type conversion is attempted 146 | If omitted no type conversion is done. 147 | _visited_composed_classes (tuple): This stores a tuple of 148 | classes that we have traveled through so that 149 | if we see that class again we will not use its 150 | discriminator again. 151 | When traveling through a discriminator, the 152 | composed schema that is 153 | is traveled through is added to this set. 154 | For example if Animal has a discriminator 155 | petType and we pass in "Dog", and the class Dog 156 | allOf includes Animal, we move through Animal 157 | once using the discriminator, and pick Dog. 158 | Then in Dog, we will make an instance of the 159 | Animal class but this time we won't travel 160 | through its discriminator because we passed in 161 | _visited_composed_classes = (Animal,) 162 | news ([HomepageResponseNewsInner]): [optional] # noqa: E501 163 | regional ([HomepageResponseRegionalInner]): [optional] # noqa: E501 164 | new_stories_count_link (str): [optional] # noqa: E501 165 | type (str): [optional] # noqa: E501 166 | """ 167 | 168 | _check_type = kwargs.pop("_check_type", True) 169 | _spec_property_naming = kwargs.pop("_spec_property_naming", True) 170 | _path_to_item = kwargs.pop("_path_to_item", ()) 171 | _configuration = kwargs.pop("_configuration", None) 172 | _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) 173 | 174 | self = super(OpenApiModel, cls).__new__(cls) 175 | 176 | if args: 177 | for arg in args: 178 | if isinstance(arg, dict): 179 | kwargs.update(arg) 180 | else: 181 | raise ApiTypeError( 182 | "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." 183 | % ( 184 | args, 185 | self.__class__.__name__, 186 | ), 187 | path_to_item=_path_to_item, 188 | valid_classes=(self.__class__,), 189 | ) 190 | 191 | self._data_store = {} 192 | self._check_type = _check_type 193 | self._spec_property_naming = _spec_property_naming 194 | self._path_to_item = _path_to_item 195 | self._configuration = _configuration 196 | self._visited_composed_classes = _visited_composed_classes + (self.__class__,) 197 | 198 | for var_name, var_value in kwargs.items(): 199 | if ( 200 | var_name not in self.attribute_map 201 | and self._configuration is not None 202 | and self._configuration.discard_unknown_keys 203 | and self.additional_properties_type is None 204 | ): 205 | # discard variable. 206 | continue 207 | setattr(self, var_name, var_value) 208 | return self 209 | 210 | required_properties = set( 211 | [ 212 | "_data_store", 213 | "_check_type", 214 | "_spec_property_naming", 215 | "_path_to_item", 216 | "_configuration", 217 | "_visited_composed_classes", 218 | ] 219 | ) 220 | 221 | @convert_js_args_to_python_args 222 | def __init__(self, *args, **kwargs): # noqa: E501 223 | """HomepageResponse - a model defined in OpenAPI 224 | 225 | Keyword Args: 226 | _check_type (bool): if True, values for parameters in openapi_types 227 | will be type checked and a TypeError will be 228 | raised if the wrong type is input. 229 | Defaults to True 230 | _path_to_item (tuple/list): This is a list of keys or values to 231 | drill down to the model in received_data 232 | when deserializing a response 233 | _spec_property_naming (bool): True if the variable names in the input data 234 | are serialized names, as specified in the OpenAPI document. 235 | False if the variable names in the input data 236 | are pythonic names, e.g. snake case (default) 237 | _configuration (Configuration): the instance to use when 238 | deserializing a file_type parameter. 239 | If passed, type conversion is attempted 240 | If omitted no type conversion is done. 241 | _visited_composed_classes (tuple): This stores a tuple of 242 | classes that we have traveled through so that 243 | if we see that class again we will not use its 244 | discriminator again. 245 | When traveling through a discriminator, the 246 | composed schema that is 247 | is traveled through is added to this set. 248 | For example if Animal has a discriminator 249 | petType and we pass in "Dog", and the class Dog 250 | allOf includes Animal, we move through Animal 251 | once using the discriminator, and pick Dog. 252 | Then in Dog, we will make an instance of the 253 | Animal class but this time we won't travel 254 | through its discriminator because we passed in 255 | _visited_composed_classes = (Animal,) 256 | news ([HomepageResponseNewsInner]): [optional] # noqa: E501 257 | regional ([HomepageResponseRegionalInner]): [optional] # noqa: E501 258 | new_stories_count_link (str): [optional] # noqa: E501 259 | type (str): [optional] # noqa: E501 260 | """ 261 | 262 | _check_type = kwargs.pop("_check_type", True) 263 | _spec_property_naming = kwargs.pop("_spec_property_naming", False) 264 | _path_to_item = kwargs.pop("_path_to_item", ()) 265 | _configuration = kwargs.pop("_configuration", None) 266 | _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) 267 | 268 | if args: 269 | for arg in args: 270 | if isinstance(arg, dict): 271 | kwargs.update(arg) 272 | else: 273 | raise ApiTypeError( 274 | "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." 275 | % ( 276 | args, 277 | self.__class__.__name__, 278 | ), 279 | path_to_item=_path_to_item, 280 | valid_classes=(self.__class__,), 281 | ) 282 | 283 | self._data_store = {} 284 | self._check_type = _check_type 285 | self._spec_property_naming = _spec_property_naming 286 | self._path_to_item = _path_to_item 287 | self._configuration = _configuration 288 | self._visited_composed_classes = _visited_composed_classes + (self.__class__,) 289 | 290 | for var_name, var_value in kwargs.items(): 291 | if ( 292 | var_name not in self.attribute_map 293 | and self._configuration is not None 294 | and self._configuration.discard_unknown_keys 295 | and self.additional_properties_type is None 296 | ): 297 | # discard variable. 298 | continue 299 | setattr(self, var_name, var_value) 300 | if var_name in self.read_only_vars: 301 | raise ApiAttributeError( 302 | f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " 303 | f"class with read only attributes." 304 | ) 305 | -------------------------------------------------------------------------------- /python-client/deutschland/tagesschau/model/multimedia_response.py: -------------------------------------------------------------------------------- 1 | """ 2 | Tagesschau API 3 | 4 | Die Tagesschau ist eine Nachrichtensendung der ARD (Abkürzung für Arbeitsgemeinschaft der öffentlich-rechtlichen Rundfunkanstalten der Bundesrepublik Deutschland), die von ARD-aktuell in Hamburg produziert und mehrmals täglich ausgestrahlt wird. ARD-aktuell ist seit 1977 die zentrale Fernsehnachrichtenredaktion der ARD, bei welcher es sich wiederum um einen Rundfunkverbund handelt, der aus den Landesrundfunkanstalten und der Deutschen Welle besteht.

Über die hier dokumentierte API stehen auf [www.tagesschau.de](https://www.tagesschau.de) aktuelle Nachrichten und Medienbeiträge im JSON-Format zur Verfügung.

**Achtung:** Die Nutzung der Inhalte für den privaten, nicht-kommerziellen Gebrauch ist gestattet, die Veröffentlichung hingegen nicht - mit Ausnahme von Angeboten, die explizit unter der CC-Lizenz stehen (https://tagesschau.de/creativecommons). Es ist unzulässig, mehr als 60 Abrufe pro Stunde zu tätigen. # noqa: E501 5 | 6 | The version of the OpenAPI document: 2.0.1 7 | Contact: andreasfischer1985@web.de 8 | Generated by: https://openapi-generator.tech 9 | """ 10 | 11 | import re # noqa: F401 12 | import sys # noqa: F401 13 | 14 | from deutschland.tagesschau.exceptions import ApiAttributeError 15 | from deutschland.tagesschau.model_utils import ( # noqa: F401 16 | ApiTypeError, 17 | ModelComposed, 18 | ModelNormal, 19 | ModelSimple, 20 | OpenApiModel, 21 | cached_property, 22 | change_keys_js_to_python, 23 | convert_js_args_to_python_args, 24 | date, 25 | datetime, 26 | file_type, 27 | none_type, 28 | validate_get_composed_info, 29 | ) 30 | 31 | 32 | def lazy_import(): 33 | from deutschland.tagesschau.model.homepage_response_regional_inner import ( 34 | HomepageResponseRegionalInner, 35 | ) 36 | from deutschland.tagesschau.model.news_response_news_inner import ( 37 | NewsResponseNewsInner, 38 | ) 39 | 40 | globals()["HomepageResponseRegionalInner"] = HomepageResponseRegionalInner 41 | globals()["NewsResponseNewsInner"] = NewsResponseNewsInner 42 | 43 | 44 | class MultimediaResponse(ModelNormal): 45 | """NOTE: This class is auto generated by OpenAPI Generator. 46 | Ref: https://openapi-generator.tech 47 | 48 | Do not edit the class manually. 49 | 50 | Attributes: 51 | allowed_values (dict): The key is the tuple path to the attribute 52 | and the for var_name this is (var_name,). The value is a dict 53 | with a capitalized key describing the allowed value and an allowed 54 | value. These dicts store the allowed enum values. 55 | attribute_map (dict): The key is attribute name 56 | and the value is json key in definition. 57 | discriminator_value_class_map (dict): A dict to go from the discriminator 58 | variable value to the discriminator class name. 59 | validations (dict): The key is the tuple path to the attribute 60 | and the for var_name this is (var_name,). The value is a dict 61 | that stores validations for max_length, min_length, max_items, 62 | min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, 63 | inclusive_minimum, and regex. 64 | additional_properties_type (tuple): A tuple of classes accepted 65 | as additional properties values. 66 | """ 67 | 68 | allowed_values = {} 69 | 70 | validations = {} 71 | 72 | @cached_property 73 | def additional_properties_type(): 74 | """ 75 | This must be a method because a model may have properties that are 76 | of type self, this must run after the class is loaded 77 | """ 78 | lazy_import() 79 | return ( 80 | bool, 81 | date, 82 | datetime, 83 | dict, 84 | float, 85 | int, 86 | list, 87 | str, 88 | none_type, 89 | ) # noqa: E501 90 | 91 | _nullable = False 92 | 93 | @cached_property 94 | def openapi_types(): 95 | """ 96 | This must be a method because a model may have properties that are 97 | of type self, this must run after the class is loaded 98 | 99 | Returns 100 | openapi_types (dict): The key is attribute name 101 | and the value is attribute type. 102 | """ 103 | lazy_import() 104 | return { 105 | "news": ([NewsResponseNewsInner],), # noqa: E501 106 | "regional": ([HomepageResponseRegionalInner],), # noqa: E501 107 | "new_stories_count_link": (str,), # noqa: E501 108 | "type": (str,), # noqa: E501 109 | } 110 | 111 | @cached_property 112 | def discriminator(): 113 | return None 114 | 115 | attribute_map = { 116 | "news": "news", # noqa: E501 117 | "regional": "regional", # noqa: E501 118 | "new_stories_count_link": "newStoriesCountLink", # noqa: E501 119 | "type": "type", # noqa: E501 120 | } 121 | 122 | read_only_vars = {} 123 | 124 | _composed_schemas = {} 125 | 126 | @classmethod 127 | @convert_js_args_to_python_args 128 | def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 129 | """MultimediaResponse - a model defined in OpenAPI 130 | 131 | Keyword Args: 132 | _check_type (bool): if True, values for parameters in openapi_types 133 | will be type checked and a TypeError will be 134 | raised if the wrong type is input. 135 | Defaults to True 136 | _path_to_item (tuple/list): This is a list of keys or values to 137 | drill down to the model in received_data 138 | when deserializing a response 139 | _spec_property_naming (bool): True if the variable names in the input data 140 | are serialized names, as specified in the OpenAPI document. 141 | False if the variable names in the input data 142 | are pythonic names, e.g. snake case (default) 143 | _configuration (Configuration): the instance to use when 144 | deserializing a file_type parameter. 145 | If passed, type conversion is attempted 146 | If omitted no type conversion is done. 147 | _visited_composed_classes (tuple): This stores a tuple of 148 | classes that we have traveled through so that 149 | if we see that class again we will not use its 150 | discriminator again. 151 | When traveling through a discriminator, the 152 | composed schema that is 153 | is traveled through is added to this set. 154 | For example if Animal has a discriminator 155 | petType and we pass in "Dog", and the class Dog 156 | allOf includes Animal, we move through Animal 157 | once using the discriminator, and pick Dog. 158 | Then in Dog, we will make an instance of the 159 | Animal class but this time we won't travel 160 | through its discriminator because we passed in 161 | _visited_composed_classes = (Animal,) 162 | news ([NewsResponseNewsInner]): [optional] # noqa: E501 163 | regional ([HomepageResponseRegionalInner]): [optional] # noqa: E501 164 | new_stories_count_link (str): [optional] # noqa: E501 165 | type (str): [optional] # noqa: E501 166 | """ 167 | 168 | _check_type = kwargs.pop("_check_type", True) 169 | _spec_property_naming = kwargs.pop("_spec_property_naming", True) 170 | _path_to_item = kwargs.pop("_path_to_item", ()) 171 | _configuration = kwargs.pop("_configuration", None) 172 | _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) 173 | 174 | self = super(OpenApiModel, cls).__new__(cls) 175 | 176 | if args: 177 | for arg in args: 178 | if isinstance(arg, dict): 179 | kwargs.update(arg) 180 | else: 181 | raise ApiTypeError( 182 | "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." 183 | % ( 184 | args, 185 | self.__class__.__name__, 186 | ), 187 | path_to_item=_path_to_item, 188 | valid_classes=(self.__class__,), 189 | ) 190 | 191 | self._data_store = {} 192 | self._check_type = _check_type 193 | self._spec_property_naming = _spec_property_naming 194 | self._path_to_item = _path_to_item 195 | self._configuration = _configuration 196 | self._visited_composed_classes = _visited_composed_classes + (self.__class__,) 197 | 198 | for var_name, var_value in kwargs.items(): 199 | if ( 200 | var_name not in self.attribute_map 201 | and self._configuration is not None 202 | and self._configuration.discard_unknown_keys 203 | and self.additional_properties_type is None 204 | ): 205 | # discard variable. 206 | continue 207 | setattr(self, var_name, var_value) 208 | return self 209 | 210 | required_properties = set( 211 | [ 212 | "_data_store", 213 | "_check_type", 214 | "_spec_property_naming", 215 | "_path_to_item", 216 | "_configuration", 217 | "_visited_composed_classes", 218 | ] 219 | ) 220 | 221 | @convert_js_args_to_python_args 222 | def __init__(self, *args, **kwargs): # noqa: E501 223 | """MultimediaResponse - a model defined in OpenAPI 224 | 225 | Keyword Args: 226 | _check_type (bool): if True, values for parameters in openapi_types 227 | will be type checked and a TypeError will be 228 | raised if the wrong type is input. 229 | Defaults to True 230 | _path_to_item (tuple/list): This is a list of keys or values to 231 | drill down to the model in received_data 232 | when deserializing a response 233 | _spec_property_naming (bool): True if the variable names in the input data 234 | are serialized names, as specified in the OpenAPI document. 235 | False if the variable names in the input data 236 | are pythonic names, e.g. snake case (default) 237 | _configuration (Configuration): the instance to use when 238 | deserializing a file_type parameter. 239 | If passed, type conversion is attempted 240 | If omitted no type conversion is done. 241 | _visited_composed_classes (tuple): This stores a tuple of 242 | classes that we have traveled through so that 243 | if we see that class again we will not use its 244 | discriminator again. 245 | When traveling through a discriminator, the 246 | composed schema that is 247 | is traveled through is added to this set. 248 | For example if Animal has a discriminator 249 | petType and we pass in "Dog", and the class Dog 250 | allOf includes Animal, we move through Animal 251 | once using the discriminator, and pick Dog. 252 | Then in Dog, we will make an instance of the 253 | Animal class but this time we won't travel 254 | through its discriminator because we passed in 255 | _visited_composed_classes = (Animal,) 256 | news ([NewsResponseNewsInner]): [optional] # noqa: E501 257 | regional ([HomepageResponseRegionalInner]): [optional] # noqa: E501 258 | new_stories_count_link (str): [optional] # noqa: E501 259 | type (str): [optional] # noqa: E501 260 | """ 261 | 262 | _check_type = kwargs.pop("_check_type", True) 263 | _spec_property_naming = kwargs.pop("_spec_property_naming", False) 264 | _path_to_item = kwargs.pop("_path_to_item", ()) 265 | _configuration = kwargs.pop("_configuration", None) 266 | _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) 267 | 268 | if args: 269 | for arg in args: 270 | if isinstance(arg, dict): 271 | kwargs.update(arg) 272 | else: 273 | raise ApiTypeError( 274 | "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." 275 | % ( 276 | args, 277 | self.__class__.__name__, 278 | ), 279 | path_to_item=_path_to_item, 280 | valid_classes=(self.__class__,), 281 | ) 282 | 283 | self._data_store = {} 284 | self._check_type = _check_type 285 | self._spec_property_naming = _spec_property_naming 286 | self._path_to_item = _path_to_item 287 | self._configuration = _configuration 288 | self._visited_composed_classes = _visited_composed_classes + (self.__class__,) 289 | 290 | for var_name, var_value in kwargs.items(): 291 | if ( 292 | var_name not in self.attribute_map 293 | and self._configuration is not None 294 | and self._configuration.discard_unknown_keys 295 | and self.additional_properties_type is None 296 | ): 297 | # discard variable. 298 | continue 299 | setattr(self, var_name, var_value) 300 | if var_name in self.read_only_vars: 301 | raise ApiAttributeError( 302 | f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " 303 | f"class with read only attributes." 304 | ) 305 | -------------------------------------------------------------------------------- /python-client/deutschland/tagesschau/model/news_response.py: -------------------------------------------------------------------------------- 1 | """ 2 | Tagesschau API 3 | 4 | Die Tagesschau ist eine Nachrichtensendung der ARD (Abkürzung für Arbeitsgemeinschaft der öffentlich-rechtlichen Rundfunkanstalten der Bundesrepublik Deutschland), die von ARD-aktuell in Hamburg produziert und mehrmals täglich ausgestrahlt wird. ARD-aktuell ist seit 1977 die zentrale Fernsehnachrichtenredaktion der ARD, bei welcher es sich wiederum um einen Rundfunkverbund handelt, der aus den Landesrundfunkanstalten und der Deutschen Welle besteht.

Über die hier dokumentierte API stehen auf [www.tagesschau.de](https://www.tagesschau.de) aktuelle Nachrichten und Medienbeiträge im JSON-Format zur Verfügung.

**Achtung:** Die Nutzung der Inhalte für den privaten, nicht-kommerziellen Gebrauch ist gestattet, die Veröffentlichung hingegen nicht - mit Ausnahme von Angeboten, die explizit unter der CC-Lizenz stehen (https://tagesschau.de/creativecommons). Es ist unzulässig, mehr als 60 Abrufe pro Stunde zu tätigen. # noqa: E501 5 | 6 | The version of the OpenAPI document: 2.0.1 7 | Contact: andreasfischer1985@web.de 8 | Generated by: https://openapi-generator.tech 9 | """ 10 | 11 | import re # noqa: F401 12 | import sys # noqa: F401 13 | 14 | from deutschland.tagesschau.exceptions import ApiAttributeError 15 | from deutschland.tagesschau.model_utils import ( # noqa: F401 16 | ApiTypeError, 17 | ModelComposed, 18 | ModelNormal, 19 | ModelSimple, 20 | OpenApiModel, 21 | cached_property, 22 | change_keys_js_to_python, 23 | convert_js_args_to_python_args, 24 | date, 25 | datetime, 26 | file_type, 27 | none_type, 28 | validate_get_composed_info, 29 | ) 30 | 31 | 32 | def lazy_import(): 33 | from deutschland.tagesschau.model.homepage_response_regional_inner import ( 34 | HomepageResponseRegionalInner, 35 | ) 36 | from deutschland.tagesschau.model.news_response_news_inner import ( 37 | NewsResponseNewsInner, 38 | ) 39 | 40 | globals()["HomepageResponseRegionalInner"] = HomepageResponseRegionalInner 41 | globals()["NewsResponseNewsInner"] = NewsResponseNewsInner 42 | 43 | 44 | class NewsResponse(ModelNormal): 45 | """NOTE: This class is auto generated by OpenAPI Generator. 46 | Ref: https://openapi-generator.tech 47 | 48 | Do not edit the class manually. 49 | 50 | Attributes: 51 | allowed_values (dict): The key is the tuple path to the attribute 52 | and the for var_name this is (var_name,). The value is a dict 53 | with a capitalized key describing the allowed value and an allowed 54 | value. These dicts store the allowed enum values. 55 | attribute_map (dict): The key is attribute name 56 | and the value is json key in definition. 57 | discriminator_value_class_map (dict): A dict to go from the discriminator 58 | variable value to the discriminator class name. 59 | validations (dict): The key is the tuple path to the attribute 60 | and the for var_name this is (var_name,). The value is a dict 61 | that stores validations for max_length, min_length, max_items, 62 | min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, 63 | inclusive_minimum, and regex. 64 | additional_properties_type (tuple): A tuple of classes accepted 65 | as additional properties values. 66 | """ 67 | 68 | allowed_values = {} 69 | 70 | validations = {} 71 | 72 | @cached_property 73 | def additional_properties_type(): 74 | """ 75 | This must be a method because a model may have properties that are 76 | of type self, this must run after the class is loaded 77 | """ 78 | lazy_import() 79 | return ( 80 | bool, 81 | date, 82 | datetime, 83 | dict, 84 | float, 85 | int, 86 | list, 87 | str, 88 | none_type, 89 | ) # noqa: E501 90 | 91 | _nullable = False 92 | 93 | @cached_property 94 | def openapi_types(): 95 | """ 96 | This must be a method because a model may have properties that are 97 | of type self, this must run after the class is loaded 98 | 99 | Returns 100 | openapi_types (dict): The key is attribute name 101 | and the value is attribute type. 102 | """ 103 | lazy_import() 104 | return { 105 | "news": ([NewsResponseNewsInner],), # noqa: E501 106 | "regional": ([HomepageResponseRegionalInner],), # noqa: E501 107 | "new_stories_count_link": ( 108 | [{str: (bool, date, datetime, dict, float, int, list, str, none_type)}], 109 | ), # noqa: E501 110 | "type": (str,), # noqa: E501 111 | "next_page": (str,), # noqa: E501 112 | } 113 | 114 | @cached_property 115 | def discriminator(): 116 | return None 117 | 118 | attribute_map = { 119 | "news": "news", # noqa: E501 120 | "regional": "regional", # noqa: E501 121 | "new_stories_count_link": "newStoriesCountLink", # noqa: E501 122 | "type": "type", # noqa: E501 123 | "next_page": "nextPage", # noqa: E501 124 | } 125 | 126 | read_only_vars = {} 127 | 128 | _composed_schemas = {} 129 | 130 | @classmethod 131 | @convert_js_args_to_python_args 132 | def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 133 | """NewsResponse - a model defined in OpenAPI 134 | 135 | Keyword Args: 136 | _check_type (bool): if True, values for parameters in openapi_types 137 | will be type checked and a TypeError will be 138 | raised if the wrong type is input. 139 | Defaults to True 140 | _path_to_item (tuple/list): This is a list of keys or values to 141 | drill down to the model in received_data 142 | when deserializing a response 143 | _spec_property_naming (bool): True if the variable names in the input data 144 | are serialized names, as specified in the OpenAPI document. 145 | False if the variable names in the input data 146 | are pythonic names, e.g. snake case (default) 147 | _configuration (Configuration): the instance to use when 148 | deserializing a file_type parameter. 149 | If passed, type conversion is attempted 150 | If omitted no type conversion is done. 151 | _visited_composed_classes (tuple): This stores a tuple of 152 | classes that we have traveled through so that 153 | if we see that class again we will not use its 154 | discriminator again. 155 | When traveling through a discriminator, the 156 | composed schema that is 157 | is traveled through is added to this set. 158 | For example if Animal has a discriminator 159 | petType and we pass in "Dog", and the class Dog 160 | allOf includes Animal, we move through Animal 161 | once using the discriminator, and pick Dog. 162 | Then in Dog, we will make an instance of the 163 | Animal class but this time we won't travel 164 | through its discriminator because we passed in 165 | _visited_composed_classes = (Animal,) 166 | news ([NewsResponseNewsInner]): [optional] # noqa: E501 167 | regional ([HomepageResponseRegionalInner]): [optional] # noqa: E501 168 | new_stories_count_link ([{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]): [optional] # noqa: E501 169 | type (str): [optional] # noqa: E501 170 | next_page (str): [optional] # noqa: E501 171 | """ 172 | 173 | _check_type = kwargs.pop("_check_type", True) 174 | _spec_property_naming = kwargs.pop("_spec_property_naming", True) 175 | _path_to_item = kwargs.pop("_path_to_item", ()) 176 | _configuration = kwargs.pop("_configuration", None) 177 | _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) 178 | 179 | self = super(OpenApiModel, cls).__new__(cls) 180 | 181 | if args: 182 | for arg in args: 183 | if isinstance(arg, dict): 184 | kwargs.update(arg) 185 | else: 186 | raise ApiTypeError( 187 | "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." 188 | % ( 189 | args, 190 | self.__class__.__name__, 191 | ), 192 | path_to_item=_path_to_item, 193 | valid_classes=(self.__class__,), 194 | ) 195 | 196 | self._data_store = {} 197 | self._check_type = _check_type 198 | self._spec_property_naming = _spec_property_naming 199 | self._path_to_item = _path_to_item 200 | self._configuration = _configuration 201 | self._visited_composed_classes = _visited_composed_classes + (self.__class__,) 202 | 203 | for var_name, var_value in kwargs.items(): 204 | if ( 205 | var_name not in self.attribute_map 206 | and self._configuration is not None 207 | and self._configuration.discard_unknown_keys 208 | and self.additional_properties_type is None 209 | ): 210 | # discard variable. 211 | continue 212 | setattr(self, var_name, var_value) 213 | return self 214 | 215 | required_properties = set( 216 | [ 217 | "_data_store", 218 | "_check_type", 219 | "_spec_property_naming", 220 | "_path_to_item", 221 | "_configuration", 222 | "_visited_composed_classes", 223 | ] 224 | ) 225 | 226 | @convert_js_args_to_python_args 227 | def __init__(self, *args, **kwargs): # noqa: E501 228 | """NewsResponse - a model defined in OpenAPI 229 | 230 | Keyword Args: 231 | _check_type (bool): if True, values for parameters in openapi_types 232 | will be type checked and a TypeError will be 233 | raised if the wrong type is input. 234 | Defaults to True 235 | _path_to_item (tuple/list): This is a list of keys or values to 236 | drill down to the model in received_data 237 | when deserializing a response 238 | _spec_property_naming (bool): True if the variable names in the input data 239 | are serialized names, as specified in the OpenAPI document. 240 | False if the variable names in the input data 241 | are pythonic names, e.g. snake case (default) 242 | _configuration (Configuration): the instance to use when 243 | deserializing a file_type parameter. 244 | If passed, type conversion is attempted 245 | If omitted no type conversion is done. 246 | _visited_composed_classes (tuple): This stores a tuple of 247 | classes that we have traveled through so that 248 | if we see that class again we will not use its 249 | discriminator again. 250 | When traveling through a discriminator, the 251 | composed schema that is 252 | is traveled through is added to this set. 253 | For example if Animal has a discriminator 254 | petType and we pass in "Dog", and the class Dog 255 | allOf includes Animal, we move through Animal 256 | once using the discriminator, and pick Dog. 257 | Then in Dog, we will make an instance of the 258 | Animal class but this time we won't travel 259 | through its discriminator because we passed in 260 | _visited_composed_classes = (Animal,) 261 | news ([NewsResponseNewsInner]): [optional] # noqa: E501 262 | regional ([HomepageResponseRegionalInner]): [optional] # noqa: E501 263 | new_stories_count_link ([{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]): [optional] # noqa: E501 264 | type (str): [optional] # noqa: E501 265 | next_page (str): [optional] # noqa: E501 266 | """ 267 | 268 | _check_type = kwargs.pop("_check_type", True) 269 | _spec_property_naming = kwargs.pop("_spec_property_naming", False) 270 | _path_to_item = kwargs.pop("_path_to_item", ()) 271 | _configuration = kwargs.pop("_configuration", None) 272 | _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) 273 | 274 | if args: 275 | for arg in args: 276 | if isinstance(arg, dict): 277 | kwargs.update(arg) 278 | else: 279 | raise ApiTypeError( 280 | "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." 281 | % ( 282 | args, 283 | self.__class__.__name__, 284 | ), 285 | path_to_item=_path_to_item, 286 | valid_classes=(self.__class__,), 287 | ) 288 | 289 | self._data_store = {} 290 | self._check_type = _check_type 291 | self._spec_property_naming = _spec_property_naming 292 | self._path_to_item = _path_to_item 293 | self._configuration = _configuration 294 | self._visited_composed_classes = _visited_composed_classes + (self.__class__,) 295 | 296 | for var_name, var_value in kwargs.items(): 297 | if ( 298 | var_name not in self.attribute_map 299 | and self._configuration is not None 300 | and self._configuration.discard_unknown_keys 301 | and self.additional_properties_type is None 302 | ): 303 | # discard variable. 304 | continue 305 | setattr(self, var_name, var_value) 306 | if var_name in self.read_only_vars: 307 | raise ApiAttributeError( 308 | f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " 309 | f"class with read only attributes." 310 | ) 311 | -------------------------------------------------------------------------------- /python-client/deutschland/tagesschau/model/search_response.py: -------------------------------------------------------------------------------- 1 | """ 2 | Tagesschau API 3 | 4 | Die Tagesschau ist eine Nachrichtensendung der ARD (Abkürzung für Arbeitsgemeinschaft der öffentlich-rechtlichen Rundfunkanstalten der Bundesrepublik Deutschland), die von ARD-aktuell in Hamburg produziert und mehrmals täglich ausgestrahlt wird. ARD-aktuell ist seit 1977 die zentrale Fernsehnachrichtenredaktion der ARD, bei welcher es sich wiederum um einen Rundfunkverbund handelt, der aus den Landesrundfunkanstalten und der Deutschen Welle besteht.

Über die hier dokumentierte API stehen auf [www.tagesschau.de](https://www.tagesschau.de) aktuelle Nachrichten und Medienbeiträge im JSON-Format zur Verfügung.

**Achtung:** Die Nutzung der Inhalte für den privaten, nicht-kommerziellen Gebrauch ist gestattet, die Veröffentlichung hingegen nicht - mit Ausnahme von Angeboten, die explizit unter der CC-Lizenz stehen (https://tagesschau.de/creativecommons). Es ist unzulässig, mehr als 60 Abrufe pro Stunde zu tätigen. # noqa: E501 5 | 6 | The version of the OpenAPI document: 2.0.1 7 | Contact: andreasfischer1985@web.de 8 | Generated by: https://openapi-generator.tech 9 | """ 10 | 11 | import re # noqa: F401 12 | import sys # noqa: F401 13 | 14 | from deutschland.tagesschau.exceptions import ApiAttributeError 15 | from deutschland.tagesschau.model_utils import ( # noqa: F401 16 | ApiTypeError, 17 | ModelComposed, 18 | ModelNormal, 19 | ModelSimple, 20 | OpenApiModel, 21 | cached_property, 22 | change_keys_js_to_python, 23 | convert_js_args_to_python_args, 24 | date, 25 | datetime, 26 | file_type, 27 | none_type, 28 | validate_get_composed_info, 29 | ) 30 | 31 | 32 | def lazy_import(): 33 | from deutschland.tagesschau.model.search_response_search_results_inner import ( 34 | SearchResponseSearchResultsInner, 35 | ) 36 | 37 | globals()["SearchResponseSearchResultsInner"] = SearchResponseSearchResultsInner 38 | 39 | 40 | class SearchResponse(ModelNormal): 41 | """NOTE: This class is auto generated by OpenAPI Generator. 42 | Ref: https://openapi-generator.tech 43 | 44 | Do not edit the class manually. 45 | 46 | Attributes: 47 | allowed_values (dict): The key is the tuple path to the attribute 48 | and the for var_name this is (var_name,). The value is a dict 49 | with a capitalized key describing the allowed value and an allowed 50 | value. These dicts store the allowed enum values. 51 | attribute_map (dict): The key is attribute name 52 | and the value is json key in definition. 53 | discriminator_value_class_map (dict): A dict to go from the discriminator 54 | variable value to the discriminator class name. 55 | validations (dict): The key is the tuple path to the attribute 56 | and the for var_name this is (var_name,). The value is a dict 57 | that stores validations for max_length, min_length, max_items, 58 | min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, 59 | inclusive_minimum, and regex. 60 | additional_properties_type (tuple): A tuple of classes accepted 61 | as additional properties values. 62 | """ 63 | 64 | allowed_values = {} 65 | 66 | validations = {} 67 | 68 | @cached_property 69 | def additional_properties_type(): 70 | """ 71 | This must be a method because a model may have properties that are 72 | of type self, this must run after the class is loaded 73 | """ 74 | lazy_import() 75 | return ( 76 | bool, 77 | date, 78 | datetime, 79 | dict, 80 | float, 81 | int, 82 | list, 83 | str, 84 | none_type, 85 | ) # noqa: E501 86 | 87 | _nullable = False 88 | 89 | @cached_property 90 | def openapi_types(): 91 | """ 92 | This must be a method because a model may have properties that are 93 | of type self, this must run after the class is loaded 94 | 95 | Returns 96 | openapi_types (dict): The key is attribute name 97 | and the value is attribute type. 98 | """ 99 | lazy_import() 100 | return { 101 | "type": (str,), # noqa: E501 102 | "sophora_id": (str,), # noqa: E501 103 | "tracking_pixels": ( 104 | [{str: (bool, date, datetime, dict, float, int, list, str, none_type)}], 105 | ), # noqa: E501 106 | "details": (str,), # noqa: E501 107 | "details_web": (str,), # noqa: E501 108 | "date": (str,), # noqa: E501 109 | "search_text": (str,), # noqa: E501 110 | "query": (str,), # noqa: E501 111 | "total_item_count": (int,), # noqa: E501 112 | "solr_query": (str,), # noqa: E501 113 | "search_results": ([SearchResponseSearchResultsInner],), # noqa: E501 114 | } 115 | 116 | @cached_property 117 | def discriminator(): 118 | return None 119 | 120 | attribute_map = { 121 | "type": "type", # noqa: E501 122 | "sophora_id": "sophoraId", # noqa: E501 123 | "tracking_pixels": "trackingPixels", # noqa: E501 124 | "details": "details", # noqa: E501 125 | "details_web": "detailsWeb", # noqa: E501 126 | "date": "date", # noqa: E501 127 | "search_text": "searchText", # noqa: E501 128 | "query": "query", # noqa: E501 129 | "total_item_count": "totalItemCount", # noqa: E501 130 | "solr_query": "SolrQuery", # noqa: E501 131 | "search_results": "searchResults", # noqa: E501 132 | } 133 | 134 | read_only_vars = {} 135 | 136 | _composed_schemas = {} 137 | 138 | @classmethod 139 | @convert_js_args_to_python_args 140 | def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 141 | """SearchResponse - a model defined in OpenAPI 142 | 143 | Keyword Args: 144 | _check_type (bool): if True, values for parameters in openapi_types 145 | will be type checked and a TypeError will be 146 | raised if the wrong type is input. 147 | Defaults to True 148 | _path_to_item (tuple/list): This is a list of keys or values to 149 | drill down to the model in received_data 150 | when deserializing a response 151 | _spec_property_naming (bool): True if the variable names in the input data 152 | are serialized names, as specified in the OpenAPI document. 153 | False if the variable names in the input data 154 | are pythonic names, e.g. snake case (default) 155 | _configuration (Configuration): the instance to use when 156 | deserializing a file_type parameter. 157 | If passed, type conversion is attempted 158 | If omitted no type conversion is done. 159 | _visited_composed_classes (tuple): This stores a tuple of 160 | classes that we have traveled through so that 161 | if we see that class again we will not use its 162 | discriminator again. 163 | When traveling through a discriminator, the 164 | composed schema that is 165 | is traveled through is added to this set. 166 | For example if Animal has a discriminator 167 | petType and we pass in "Dog", and the class Dog 168 | allOf includes Animal, we move through Animal 169 | once using the discriminator, and pick Dog. 170 | Then in Dog, we will make an instance of the 171 | Animal class but this time we won't travel 172 | through its discriminator because we passed in 173 | _visited_composed_classes = (Animal,) 174 | type (str): [optional] # noqa: E501 175 | sophora_id (str): [optional] # noqa: E501 176 | tracking_pixels ([{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]): [optional] # noqa: E501 177 | details (str): [optional] # noqa: E501 178 | details_web (str): [optional] # noqa: E501 179 | date (str): [optional] # noqa: E501 180 | search_text (str): [optional] # noqa: E501 181 | query (str): [optional] # noqa: E501 182 | total_item_count (int): [optional] # noqa: E501 183 | solr_query (str): [optional] # noqa: E501 184 | search_results ([SearchResponseSearchResultsInner]): [optional] # noqa: E501 185 | """ 186 | 187 | _check_type = kwargs.pop("_check_type", True) 188 | _spec_property_naming = kwargs.pop("_spec_property_naming", True) 189 | _path_to_item = kwargs.pop("_path_to_item", ()) 190 | _configuration = kwargs.pop("_configuration", None) 191 | _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) 192 | 193 | self = super(OpenApiModel, cls).__new__(cls) 194 | 195 | if args: 196 | for arg in args: 197 | if isinstance(arg, dict): 198 | kwargs.update(arg) 199 | else: 200 | raise ApiTypeError( 201 | "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." 202 | % ( 203 | args, 204 | self.__class__.__name__, 205 | ), 206 | path_to_item=_path_to_item, 207 | valid_classes=(self.__class__,), 208 | ) 209 | 210 | self._data_store = {} 211 | self._check_type = _check_type 212 | self._spec_property_naming = _spec_property_naming 213 | self._path_to_item = _path_to_item 214 | self._configuration = _configuration 215 | self._visited_composed_classes = _visited_composed_classes + (self.__class__,) 216 | 217 | for var_name, var_value in kwargs.items(): 218 | if ( 219 | var_name not in self.attribute_map 220 | and self._configuration is not None 221 | and self._configuration.discard_unknown_keys 222 | and self.additional_properties_type is None 223 | ): 224 | # discard variable. 225 | continue 226 | setattr(self, var_name, var_value) 227 | return self 228 | 229 | required_properties = set( 230 | [ 231 | "_data_store", 232 | "_check_type", 233 | "_spec_property_naming", 234 | "_path_to_item", 235 | "_configuration", 236 | "_visited_composed_classes", 237 | ] 238 | ) 239 | 240 | @convert_js_args_to_python_args 241 | def __init__(self, *args, **kwargs): # noqa: E501 242 | """SearchResponse - a model defined in OpenAPI 243 | 244 | Keyword Args: 245 | _check_type (bool): if True, values for parameters in openapi_types 246 | will be type checked and a TypeError will be 247 | raised if the wrong type is input. 248 | Defaults to True 249 | _path_to_item (tuple/list): This is a list of keys or values to 250 | drill down to the model in received_data 251 | when deserializing a response 252 | _spec_property_naming (bool): True if the variable names in the input data 253 | are serialized names, as specified in the OpenAPI document. 254 | False if the variable names in the input data 255 | are pythonic names, e.g. snake case (default) 256 | _configuration (Configuration): the instance to use when 257 | deserializing a file_type parameter. 258 | If passed, type conversion is attempted 259 | If omitted no type conversion is done. 260 | _visited_composed_classes (tuple): This stores a tuple of 261 | classes that we have traveled through so that 262 | if we see that class again we will not use its 263 | discriminator again. 264 | When traveling through a discriminator, the 265 | composed schema that is 266 | is traveled through is added to this set. 267 | For example if Animal has a discriminator 268 | petType and we pass in "Dog", and the class Dog 269 | allOf includes Animal, we move through Animal 270 | once using the discriminator, and pick Dog. 271 | Then in Dog, we will make an instance of the 272 | Animal class but this time we won't travel 273 | through its discriminator because we passed in 274 | _visited_composed_classes = (Animal,) 275 | type (str): [optional] # noqa: E501 276 | sophora_id (str): [optional] # noqa: E501 277 | tracking_pixels ([{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]): [optional] # noqa: E501 278 | details (str): [optional] # noqa: E501 279 | details_web (str): [optional] # noqa: E501 280 | date (str): [optional] # noqa: E501 281 | search_text (str): [optional] # noqa: E501 282 | query (str): [optional] # noqa: E501 283 | total_item_count (int): [optional] # noqa: E501 284 | solr_query (str): [optional] # noqa: E501 285 | search_results ([SearchResponseSearchResultsInner]): [optional] # noqa: E501 286 | """ 287 | 288 | _check_type = kwargs.pop("_check_type", True) 289 | _spec_property_naming = kwargs.pop("_spec_property_naming", False) 290 | _path_to_item = kwargs.pop("_path_to_item", ()) 291 | _configuration = kwargs.pop("_configuration", None) 292 | _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) 293 | 294 | if args: 295 | for arg in args: 296 | if isinstance(arg, dict): 297 | kwargs.update(arg) 298 | else: 299 | raise ApiTypeError( 300 | "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." 301 | % ( 302 | args, 303 | self.__class__.__name__, 304 | ), 305 | path_to_item=_path_to_item, 306 | valid_classes=(self.__class__,), 307 | ) 308 | 309 | self._data_store = {} 310 | self._check_type = _check_type 311 | self._spec_property_naming = _spec_property_naming 312 | self._path_to_item = _path_to_item 313 | self._configuration = _configuration 314 | self._visited_composed_classes = _visited_composed_classes + (self.__class__,) 315 | 316 | for var_name, var_value in kwargs.items(): 317 | if ( 318 | var_name not in self.attribute_map 319 | and self._configuration is not None 320 | and self._configuration.discard_unknown_keys 321 | and self.additional_properties_type is None 322 | ): 323 | # discard variable. 324 | continue 325 | setattr(self, var_name, var_value) 326 | if var_name in self.read_only_vars: 327 | raise ApiAttributeError( 328 | f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " 329 | f"class with read only attributes." 330 | ) 331 | -------------------------------------------------------------------------------- /python-client/deutschland/tagesschau/models/__init__.py: -------------------------------------------------------------------------------- 1 | # flake8: noqa 2 | 3 | # import all models into this package 4 | # if you have many models here with many references from one model to another this may 5 | # raise a RecursionError 6 | # to avoid this, import only the models that you directly need like: 7 | # from from deutschland.tagesschau.model.pet import Pet 8 | # or import this package, but before doing it, use: 9 | # import sys 10 | # sys.setrecursionlimit(n) 11 | 12 | from deutschland.tagesschau.model.channels_response import ChannelsResponse 13 | from deutschland.tagesschau.model.channels_response_channels_inner import ( 14 | ChannelsResponseChannelsInner, 15 | ) 16 | from deutschland.tagesschau.model.homepage_response import HomepageResponse 17 | from deutschland.tagesschau.model.homepage_response_news_inner import ( 18 | HomepageResponseNewsInner, 19 | ) 20 | from deutschland.tagesschau.model.homepage_response_regional_inner import ( 21 | HomepageResponseRegionalInner, 22 | ) 23 | from deutschland.tagesschau.model.multimedia_response import MultimediaResponse 24 | from deutschland.tagesschau.model.news_response import NewsResponse 25 | from deutschland.tagesschau.model.news_response_news_inner import NewsResponseNewsInner 26 | from deutschland.tagesschau.model.search_response import SearchResponse 27 | from deutschland.tagesschau.model.search_response_search_results_inner import ( 28 | SearchResponseSearchResultsInner, 29 | ) 30 | -------------------------------------------------------------------------------- /python-client/docs/ChannelsApi.md: -------------------------------------------------------------------------------- 1 | # tagesschau.ChannelsApi 2 | 3 | All URIs are relative to *https://www.tagesschau.de* 4 | 5 | Method | HTTP request | Description 6 | ------------- | ------------- | ------------- 7 | [**channels**](ChannelsApi.md#channels) | **GET** /api2u/channels/ | Aktuelle Kanäle 8 | 9 | 10 | # **channels** 11 | > ChannelsResponse channels() 12 | 13 | Aktuelle Kanäle 14 | 15 | Aktuelle Kanäle (im Livestream: tagesschau24, tagesschau in 100 Sekunden, tagesschau, tagesschau 20 Uhr, tagesthemen, nachtmagazin, Bericht aus Berlin, tagesschau vor 20 Jahren, tagesschau mit Gebärdensprache 16 | 17 | ### Example 18 | 19 | 20 | ```python 21 | import time 22 | from deutschland import tagesschau 23 | from deutschland.tagesschau.api import channels_api 24 | from deutschland.tagesschau.model.channels_response import ChannelsResponse 25 | from pprint import pprint 26 | # Defining the host is optional and defaults to https://www.tagesschau.de 27 | # See configuration.py for a list of all supported configuration parameters. 28 | configuration = tagesschau.Configuration( 29 | host = "https://www.tagesschau.de" 30 | ) 31 | 32 | 33 | # Enter a context with an instance of the API client 34 | with tagesschau.ApiClient() as api_client: 35 | # Create an instance of the API class 36 | api_instance = channels_api.ChannelsApi(api_client) 37 | 38 | # example, this endpoint has no required or optional parameters 39 | try: 40 | # Aktuelle Kanäle 41 | api_response = api_instance.channels() 42 | pprint(api_response) 43 | except tagesschau.ApiException as e: 44 | print("Exception when calling ChannelsApi->channels: %s\n" % e) 45 | ``` 46 | 47 | 48 | ### Parameters 49 | This endpoint does not need any parameter. 50 | 51 | ### Return type 52 | 53 | [**ChannelsResponse**](ChannelsResponse.md) 54 | 55 | ### Authorization 56 | 57 | No authorization required 58 | 59 | ### HTTP request headers 60 | 61 | - **Content-Type**: Not defined 62 | - **Accept**: application/json 63 | 64 | 65 | ### HTTP response details 66 | 67 | | Status code | Description | Response headers | 68 | |-------------|-------------|------------------| 69 | **200** | OK | - | 70 | 71 | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 72 | 73 | -------------------------------------------------------------------------------- /python-client/docs/ChannelsResponse.md: -------------------------------------------------------------------------------- 1 | # ChannelsResponse 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **channels** | [**[ChannelsResponseChannelsInner]**](ChannelsResponseChannelsInner.md) | | [optional] 8 | **type** | **str** | | [optional] 9 | **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] 10 | 11 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 12 | 13 | 14 | -------------------------------------------------------------------------------- /python-client/docs/ChannelsResponseChannelsInner.md: -------------------------------------------------------------------------------- 1 | # ChannelsResponseChannelsInner 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **sophora_id** | **str** | | [optional] 8 | **external_id** | **str** | | [optional] 9 | **title** | **str** | | [optional] 10 | **teaser_image** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | | [optional] 11 | **tracking** | **[{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]** | | [optional] 12 | **tags** | **[{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]** | | [optional] 13 | **update_check_url** | **str** | | [optional] 14 | **streams** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | | [optional] 15 | **copyright** | **str** | | [optional] 16 | **type** | **str** | | [optional] 17 | **alttext** | **str** | | [optional] 18 | **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] 19 | 20 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 21 | 22 | 23 | -------------------------------------------------------------------------------- /python-client/docs/HomepageApi.md: -------------------------------------------------------------------------------- 1 | # tagesschau.HomepageApi 2 | 3 | All URIs are relative to *https://www.tagesschau.de* 4 | 5 | Method | HTTP request | Description 6 | ------------- | ------------- | ------------- 7 | [**homepage**](HomepageApi.md#homepage) | **GET** /api2u/homepage/ | Ausgewählte aktuelle Nachrichten und Eilmeldungen 8 | 9 | 10 | # **homepage** 11 | > HomepageResponse homepage() 12 | 13 | Ausgewählte aktuelle Nachrichten und Eilmeldungen 14 | 15 | Ausgewählte aktuelle Nachrichten und Eilmeldungen, sowie regionale Nachrichten, die auf der Startseite der Tagesschau-App zu sehen sind. 16 | 17 | ### Example 18 | 19 | 20 | ```python 21 | import time 22 | from deutschland import tagesschau 23 | from deutschland.tagesschau.api import homepage_api 24 | from deutschland.tagesschau.model.homepage_response import HomepageResponse 25 | from pprint import pprint 26 | # Defining the host is optional and defaults to https://www.tagesschau.de 27 | # See configuration.py for a list of all supported configuration parameters. 28 | configuration = tagesschau.Configuration( 29 | host = "https://www.tagesschau.de" 30 | ) 31 | 32 | 33 | # Enter a context with an instance of the API client 34 | with tagesschau.ApiClient() as api_client: 35 | # Create an instance of the API class 36 | api_instance = homepage_api.HomepageApi(api_client) 37 | 38 | # example, this endpoint has no required or optional parameters 39 | try: 40 | # Ausgewählte aktuelle Nachrichten und Eilmeldungen 41 | api_response = api_instance.homepage() 42 | pprint(api_response) 43 | except tagesschau.ApiException as e: 44 | print("Exception when calling HomepageApi->homepage: %s\n" % e) 45 | ``` 46 | 47 | 48 | ### Parameters 49 | This endpoint does not need any parameter. 50 | 51 | ### Return type 52 | 53 | [**HomepageResponse**](HomepageResponse.md) 54 | 55 | ### Authorization 56 | 57 | No authorization required 58 | 59 | ### HTTP request headers 60 | 61 | - **Content-Type**: Not defined 62 | - **Accept**: application/json 63 | 64 | 65 | ### HTTP response details 66 | 67 | | Status code | Description | Response headers | 68 | |-------------|-------------|------------------| 69 | **200** | OK | - | 70 | 71 | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 72 | 73 | -------------------------------------------------------------------------------- /python-client/docs/HomepageResponse.md: -------------------------------------------------------------------------------- 1 | # HomepageResponse 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **news** | [**[HomepageResponseNewsInner]**](HomepageResponseNewsInner.md) | | [optional] 8 | **regional** | [**[HomepageResponseRegionalInner]**](HomepageResponseRegionalInner.md) | | [optional] 9 | **new_stories_count_link** | **str** | | [optional] 10 | **type** | **str** | | [optional] 11 | **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] 12 | 13 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 14 | 15 | 16 | -------------------------------------------------------------------------------- /python-client/docs/HomepageResponseNewsInner.md: -------------------------------------------------------------------------------- 1 | # HomepageResponseNewsInner 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **sophora_id** | **str** | | [optional] 8 | **external_id** | **str** | | [optional] 9 | **title** | **str** | | [optional] 10 | **teaser_image** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | | [optional] 11 | **tracking** | **[{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]** | | [optional] 12 | **tags** | **[{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]** | | [optional] 13 | **region_id** | **str** | | [optional] 14 | **update_check_url** | **str** | | [optional] 15 | **images** | **[{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]** | | [optional] 16 | **streams** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | | [optional] 17 | **copyright** | **str** | | [optional] 18 | **details** | **str** | | [optional] 19 | **detailsweb** | **str** | | [optional] 20 | **share_url** | **str** | | [optional] 21 | **topline** | **str** | | [optional] 22 | **first_sentence** | **str** | | [optional] 23 | **geotags** | **str** | | [optional] 24 | **crop** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | | [optional] 25 | **ressort** | **str** | | [optional] 26 | **type** | **str** | | [optional] 27 | **breaking_news** | **bool** | | [optional] 28 | **first_frame** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | | [optional] 29 | **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] 30 | 31 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 32 | 33 | 34 | -------------------------------------------------------------------------------- /python-client/docs/HomepageResponseRegionalInner.md: -------------------------------------------------------------------------------- 1 | # HomepageResponseRegionalInner 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **sophora_id** | **str** | | [optional] 8 | **external_id** | **str** | | [optional] 9 | **title** | **str** | | [optional] 10 | **teaser_image** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | | [optional] 11 | **tracking** | **[{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]** | | [optional] 12 | **tags** | **[{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]** | | [optional] 13 | **update_check_url** | **str** | | [optional] 14 | **region_id** | **str** | | [optional] 15 | **images** | **[{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]** | | [optional] 16 | **details** | **str** | | [optional] 17 | **detailsweb** | **str** | | [optional] 18 | **share_url** | **str** | | [optional] 19 | **topline** | **str** | | [optional] 20 | **first_sentence** | **str** | | [optional] 21 | **geotags** | **str** | | [optional] 22 | **branding_image** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | | [optional] 23 | **type** | **str** | | [optional] 24 | **breaking_news** | **bool** | | [optional] 25 | **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] 26 | 27 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 28 | 29 | 30 | -------------------------------------------------------------------------------- /python-client/docs/MultimediaResponse.md: -------------------------------------------------------------------------------- 1 | # MultimediaResponse 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **news** | [**[NewsResponseNewsInner]**](NewsResponseNewsInner.md) | | [optional] 8 | **regional** | [**[HomepageResponseRegionalInner]**](HomepageResponseRegionalInner.md) | | [optional] 9 | **new_stories_count_link** | **str** | | [optional] 10 | **type** | **str** | | [optional] 11 | **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] 12 | 13 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 14 | 15 | 16 | -------------------------------------------------------------------------------- /python-client/docs/NewsApi.md: -------------------------------------------------------------------------------- 1 | # tagesschau.NewsApi 2 | 3 | All URIs are relative to *https://www.tagesschau.de* 4 | 5 | Method | HTTP request | Description 6 | ------------- | ------------- | ------------- 7 | [**news**](NewsApi.md#news) | **GET** /api2u/news/ | Aktuelle Nachrichten und Eilmeldungen 8 | 9 | 10 | # **news** 11 | > NewsResponse news() 12 | 13 | Aktuelle Nachrichten und Eilmeldungen 14 | 15 | Aktuelle Nachrichten und Eilmeldungen 16 | 17 | ### Example 18 | 19 | 20 | ```python 21 | import time 22 | from deutschland import tagesschau 23 | from deutschland.tagesschau.api import news_api 24 | from deutschland.tagesschau.model.news_response import NewsResponse 25 | from pprint import pprint 26 | # Defining the host is optional and defaults to https://www.tagesschau.de 27 | # See configuration.py for a list of all supported configuration parameters. 28 | configuration = tagesschau.Configuration( 29 | host = "https://www.tagesschau.de" 30 | ) 31 | 32 | 33 | # Enter a context with an instance of the API client 34 | with tagesschau.ApiClient() as api_client: 35 | # Create an instance of the API class 36 | api_instance = news_api.NewsApi(api_client) 37 | regions = 1 # int | Bundesland - 1=Baden-Württemberg, 2=Bayern, 3=Berlin, 4=Brandenburg, 5=Bremen, 6=Hamburg, 7=Hessen, 8=Mecklenburg-Vorpommern, 9=Niedersachsen, 10=Nordrhein-Westfalen, 11=Rheinland-Pfalz, 12=Saarland, 13=Sachsen, 14=Sachsen-Anhalt, 15=Schleswig-Holstein, 16=Thüringen. Mehrere Komma-getrennte Angaben möglich (z.B. regions=1,2). (optional) 38 | ressort = "ausland" # str | Ressort/Themengebiet (optional) 39 | 40 | # example passing only required values which don't have defaults set 41 | # and optional values 42 | try: 43 | # Aktuelle Nachrichten und Eilmeldungen 44 | api_response = api_instance.news(regions=regions, ressort=ressort) 45 | pprint(api_response) 46 | except tagesschau.ApiException as e: 47 | print("Exception when calling NewsApi->news: %s\n" % e) 48 | ``` 49 | 50 | 51 | ### Parameters 52 | 53 | Name | Type | Description | Notes 54 | ------------- | ------------- | ------------- | ------------- 55 | **regions** | **int**| Bundesland - 1=Baden-Württemberg, 2=Bayern, 3=Berlin, 4=Brandenburg, 5=Bremen, 6=Hamburg, 7=Hessen, 8=Mecklenburg-Vorpommern, 9=Niedersachsen, 10=Nordrhein-Westfalen, 11=Rheinland-Pfalz, 12=Saarland, 13=Sachsen, 14=Sachsen-Anhalt, 15=Schleswig-Holstein, 16=Thüringen. Mehrere Komma-getrennte Angaben möglich (z.B. regions=1,2). | [optional] 56 | **ressort** | **str**| Ressort/Themengebiet | [optional] 57 | 58 | ### Return type 59 | 60 | [**NewsResponse**](NewsResponse.md) 61 | 62 | ### Authorization 63 | 64 | No authorization required 65 | 66 | ### HTTP request headers 67 | 68 | - **Content-Type**: Not defined 69 | - **Accept**: application/json 70 | 71 | 72 | ### HTTP response details 73 | 74 | | Status code | Description | Response headers | 75 | |-------------|-------------|------------------| 76 | **200** | OK | - | 77 | 78 | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 79 | 80 | -------------------------------------------------------------------------------- /python-client/docs/NewsResponse.md: -------------------------------------------------------------------------------- 1 | # NewsResponse 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **news** | [**[NewsResponseNewsInner]**](NewsResponseNewsInner.md) | | [optional] 8 | **regional** | [**[HomepageResponseRegionalInner]**](HomepageResponseRegionalInner.md) | | [optional] 9 | **new_stories_count_link** | **[{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]** | | [optional] 10 | **type** | **str** | | [optional] 11 | **next_page** | **str** | | [optional] 12 | **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] 13 | 14 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 15 | 16 | 17 | -------------------------------------------------------------------------------- /python-client/docs/NewsResponseNewsInner.md: -------------------------------------------------------------------------------- 1 | # NewsResponseNewsInner 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **sophora_id** | **str** | | [optional] 8 | **external_id** | **str** | | [optional] 9 | **title** | **str** | | [optional] 10 | **teaser_image** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | | [optional] 11 | **date** | **str** | | [optional] 12 | **tracking** | **[{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]** | | [optional] 13 | **tags** | **[{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]** | | [optional] 14 | **update_check_url** | **str** | | [optional] 15 | **region_id** | **int** | | [optional] 16 | **details** | **str** | | [optional] 17 | **detailsweb** | **str** | | [optional] 18 | **share_url** | **str** | | [optional] 19 | **topline** | **str** | | [optional] 20 | **first_sentence** | **str** | | [optional] 21 | **geotags** | **[{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]** | | [optional] 22 | **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] 23 | 24 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 25 | 26 | 27 | -------------------------------------------------------------------------------- /python-client/docs/SearchApi.md: -------------------------------------------------------------------------------- 1 | # tagesschau.SearchApi 2 | 3 | All URIs are relative to *https://www.tagesschau.de* 4 | 5 | Method | HTTP request | Description 6 | ------------- | ------------- | ------------- 7 | [**search**](SearchApi.md#search) | **GET** /api2u/search/ | Suche 8 | 9 | 10 | # **search** 11 | > SearchResponse search() 12 | 13 | Suche 14 | 15 | Suche 16 | 17 | ### Example 18 | 19 | 20 | ```python 21 | import time 22 | from deutschland import tagesschau 23 | from deutschland.tagesschau.api import search_api 24 | from deutschland.tagesschau.model.search_response import SearchResponse 25 | from pprint import pprint 26 | # Defining the host is optional and defaults to https://www.tagesschau.de 27 | # See configuration.py for a list of all supported configuration parameters. 28 | configuration = tagesschau.Configuration( 29 | host = "https://www.tagesschau.de" 30 | ) 31 | 32 | 33 | # Enter a context with an instance of the API client 34 | with tagesschau.ApiClient() as api_client: 35 | # Create an instance of the API class 36 | api_instance = search_api.SearchApi(api_client) 37 | search_text = "Ukraine" # str | Suchtext (optional) 38 | page_size = 0 # int | Seite (optional) 39 | result_page = 2 # int | Suchergebnisse pro Seite (1-30) (optional) 40 | 41 | # example passing only required values which don't have defaults set 42 | # and optional values 43 | try: 44 | # Suche 45 | api_response = api_instance.search(search_text=search_text, page_size=page_size, result_page=result_page) 46 | pprint(api_response) 47 | except tagesschau.ApiException as e: 48 | print("Exception when calling SearchApi->search: %s\n" % e) 49 | ``` 50 | 51 | 52 | ### Parameters 53 | 54 | Name | Type | Description | Notes 55 | ------------- | ------------- | ------------- | ------------- 56 | **search_text** | **str**| Suchtext | [optional] 57 | **page_size** | **int**| Seite | [optional] 58 | **result_page** | **int**| Suchergebnisse pro Seite (1-30) | [optional] 59 | 60 | ### Return type 61 | 62 | [**SearchResponse**](SearchResponse.md) 63 | 64 | ### Authorization 65 | 66 | No authorization required 67 | 68 | ### HTTP request headers 69 | 70 | - **Content-Type**: Not defined 71 | - **Accept**: application/json 72 | 73 | 74 | ### HTTP response details 75 | 76 | | Status code | Description | Response headers | 77 | |-------------|-------------|------------------| 78 | **200** | OK | - | 79 | 80 | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 81 | 82 | -------------------------------------------------------------------------------- /python-client/docs/SearchResponse.md: -------------------------------------------------------------------------------- 1 | # SearchResponse 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **type** | **str** | | [optional] 8 | **sophora_id** | **str** | | [optional] 9 | **tracking_pixels** | **[{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]** | | [optional] 10 | **details** | **str** | | [optional] 11 | **details_web** | **str** | | [optional] 12 | **date** | **str** | | [optional] 13 | **search_text** | **str** | | [optional] 14 | **query** | **str** | | [optional] 15 | **total_item_count** | **int** | | [optional] 16 | **solr_query** | **str** | | [optional] 17 | **search_results** | [**[SearchResponseSearchResultsInner]**](SearchResponseSearchResultsInner.md) | | [optional] 18 | **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] 19 | 20 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 21 | 22 | 23 | -------------------------------------------------------------------------------- /python-client/docs/SearchResponseSearchResultsInner.md: -------------------------------------------------------------------------------- 1 | # SearchResponseSearchResultsInner 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **sophora_id** | **str** | | [optional] 8 | **external_id** | **str** | | [optional] 9 | **title** | **str** | | [optional] 10 | **teaser_image** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | | [optional] 11 | **date** | **str** | | [optional] 12 | **tracking** | **[{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]** | | [optional] 13 | **tags** | **[{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]** | | [optional] 14 | **update_check_url** | **str** | | [optional] 15 | **streams** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | | [optional] 16 | **copyright** | **str** | | [optional] 17 | **type** | **str** | | [optional] 18 | **alttext** | **str** | | [optional] 19 | **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] 20 | 21 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 22 | 23 | 24 | -------------------------------------------------------------------------------- /python-client/pyproject.toml: -------------------------------------------------------------------------------- 1 | [tool] 2 | [tool.poetry] 3 | name = "de-tagesschau" 4 | version = "0.2.0" 5 | description = "Tagesschau API" 6 | keywords = ["OpenAPI", "OpenAPI-Generator", "tagesschau", "App", "API"] 7 | homepage = "https://github.com/bundesAPI/tagesschau-api" 8 | authors = ["BundesAPI "] 9 | packages = [ 10 | { include = "deutschland"} 11 | ] 12 | license = "Apache-2.0" 13 | readme = "README.md" 14 | 15 | [tool.poetry.dependencies] 16 | python = ">=3.6" 17 | python-dateutil = "*" 18 | urllib3 = ">=1.25.3" 19 | 20 | [tool.poetry.urls] 21 | "Bug Tracker" = "https://github.com/bundesAPI/tagesschau-api/issues" 22 | 23 | [tool.poetry.dev-dependencies] 24 | black = "^21.7b0" 25 | pytest = "^6.2.4" 26 | 27 | 28 | [build-system] 29 | requires = ["poetry-core>=1.0.0"] 30 | build-backend = "poetry.core.masonry.api" 31 | 32 | -------------------------------------------------------------------------------- /python-client/requirements.txt: -------------------------------------------------------------------------------- 1 | python_dateutil >= 2.5.3 2 | setuptools >= 59.0.0 3 | urllib3 >= 1.25.3 4 | -------------------------------------------------------------------------------- /python-client/sphinx-docs/Makefile: -------------------------------------------------------------------------------- 1 | # Minimal makefile for Sphinx documentation 2 | # 3 | 4 | # You can set these variables from the command line, and also 5 | # from the environment for the first two. 6 | SPHINXOPTS ?= 7 | SPHINXBUILD ?= sphinx-build 8 | SOURCEDIR = . 9 | BUILDDIR = _build 10 | 11 | # Put it first so that "make" without argument is like "make help". 12 | help: 13 | @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) 14 | 15 | .PHONY: help Makefile 16 | 17 | # Catch-all target: route all unknown targets to Sphinx using the new 18 | # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). 19 | %: Makefile 20 | @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) 21 | -------------------------------------------------------------------------------- /python-client/sphinx-docs/conf.py: -------------------------------------------------------------------------------- 1 | import os 2 | import sys 3 | 4 | sys.path.insert(0, os.path.abspath("../")) 5 | # Configuration file for the Sphinx documentation builder. 6 | # 7 | # For the full list of built-in configuration values, see the documentation: 8 | # https://www.sphinx-doc.org/en/master/usage/configuration.html 9 | 10 | # -- Project information ----------------------------------------------------- 11 | # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information 12 | 13 | project = "tagesschau-api" 14 | copyright = "2024, AndreasFischer1985" 15 | author = "AndreasFischer1985" 16 | 17 | version = "0.2.0" 18 | release = "0.2.0" 19 | 20 | # -- General configuration --------------------------------------------------- 21 | # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration 22 | 23 | extensions = [ 24 | "m2r2", 25 | "sphinx.ext.autodoc", 26 | "sphinx.ext.napoleon", 27 | "sphinx.ext.autosummary", 28 | ] 29 | 30 | templates_path = ["_templates"] 31 | exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] 32 | 33 | language = "de" 34 | 35 | # -- Options for HTML output ------------------------------------------------- 36 | # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output 37 | 38 | html_theme = "alabaster" 39 | html_static_path = ["_static"] 40 | 41 | source_extensions = [".rst", ".md"] 42 | -------------------------------------------------------------------------------- /python-client/sphinx-docs/index.rst: -------------------------------------------------------------------------------- 1 | tagesschau-api Documentation 2 | ============================ 3 | 4 | .. toctree:: 5 | :glob: 6 | 7 | source/* 8 | -------------------------------------------------------------------------------- /python-client/sphinx-docs/make.bat: -------------------------------------------------------------------------------- 1 | @ECHO OFF 2 | 3 | pushd %~dp0 4 | 5 | REM Command file for Sphinx documentation 6 | 7 | if "%SPHINXBUILD%" == "" ( 8 | set SPHINXBUILD=sphinx-build 9 | ) 10 | set SOURCEDIR=. 11 | set BUILDDIR=_build 12 | 13 | %SPHINXBUILD% >NUL 2>NUL 14 | if errorlevel 9009 ( 15 | echo. 16 | echo.The 'sphinx-build' command was not found. Make sure you have Sphinx 17 | echo.installed, then set the SPHINXBUILD environment variable to point 18 | echo.to the full path of the 'sphinx-build' executable. Alternatively you 19 | echo.may add the Sphinx directory to PATH. 20 | echo. 21 | echo.If you don't have Sphinx installed, grab it from 22 | echo.https://www.sphinx-doc.org/ 23 | exit /b 1 24 | ) 25 | 26 | if "%1" == "" goto help 27 | 28 | %SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O% 29 | goto end 30 | 31 | :help 32 | %SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O% 33 | 34 | :end 35 | popd 36 | -------------------------------------------------------------------------------- /python-client/sphinx-docs/source/modules.rst: -------------------------------------------------------------------------------- 1 | deutschland 2 | =========== 3 | 4 | .. toctree:: 5 | :maxdepth: 4 6 | 7 | tagesschau 8 | -------------------------------------------------------------------------------- /python-client/sphinx-docs/source/tagesschau.api.rst: -------------------------------------------------------------------------------- 1 | tagesschau.api package 2 | ====================== 3 | 4 | Submodules 5 | ---------- 6 | 7 | tagesschau.api.channels\_api module 8 | ----------------------------------- 9 | 10 | .. automodule:: tagesschau.api.channels_api 11 | :members: 12 | :undoc-members: 13 | :show-inheritance: 14 | 15 | tagesschau.api.homepage\_api module 16 | ----------------------------------- 17 | 18 | .. automodule:: tagesschau.api.homepage_api 19 | :members: 20 | :undoc-members: 21 | :show-inheritance: 22 | 23 | tagesschau.api.news\_api module 24 | ------------------------------- 25 | 26 | .. automodule:: tagesschau.api.news_api 27 | :members: 28 | :undoc-members: 29 | :show-inheritance: 30 | 31 | tagesschau.api.search\_api module 32 | --------------------------------- 33 | 34 | .. automodule:: tagesschau.api.search_api 35 | :members: 36 | :undoc-members: 37 | :show-inheritance: 38 | 39 | Module contents 40 | --------------- 41 | 42 | .. automodule:: tagesschau.api 43 | :members: 44 | :undoc-members: 45 | :show-inheritance: 46 | -------------------------------------------------------------------------------- /python-client/sphinx-docs/source/tagesschau.apis.rst: -------------------------------------------------------------------------------- 1 | tagesschau.apis package 2 | ======================= 3 | 4 | Module contents 5 | --------------- 6 | 7 | .. automodule:: tagesschau.apis 8 | :members: 9 | :undoc-members: 10 | :show-inheritance: 11 | -------------------------------------------------------------------------------- /python-client/sphinx-docs/source/tagesschau.model.rst: -------------------------------------------------------------------------------- 1 | tagesschau.model package 2 | ======================== 3 | 4 | Submodules 5 | ---------- 6 | 7 | tagesschau.model.channels\_response module 8 | ------------------------------------------ 9 | 10 | .. automodule:: tagesschau.model.channels_response 11 | :members: 12 | :undoc-members: 13 | :show-inheritance: 14 | 15 | tagesschau.model.channels\_response\_channels\_inner module 16 | ----------------------------------------------------------- 17 | 18 | .. automodule:: tagesschau.model.channels_response_channels_inner 19 | :members: 20 | :undoc-members: 21 | :show-inheritance: 22 | 23 | tagesschau.model.homepage\_response module 24 | ------------------------------------------ 25 | 26 | .. automodule:: tagesschau.model.homepage_response 27 | :members: 28 | :undoc-members: 29 | :show-inheritance: 30 | 31 | tagesschau.model.homepage\_response\_news\_inner module 32 | ------------------------------------------------------- 33 | 34 | .. automodule:: tagesschau.model.homepage_response_news_inner 35 | :members: 36 | :undoc-members: 37 | :show-inheritance: 38 | 39 | tagesschau.model.homepage\_response\_regional\_inner module 40 | ----------------------------------------------------------- 41 | 42 | .. automodule:: tagesschau.model.homepage_response_regional_inner 43 | :members: 44 | :undoc-members: 45 | :show-inheritance: 46 | 47 | tagesschau.model.multimedia\_response module 48 | -------------------------------------------- 49 | 50 | .. automodule:: tagesschau.model.multimedia_response 51 | :members: 52 | :undoc-members: 53 | :show-inheritance: 54 | 55 | tagesschau.model.news\_response module 56 | -------------------------------------- 57 | 58 | .. automodule:: tagesschau.model.news_response 59 | :members: 60 | :undoc-members: 61 | :show-inheritance: 62 | 63 | tagesschau.model.news\_response\_news\_inner module 64 | --------------------------------------------------- 65 | 66 | .. automodule:: tagesschau.model.news_response_news_inner 67 | :members: 68 | :undoc-members: 69 | :show-inheritance: 70 | 71 | tagesschau.model.search\_response module 72 | ---------------------------------------- 73 | 74 | .. automodule:: tagesschau.model.search_response 75 | :members: 76 | :undoc-members: 77 | :show-inheritance: 78 | 79 | tagesschau.model.search\_response\_search\_results\_inner module 80 | ---------------------------------------------------------------- 81 | 82 | .. automodule:: tagesschau.model.search_response_search_results_inner 83 | :members: 84 | :undoc-members: 85 | :show-inheritance: 86 | 87 | Module contents 88 | --------------- 89 | 90 | .. automodule:: tagesschau.model 91 | :members: 92 | :undoc-members: 93 | :show-inheritance: 94 | -------------------------------------------------------------------------------- /python-client/sphinx-docs/source/tagesschau.models.rst: -------------------------------------------------------------------------------- 1 | tagesschau.models package 2 | ========================= 3 | 4 | Module contents 5 | --------------- 6 | 7 | .. automodule:: tagesschau.models 8 | :members: 9 | :undoc-members: 10 | :show-inheritance: 11 | -------------------------------------------------------------------------------- /python-client/sphinx-docs/source/tagesschau.rst: -------------------------------------------------------------------------------- 1 | tagesschau package 2 | ================== 3 | 4 | Subpackages 5 | ----------- 6 | 7 | .. toctree:: 8 | :maxdepth: 4 9 | 10 | tagesschau.api 11 | tagesschau.apis 12 | tagesschau.model 13 | tagesschau.models 14 | 15 | Submodules 16 | ---------- 17 | 18 | tagesschau.api\_client module 19 | ----------------------------- 20 | 21 | .. automodule:: tagesschau.api_client 22 | :members: 23 | :undoc-members: 24 | :show-inheritance: 25 | 26 | tagesschau.configuration module 27 | ------------------------------- 28 | 29 | .. automodule:: tagesschau.configuration 30 | :members: 31 | :undoc-members: 32 | :show-inheritance: 33 | 34 | tagesschau.exceptions module 35 | ---------------------------- 36 | 37 | .. automodule:: tagesschau.exceptions 38 | :members: 39 | :undoc-members: 40 | :show-inheritance: 41 | 42 | tagesschau.model\_utils module 43 | ------------------------------ 44 | 45 | .. automodule:: tagesschau.model_utils 46 | :members: 47 | :undoc-members: 48 | :show-inheritance: 49 | 50 | tagesschau.rest module 51 | ---------------------- 52 | 53 | .. automodule:: tagesschau.rest 54 | :members: 55 | :undoc-members: 56 | :show-inheritance: 57 | 58 | Module contents 59 | --------------- 60 | 61 | .. automodule:: tagesschau 62 | :members: 63 | :undoc-members: 64 | :show-inheritance: 65 | -------------------------------------------------------------------------------- /python-client/test-requirements.txt: -------------------------------------------------------------------------------- 1 | pytest-cov>=2.8.1 2 | -------------------------------------------------------------------------------- /python-client/test/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bundesAPI/tagesschau-api/71f2ca5de1f30be891f81257360ba497fa282ab5/python-client/test/__init__.py -------------------------------------------------------------------------------- /python-client/test/test_channels_api.py: -------------------------------------------------------------------------------- 1 | """ 2 | Tagesschau API 3 | 4 | Die Tagesschau ist eine Nachrichtensendung der ARD (Abkürzung für Arbeitsgemeinschaft der öffentlich-rechtlichen Rundfunkanstalten der Bundesrepublik Deutschland), die von ARD-aktuell in Hamburg produziert und mehrmals täglich ausgestrahlt wird. ARD-aktuell ist seit 1977 die zentrale Fernsehnachrichtenredaktion der ARD, bei welcher es sich wiederum um einen Rundfunkverbund handelt, der aus den Landesrundfunkanstalten und der Deutschen Welle besteht.

Über die hier dokumentierte API stehen auf [www.tagesschau.de](https://www.tagesschau.de) aktuelle Nachrichten und Medienbeiträge im JSON-Format zur Verfügung.

**Achtung:** Die Nutzung der Inhalte für den privaten, nicht-kommerziellen Gebrauch ist gestattet, die Veröffentlichung hingegen nicht - mit Ausnahme von Angeboten, die explizit unter der CC-Lizenz stehen (https://tagesschau.de/creativecommons). Es ist unzulässig, mehr als 60 Abrufe pro Stunde zu tätigen. # noqa: E501 5 | 6 | The version of the OpenAPI document: 2.0.1 7 | Contact: andreasfischer1985@web.de 8 | Generated by: https://openapi-generator.tech 9 | """ 10 | 11 | import unittest 12 | 13 | from deutschland.tagesschau.api.channels_api import ChannelsApi # noqa: E501 14 | 15 | from deutschland import tagesschau 16 | 17 | 18 | class TestChannelsApi(unittest.TestCase): 19 | """ChannelsApi unit test stubs""" 20 | 21 | def setUp(self): 22 | self.api = ChannelsApi() # noqa: E501 23 | 24 | def tearDown(self): 25 | pass 26 | 27 | def test_channels(self): 28 | """Test case for channels 29 | 30 | Aktuelle Kanäle # noqa: E501 31 | """ 32 | pass 33 | 34 | 35 | if __name__ == "__main__": 36 | unittest.main() 37 | -------------------------------------------------------------------------------- /python-client/test/test_channels_response.py: -------------------------------------------------------------------------------- 1 | """ 2 | Tagesschau API 3 | 4 | Die Tagesschau ist eine Nachrichtensendung der ARD (Abkürzung für Arbeitsgemeinschaft der öffentlich-rechtlichen Rundfunkanstalten der Bundesrepublik Deutschland), die von ARD-aktuell in Hamburg produziert und mehrmals täglich ausgestrahlt wird. ARD-aktuell ist seit 1977 die zentrale Fernsehnachrichtenredaktion der ARD, bei welcher es sich wiederum um einen Rundfunkverbund handelt, der aus den Landesrundfunkanstalten und der Deutschen Welle besteht.

Über die hier dokumentierte API stehen auf [www.tagesschau.de](https://www.tagesschau.de) aktuelle Nachrichten und Medienbeiträge im JSON-Format zur Verfügung.

**Achtung:** Die Nutzung der Inhalte für den privaten, nicht-kommerziellen Gebrauch ist gestattet, die Veröffentlichung hingegen nicht - mit Ausnahme von Angeboten, die explizit unter der CC-Lizenz stehen (https://tagesschau.de/creativecommons). Es ist unzulässig, mehr als 60 Abrufe pro Stunde zu tätigen. # noqa: E501 5 | 6 | The version of the OpenAPI document: 2.0.1 7 | Contact: andreasfischer1985@web.de 8 | Generated by: https://openapi-generator.tech 9 | """ 10 | 11 | import sys 12 | import unittest 13 | 14 | from deutschland.tagesschau.model.channels_response_channels_inner import ( 15 | ChannelsResponseChannelsInner, 16 | ) 17 | 18 | from deutschland import tagesschau 19 | 20 | globals()["ChannelsResponseChannelsInner"] = ChannelsResponseChannelsInner 21 | from deutschland.tagesschau.model.channels_response import ChannelsResponse 22 | 23 | 24 | class TestChannelsResponse(unittest.TestCase): 25 | """ChannelsResponse unit test stubs""" 26 | 27 | def setUp(self): 28 | pass 29 | 30 | def tearDown(self): 31 | pass 32 | 33 | def testChannelsResponse(self): 34 | """Test ChannelsResponse""" 35 | # FIXME: construct object with mandatory attributes with example values 36 | # model = ChannelsResponse() # noqa: E501 37 | pass 38 | 39 | 40 | if __name__ == "__main__": 41 | unittest.main() 42 | -------------------------------------------------------------------------------- /python-client/test/test_channels_response_channels_inner.py: -------------------------------------------------------------------------------- 1 | """ 2 | Tagesschau API 3 | 4 | Die Tagesschau ist eine Nachrichtensendung der ARD (Abkürzung für Arbeitsgemeinschaft der öffentlich-rechtlichen Rundfunkanstalten der Bundesrepublik Deutschland), die von ARD-aktuell in Hamburg produziert und mehrmals täglich ausgestrahlt wird. ARD-aktuell ist seit 1977 die zentrale Fernsehnachrichtenredaktion der ARD, bei welcher es sich wiederum um einen Rundfunkverbund handelt, der aus den Landesrundfunkanstalten und der Deutschen Welle besteht.

Über die hier dokumentierte API stehen auf [www.tagesschau.de](https://www.tagesschau.de) aktuelle Nachrichten und Medienbeiträge im JSON-Format zur Verfügung.

**Achtung:** Die Nutzung der Inhalte für den privaten, nicht-kommerziellen Gebrauch ist gestattet, die Veröffentlichung hingegen nicht - mit Ausnahme von Angeboten, die explizit unter der CC-Lizenz stehen (https://tagesschau.de/creativecommons). Es ist unzulässig, mehr als 60 Abrufe pro Stunde zu tätigen. # noqa: E501 5 | 6 | The version of the OpenAPI document: 2.0.1 7 | Contact: andreasfischer1985@web.de 8 | Generated by: https://openapi-generator.tech 9 | """ 10 | 11 | import sys 12 | import unittest 13 | 14 | from deutschland.tagesschau.model.channels_response_channels_inner import ( 15 | ChannelsResponseChannelsInner, 16 | ) 17 | 18 | from deutschland import tagesschau 19 | 20 | 21 | class TestChannelsResponseChannelsInner(unittest.TestCase): 22 | """ChannelsResponseChannelsInner unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def testChannelsResponseChannelsInner(self): 31 | """Test ChannelsResponseChannelsInner""" 32 | # FIXME: construct object with mandatory attributes with example values 33 | # model = ChannelsResponseChannelsInner() # noqa: E501 34 | pass 35 | 36 | 37 | if __name__ == "__main__": 38 | unittest.main() 39 | -------------------------------------------------------------------------------- /python-client/test/test_homepage_api.py: -------------------------------------------------------------------------------- 1 | """ 2 | Tagesschau API 3 | 4 | Die Tagesschau ist eine Nachrichtensendung der ARD (Abkürzung für Arbeitsgemeinschaft der öffentlich-rechtlichen Rundfunkanstalten der Bundesrepublik Deutschland), die von ARD-aktuell in Hamburg produziert und mehrmals täglich ausgestrahlt wird. ARD-aktuell ist seit 1977 die zentrale Fernsehnachrichtenredaktion der ARD, bei welcher es sich wiederum um einen Rundfunkverbund handelt, der aus den Landesrundfunkanstalten und der Deutschen Welle besteht.

Über die hier dokumentierte API stehen auf [www.tagesschau.de](https://www.tagesschau.de) aktuelle Nachrichten und Medienbeiträge im JSON-Format zur Verfügung.

**Achtung:** Die Nutzung der Inhalte für den privaten, nicht-kommerziellen Gebrauch ist gestattet, die Veröffentlichung hingegen nicht - mit Ausnahme von Angeboten, die explizit unter der CC-Lizenz stehen (https://tagesschau.de/creativecommons). Es ist unzulässig, mehr als 60 Abrufe pro Stunde zu tätigen. # noqa: E501 5 | 6 | The version of the OpenAPI document: 2.0.1 7 | Contact: andreasfischer1985@web.de 8 | Generated by: https://openapi-generator.tech 9 | """ 10 | 11 | import unittest 12 | 13 | from deutschland.tagesschau.api.homepage_api import HomepageApi # noqa: E501 14 | 15 | from deutschland import tagesschau 16 | 17 | 18 | class TestHomepageApi(unittest.TestCase): 19 | """HomepageApi unit test stubs""" 20 | 21 | def setUp(self): 22 | self.api = HomepageApi() # noqa: E501 23 | 24 | def tearDown(self): 25 | pass 26 | 27 | def test_homepage(self): 28 | """Test case for homepage 29 | 30 | Ausgewählte aktuelle Nachrichten und Eilmeldungen # noqa: E501 31 | """ 32 | pass 33 | 34 | 35 | if __name__ == "__main__": 36 | unittest.main() 37 | -------------------------------------------------------------------------------- /python-client/test/test_homepage_response.py: -------------------------------------------------------------------------------- 1 | """ 2 | Tagesschau API 3 | 4 | Die Tagesschau ist eine Nachrichtensendung der ARD (Abkürzung für Arbeitsgemeinschaft der öffentlich-rechtlichen Rundfunkanstalten der Bundesrepublik Deutschland), die von ARD-aktuell in Hamburg produziert und mehrmals täglich ausgestrahlt wird. ARD-aktuell ist seit 1977 die zentrale Fernsehnachrichtenredaktion der ARD, bei welcher es sich wiederum um einen Rundfunkverbund handelt, der aus den Landesrundfunkanstalten und der Deutschen Welle besteht.

Über die hier dokumentierte API stehen auf [www.tagesschau.de](https://www.tagesschau.de) aktuelle Nachrichten und Medienbeiträge im JSON-Format zur Verfügung.

**Achtung:** Die Nutzung der Inhalte für den privaten, nicht-kommerziellen Gebrauch ist gestattet, die Veröffentlichung hingegen nicht - mit Ausnahme von Angeboten, die explizit unter der CC-Lizenz stehen (https://tagesschau.de/creativecommons). Es ist unzulässig, mehr als 60 Abrufe pro Stunde zu tätigen. # noqa: E501 5 | 6 | The version of the OpenAPI document: 2.0.1 7 | Contact: andreasfischer1985@web.de 8 | Generated by: https://openapi-generator.tech 9 | """ 10 | 11 | import sys 12 | import unittest 13 | 14 | from deutschland.tagesschau.model.homepage_response_news_inner import ( 15 | HomepageResponseNewsInner, 16 | ) 17 | from deutschland.tagesschau.model.homepage_response_regional_inner import ( 18 | HomepageResponseRegionalInner, 19 | ) 20 | 21 | from deutschland import tagesschau 22 | 23 | globals()["HomepageResponseNewsInner"] = HomepageResponseNewsInner 24 | globals()["HomepageResponseRegionalInner"] = HomepageResponseRegionalInner 25 | from deutschland.tagesschau.model.homepage_response import HomepageResponse 26 | 27 | 28 | class TestHomepageResponse(unittest.TestCase): 29 | """HomepageResponse unit test stubs""" 30 | 31 | def setUp(self): 32 | pass 33 | 34 | def tearDown(self): 35 | pass 36 | 37 | def testHomepageResponse(self): 38 | """Test HomepageResponse""" 39 | # FIXME: construct object with mandatory attributes with example values 40 | # model = HomepageResponse() # noqa: E501 41 | pass 42 | 43 | 44 | if __name__ == "__main__": 45 | unittest.main() 46 | -------------------------------------------------------------------------------- /python-client/test/test_homepage_response_news_inner.py: -------------------------------------------------------------------------------- 1 | """ 2 | Tagesschau API 3 | 4 | Die Tagesschau ist eine Nachrichtensendung der ARD (Abkürzung für Arbeitsgemeinschaft der öffentlich-rechtlichen Rundfunkanstalten der Bundesrepublik Deutschland), die von ARD-aktuell in Hamburg produziert und mehrmals täglich ausgestrahlt wird. ARD-aktuell ist seit 1977 die zentrale Fernsehnachrichtenredaktion der ARD, bei welcher es sich wiederum um einen Rundfunkverbund handelt, der aus den Landesrundfunkanstalten und der Deutschen Welle besteht.

Über die hier dokumentierte API stehen auf [www.tagesschau.de](https://www.tagesschau.de) aktuelle Nachrichten und Medienbeiträge im JSON-Format zur Verfügung.

**Achtung:** Die Nutzung der Inhalte für den privaten, nicht-kommerziellen Gebrauch ist gestattet, die Veröffentlichung hingegen nicht - mit Ausnahme von Angeboten, die explizit unter der CC-Lizenz stehen (https://tagesschau.de/creativecommons). Es ist unzulässig, mehr als 60 Abrufe pro Stunde zu tätigen. # noqa: E501 5 | 6 | The version of the OpenAPI document: 2.0.1 7 | Contact: andreasfischer1985@web.de 8 | Generated by: https://openapi-generator.tech 9 | """ 10 | 11 | import sys 12 | import unittest 13 | 14 | from deutschland.tagesschau.model.homepage_response_news_inner import ( 15 | HomepageResponseNewsInner, 16 | ) 17 | 18 | from deutschland import tagesschau 19 | 20 | 21 | class TestHomepageResponseNewsInner(unittest.TestCase): 22 | """HomepageResponseNewsInner unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def testHomepageResponseNewsInner(self): 31 | """Test HomepageResponseNewsInner""" 32 | # FIXME: construct object with mandatory attributes with example values 33 | # model = HomepageResponseNewsInner() # noqa: E501 34 | pass 35 | 36 | 37 | if __name__ == "__main__": 38 | unittest.main() 39 | -------------------------------------------------------------------------------- /python-client/test/test_homepage_response_regional_inner.py: -------------------------------------------------------------------------------- 1 | """ 2 | Tagesschau API 3 | 4 | Die Tagesschau ist eine Nachrichtensendung der ARD (Abkürzung für Arbeitsgemeinschaft der öffentlich-rechtlichen Rundfunkanstalten der Bundesrepublik Deutschland), die von ARD-aktuell in Hamburg produziert und mehrmals täglich ausgestrahlt wird. ARD-aktuell ist seit 1977 die zentrale Fernsehnachrichtenredaktion der ARD, bei welcher es sich wiederum um einen Rundfunkverbund handelt, der aus den Landesrundfunkanstalten und der Deutschen Welle besteht.

Über die hier dokumentierte API stehen auf [www.tagesschau.de](https://www.tagesschau.de) aktuelle Nachrichten und Medienbeiträge im JSON-Format zur Verfügung.

**Achtung:** Die Nutzung der Inhalte für den privaten, nicht-kommerziellen Gebrauch ist gestattet, die Veröffentlichung hingegen nicht - mit Ausnahme von Angeboten, die explizit unter der CC-Lizenz stehen (https://tagesschau.de/creativecommons). Es ist unzulässig, mehr als 60 Abrufe pro Stunde zu tätigen. # noqa: E501 5 | 6 | The version of the OpenAPI document: 2.0.1 7 | Contact: andreasfischer1985@web.de 8 | Generated by: https://openapi-generator.tech 9 | """ 10 | 11 | import sys 12 | import unittest 13 | 14 | from deutschland.tagesschau.model.homepage_response_regional_inner import ( 15 | HomepageResponseRegionalInner, 16 | ) 17 | 18 | from deutschland import tagesschau 19 | 20 | 21 | class TestHomepageResponseRegionalInner(unittest.TestCase): 22 | """HomepageResponseRegionalInner unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def testHomepageResponseRegionalInner(self): 31 | """Test HomepageResponseRegionalInner""" 32 | # FIXME: construct object with mandatory attributes with example values 33 | # model = HomepageResponseRegionalInner() # noqa: E501 34 | pass 35 | 36 | 37 | if __name__ == "__main__": 38 | unittest.main() 39 | -------------------------------------------------------------------------------- /python-client/test/test_multimedia_response.py: -------------------------------------------------------------------------------- 1 | """ 2 | Tagesschau API 3 | 4 | Die Tagesschau ist eine Nachrichtensendung der ARD (Abkürzung für Arbeitsgemeinschaft der öffentlich-rechtlichen Rundfunkanstalten der Bundesrepublik Deutschland), die von ARD-aktuell in Hamburg produziert und mehrmals täglich ausgestrahlt wird. ARD-aktuell ist seit 1977 die zentrale Fernsehnachrichtenredaktion der ARD, bei welcher es sich wiederum um einen Rundfunkverbund handelt, der aus den Landesrundfunkanstalten und der Deutschen Welle besteht.

Über die hier dokumentierte API stehen auf [www.tagesschau.de](https://www.tagesschau.de) aktuelle Nachrichten und Medienbeiträge im JSON-Format zur Verfügung.

**Achtung:** Die Nutzung der Inhalte für den privaten, nicht-kommerziellen Gebrauch ist gestattet, die Veröffentlichung hingegen nicht - mit Ausnahme von Angeboten, die explizit unter der CC-Lizenz stehen (https://tagesschau.de/creativecommons). Es ist unzulässig, mehr als 60 Abrufe pro Stunde zu tätigen. # noqa: E501 5 | 6 | The version of the OpenAPI document: 2.0.1 7 | Contact: andreasfischer1985@web.de 8 | Generated by: https://openapi-generator.tech 9 | """ 10 | 11 | import sys 12 | import unittest 13 | 14 | from deutschland.tagesschau.model.homepage_response_regional_inner import ( 15 | HomepageResponseRegionalInner, 16 | ) 17 | from deutschland.tagesschau.model.news_response_news_inner import NewsResponseNewsInner 18 | 19 | from deutschland import tagesschau 20 | 21 | globals()["HomepageResponseRegionalInner"] = HomepageResponseRegionalInner 22 | globals()["NewsResponseNewsInner"] = NewsResponseNewsInner 23 | from deutschland.tagesschau.model.multimedia_response import MultimediaResponse 24 | 25 | 26 | class TestMultimediaResponse(unittest.TestCase): 27 | """MultimediaResponse unit test stubs""" 28 | 29 | def setUp(self): 30 | pass 31 | 32 | def tearDown(self): 33 | pass 34 | 35 | def testMultimediaResponse(self): 36 | """Test MultimediaResponse""" 37 | # FIXME: construct object with mandatory attributes with example values 38 | # model = MultimediaResponse() # noqa: E501 39 | pass 40 | 41 | 42 | if __name__ == "__main__": 43 | unittest.main() 44 | -------------------------------------------------------------------------------- /python-client/test/test_news_api.py: -------------------------------------------------------------------------------- 1 | """ 2 | Tagesschau API 3 | 4 | Die Tagesschau ist eine Nachrichtensendung der ARD (Abkürzung für Arbeitsgemeinschaft der öffentlich-rechtlichen Rundfunkanstalten der Bundesrepublik Deutschland), die von ARD-aktuell in Hamburg produziert und mehrmals täglich ausgestrahlt wird. ARD-aktuell ist seit 1977 die zentrale Fernsehnachrichtenredaktion der ARD, bei welcher es sich wiederum um einen Rundfunkverbund handelt, der aus den Landesrundfunkanstalten und der Deutschen Welle besteht.

Über die hier dokumentierte API stehen auf [www.tagesschau.de](https://www.tagesschau.de) aktuelle Nachrichten und Medienbeiträge im JSON-Format zur Verfügung.

**Achtung:** Die Nutzung der Inhalte für den privaten, nicht-kommerziellen Gebrauch ist gestattet, die Veröffentlichung hingegen nicht - mit Ausnahme von Angeboten, die explizit unter der CC-Lizenz stehen (https://tagesschau.de/creativecommons). Es ist unzulässig, mehr als 60 Abrufe pro Stunde zu tätigen. # noqa: E501 5 | 6 | The version of the OpenAPI document: 2.0.1 7 | Contact: andreasfischer1985@web.de 8 | Generated by: https://openapi-generator.tech 9 | """ 10 | 11 | import unittest 12 | 13 | from deutschland.tagesschau.api.news_api import NewsApi # noqa: E501 14 | 15 | from deutschland import tagesschau 16 | 17 | 18 | class TestNewsApi(unittest.TestCase): 19 | """NewsApi unit test stubs""" 20 | 21 | def setUp(self): 22 | self.api = NewsApi() # noqa: E501 23 | 24 | def tearDown(self): 25 | pass 26 | 27 | def test_news(self): 28 | """Test case for news 29 | 30 | Aktuelle Nachrichten und Eilmeldungen # noqa: E501 31 | """ 32 | pass 33 | 34 | 35 | if __name__ == "__main__": 36 | unittest.main() 37 | -------------------------------------------------------------------------------- /python-client/test/test_news_response.py: -------------------------------------------------------------------------------- 1 | """ 2 | Tagesschau API 3 | 4 | Die Tagesschau ist eine Nachrichtensendung der ARD (Abkürzung für Arbeitsgemeinschaft der öffentlich-rechtlichen Rundfunkanstalten der Bundesrepublik Deutschland), die von ARD-aktuell in Hamburg produziert und mehrmals täglich ausgestrahlt wird. ARD-aktuell ist seit 1977 die zentrale Fernsehnachrichtenredaktion der ARD, bei welcher es sich wiederum um einen Rundfunkverbund handelt, der aus den Landesrundfunkanstalten und der Deutschen Welle besteht.

Über die hier dokumentierte API stehen auf [www.tagesschau.de](https://www.tagesschau.de) aktuelle Nachrichten und Medienbeiträge im JSON-Format zur Verfügung.

**Achtung:** Die Nutzung der Inhalte für den privaten, nicht-kommerziellen Gebrauch ist gestattet, die Veröffentlichung hingegen nicht - mit Ausnahme von Angeboten, die explizit unter der CC-Lizenz stehen (https://tagesschau.de/creativecommons). Es ist unzulässig, mehr als 60 Abrufe pro Stunde zu tätigen. # noqa: E501 5 | 6 | The version of the OpenAPI document: 2.0.1 7 | Contact: andreasfischer1985@web.de 8 | Generated by: https://openapi-generator.tech 9 | """ 10 | 11 | import sys 12 | import unittest 13 | 14 | from deutschland.tagesschau.model.homepage_response_regional_inner import ( 15 | HomepageResponseRegionalInner, 16 | ) 17 | from deutschland.tagesschau.model.news_response_news_inner import NewsResponseNewsInner 18 | 19 | from deutschland import tagesschau 20 | 21 | globals()["HomepageResponseRegionalInner"] = HomepageResponseRegionalInner 22 | globals()["NewsResponseNewsInner"] = NewsResponseNewsInner 23 | from deutschland.tagesschau.model.news_response import NewsResponse 24 | 25 | 26 | class TestNewsResponse(unittest.TestCase): 27 | """NewsResponse unit test stubs""" 28 | 29 | def setUp(self): 30 | pass 31 | 32 | def tearDown(self): 33 | pass 34 | 35 | def testNewsResponse(self): 36 | """Test NewsResponse""" 37 | # FIXME: construct object with mandatory attributes with example values 38 | # model = NewsResponse() # noqa: E501 39 | pass 40 | 41 | 42 | if __name__ == "__main__": 43 | unittest.main() 44 | -------------------------------------------------------------------------------- /python-client/test/test_news_response_news_inner.py: -------------------------------------------------------------------------------- 1 | """ 2 | Tagesschau API 3 | 4 | Die Tagesschau ist eine Nachrichtensendung der ARD (Abkürzung für Arbeitsgemeinschaft der öffentlich-rechtlichen Rundfunkanstalten der Bundesrepublik Deutschland), die von ARD-aktuell in Hamburg produziert und mehrmals täglich ausgestrahlt wird. ARD-aktuell ist seit 1977 die zentrale Fernsehnachrichtenredaktion der ARD, bei welcher es sich wiederum um einen Rundfunkverbund handelt, der aus den Landesrundfunkanstalten und der Deutschen Welle besteht.

Über die hier dokumentierte API stehen auf [www.tagesschau.de](https://www.tagesschau.de) aktuelle Nachrichten und Medienbeiträge im JSON-Format zur Verfügung.

**Achtung:** Die Nutzung der Inhalte für den privaten, nicht-kommerziellen Gebrauch ist gestattet, die Veröffentlichung hingegen nicht - mit Ausnahme von Angeboten, die explizit unter der CC-Lizenz stehen (https://tagesschau.de/creativecommons). Es ist unzulässig, mehr als 60 Abrufe pro Stunde zu tätigen. # noqa: E501 5 | 6 | The version of the OpenAPI document: 2.0.1 7 | Contact: andreasfischer1985@web.de 8 | Generated by: https://openapi-generator.tech 9 | """ 10 | 11 | import sys 12 | import unittest 13 | 14 | from deutschland.tagesschau.model.news_response_news_inner import NewsResponseNewsInner 15 | 16 | from deutschland import tagesschau 17 | 18 | 19 | class TestNewsResponseNewsInner(unittest.TestCase): 20 | """NewsResponseNewsInner unit test stubs""" 21 | 22 | def setUp(self): 23 | pass 24 | 25 | def tearDown(self): 26 | pass 27 | 28 | def testNewsResponseNewsInner(self): 29 | """Test NewsResponseNewsInner""" 30 | # FIXME: construct object with mandatory attributes with example values 31 | # model = NewsResponseNewsInner() # noqa: E501 32 | pass 33 | 34 | 35 | if __name__ == "__main__": 36 | unittest.main() 37 | -------------------------------------------------------------------------------- /python-client/test/test_search_api.py: -------------------------------------------------------------------------------- 1 | """ 2 | Tagesschau API 3 | 4 | Die Tagesschau ist eine Nachrichtensendung der ARD (Abkürzung für Arbeitsgemeinschaft der öffentlich-rechtlichen Rundfunkanstalten der Bundesrepublik Deutschland), die von ARD-aktuell in Hamburg produziert und mehrmals täglich ausgestrahlt wird. ARD-aktuell ist seit 1977 die zentrale Fernsehnachrichtenredaktion der ARD, bei welcher es sich wiederum um einen Rundfunkverbund handelt, der aus den Landesrundfunkanstalten und der Deutschen Welle besteht.

Über die hier dokumentierte API stehen auf [www.tagesschau.de](https://www.tagesschau.de) aktuelle Nachrichten und Medienbeiträge im JSON-Format zur Verfügung.

**Achtung:** Die Nutzung der Inhalte für den privaten, nicht-kommerziellen Gebrauch ist gestattet, die Veröffentlichung hingegen nicht - mit Ausnahme von Angeboten, die explizit unter der CC-Lizenz stehen (https://tagesschau.de/creativecommons). Es ist unzulässig, mehr als 60 Abrufe pro Stunde zu tätigen. # noqa: E501 5 | 6 | The version of the OpenAPI document: 2.0.1 7 | Contact: andreasfischer1985@web.de 8 | Generated by: https://openapi-generator.tech 9 | """ 10 | 11 | import unittest 12 | 13 | from deutschland.tagesschau.api.search_api import SearchApi # noqa: E501 14 | 15 | from deutschland import tagesschau 16 | 17 | 18 | class TestSearchApi(unittest.TestCase): 19 | """SearchApi unit test stubs""" 20 | 21 | def setUp(self): 22 | self.api = SearchApi() # noqa: E501 23 | 24 | def tearDown(self): 25 | pass 26 | 27 | def test_search(self): 28 | """Test case for search 29 | 30 | Suche # noqa: E501 31 | """ 32 | pass 33 | 34 | 35 | if __name__ == "__main__": 36 | unittest.main() 37 | -------------------------------------------------------------------------------- /python-client/test/test_search_response.py: -------------------------------------------------------------------------------- 1 | """ 2 | Tagesschau API 3 | 4 | Die Tagesschau ist eine Nachrichtensendung der ARD (Abkürzung für Arbeitsgemeinschaft der öffentlich-rechtlichen Rundfunkanstalten der Bundesrepublik Deutschland), die von ARD-aktuell in Hamburg produziert und mehrmals täglich ausgestrahlt wird. ARD-aktuell ist seit 1977 die zentrale Fernsehnachrichtenredaktion der ARD, bei welcher es sich wiederum um einen Rundfunkverbund handelt, der aus den Landesrundfunkanstalten und der Deutschen Welle besteht.

Über die hier dokumentierte API stehen auf [www.tagesschau.de](https://www.tagesschau.de) aktuelle Nachrichten und Medienbeiträge im JSON-Format zur Verfügung.

**Achtung:** Die Nutzung der Inhalte für den privaten, nicht-kommerziellen Gebrauch ist gestattet, die Veröffentlichung hingegen nicht - mit Ausnahme von Angeboten, die explizit unter der CC-Lizenz stehen (https://tagesschau.de/creativecommons). Es ist unzulässig, mehr als 60 Abrufe pro Stunde zu tätigen. # noqa: E501 5 | 6 | The version of the OpenAPI document: 2.0.1 7 | Contact: andreasfischer1985@web.de 8 | Generated by: https://openapi-generator.tech 9 | """ 10 | 11 | import sys 12 | import unittest 13 | 14 | from deutschland.tagesschau.model.search_response_search_results_inner import ( 15 | SearchResponseSearchResultsInner, 16 | ) 17 | 18 | from deutschland import tagesschau 19 | 20 | globals()["SearchResponseSearchResultsInner"] = SearchResponseSearchResultsInner 21 | from deutschland.tagesschau.model.search_response import SearchResponse 22 | 23 | 24 | class TestSearchResponse(unittest.TestCase): 25 | """SearchResponse unit test stubs""" 26 | 27 | def setUp(self): 28 | pass 29 | 30 | def tearDown(self): 31 | pass 32 | 33 | def testSearchResponse(self): 34 | """Test SearchResponse""" 35 | # FIXME: construct object with mandatory attributes with example values 36 | # model = SearchResponse() # noqa: E501 37 | pass 38 | 39 | 40 | if __name__ == "__main__": 41 | unittest.main() 42 | -------------------------------------------------------------------------------- /python-client/test/test_search_response_search_results_inner.py: -------------------------------------------------------------------------------- 1 | """ 2 | Tagesschau API 3 | 4 | Die Tagesschau ist eine Nachrichtensendung der ARD (Abkürzung für Arbeitsgemeinschaft der öffentlich-rechtlichen Rundfunkanstalten der Bundesrepublik Deutschland), die von ARD-aktuell in Hamburg produziert und mehrmals täglich ausgestrahlt wird. ARD-aktuell ist seit 1977 die zentrale Fernsehnachrichtenredaktion der ARD, bei welcher es sich wiederum um einen Rundfunkverbund handelt, der aus den Landesrundfunkanstalten und der Deutschen Welle besteht.

Über die hier dokumentierte API stehen auf [www.tagesschau.de](https://www.tagesschau.de) aktuelle Nachrichten und Medienbeiträge im JSON-Format zur Verfügung.

**Achtung:** Die Nutzung der Inhalte für den privaten, nicht-kommerziellen Gebrauch ist gestattet, die Veröffentlichung hingegen nicht - mit Ausnahme von Angeboten, die explizit unter der CC-Lizenz stehen (https://tagesschau.de/creativecommons). Es ist unzulässig, mehr als 60 Abrufe pro Stunde zu tätigen. # noqa: E501 5 | 6 | The version of the OpenAPI document: 2.0.1 7 | Contact: andreasfischer1985@web.de 8 | Generated by: https://openapi-generator.tech 9 | """ 10 | 11 | import sys 12 | import unittest 13 | 14 | from deutschland.tagesschau.model.search_response_search_results_inner import ( 15 | SearchResponseSearchResultsInner, 16 | ) 17 | 18 | from deutschland import tagesschau 19 | 20 | 21 | class TestSearchResponseSearchResultsInner(unittest.TestCase): 22 | """SearchResponseSearchResultsInner unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def testSearchResponseSearchResultsInner(self): 31 | """Test SearchResponseSearchResultsInner""" 32 | # FIXME: construct object with mandatory attributes with example values 33 | # model = SearchResponseSearchResultsInner() # noqa: E501 34 | pass 35 | 36 | 37 | if __name__ == "__main__": 38 | unittest.main() 39 | -------------------------------------------------------------------------------- /python-client/tox.ini: -------------------------------------------------------------------------------- 1 | [tox] 2 | envlist = py3 3 | 4 | [testenv] 5 | deps=-r{toxinidir}/requirements.txt 6 | -r{toxinidir}/test-requirements.txt 7 | 8 | commands= 9 | pytest --cov=tagesschau 10 | --------------------------------------------------------------------------------