Tagesschau API
Project description
tagesschau
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 aktuelle Nachrichten und Medienbeiträge im JSON-Format zur Verfügung.
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 2.0.0
- Package version: 0.1.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
Requirements.
Python >= 3.6
Installation & Usage
pip install
pip install deutschland[tagesschau]
poetry install
poetry add deutschland -E tagesschau
Setuptools
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install
to install the package for all users)
Usage
Import the package:
from deutschland import tagesschau
Getting Started
Please follow the installation procedure and then run the following:
import time
from deutschland import tagesschau
from pprint import pprint
from deutschland.tagesschau.api import default_api
from deutschland.tagesschau.model.channels_response import ChannelsResponse
from deutschland.tagesschau.model.homepage_response import HomepageResponse
from deutschland.tagesschau.model.multimedia_response import MultimediaResponse
from deutschland.tagesschau.model.news_response import NewsResponse
from deutschland.tagesschau.model.search_response import SearchResponse
# Defining the host is optional and defaults to https://www.tagesschau.de
# See configuration.py for a list of all supported configuration parameters.
configuration = tagesschau.Configuration(
host = "https://www.tagesschau.de"
)
# Enter a context with an instance of the API client
with tagesschau.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = default_api.DefaultApi(api_client)
try:
# Wichtige Nachrichten und Eilmeldungen
api_response = api_instance.api2()
pprint(api_response)
except tagesschau.ApiException as e:
print("Exception when calling DefaultApi->api2: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to https://www.tagesschau.de
Class | Method | HTTP request | Description |
---|---|---|---|
DefaultApi | api2 | GET /api2 | Wichtige Nachrichten und Eilmeldungen |
DefaultApi | channels | GET /api2/channels | Aktuelle Kanäle |
DefaultApi | homepage | GET /api2/homepage | Ausgewählte aktuelle Nachrichten und Eilmeldungen |
DefaultApi | multimedia | GET /api2/multimedia | Multimedia |
DefaultApi | news | GET /api2/news | Aktuelle Nachrichten und Eilmeldungen |
DefaultApi | newsfeed | GET /api2/newsfeed-101~_date-{datumsangabe}.json | Newsfeed |
DefaultApi | ressort | GET /api2/{ressort} | Ressort-spezifische Nachrichten |
DefaultApi | search | GET /api2/search | Suche |
Documentation For Models
- ChannelsResponse
- ChannelsResponseChannels
- HomepageResponse
- HomepageResponseNews
- HomepageResponseRegional
- MultimediaResponse
- NewsResponse
- NewsResponseNews
- SearchResponse
- SearchResponseSearchResults
Documentation For Authorization
All endpoints do not require authorization.
Author
Notes for Large OpenAPI documents
If the OpenAPI document is large, imports in tagesschau.apis and tagesschau.models may fail with a RecursionError indicating the maximum recursion limit has been exceeded. In that case, there are a couple of solutions:
Solution 1: Use specific imports for apis and models like:
from deutschland.tagesschau.api.default_api import DefaultApi
from deutschland.tagesschau.model.pet import Pet
Solution 2: Before importing the package, adjust the maximum recursion limit as shown below:
import sys
sys.setrecursionlimit(1500)
from deutschland import tagesschau
from deutschland.tagesschau.apis import *
from deutschland.tagesschau.models import *
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for de_tagesschau-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52b392b46e7570023f28267884a064cbe200d623a7dafbb4f105e436b6c73fd8 |
|
MD5 | 67e7919a1984b237d8f30e143452cd54 |
|
BLAKE2b-256 | 36dc03044250468e1def63e43d3e397fe61d171f2c1788e92b3e306023959bdb |