anny-booking-automation/config/constants.py
Fyodor Alyokhin 186e7ab9a0 works again
2026-02-05 01:32:36 +01:00

43 lines
No EOL
1.2 KiB
Python

AUTH_BASE_URL = "https://auth.anny.eu"
ANNY_BASE_URL = "https://anny.eu"
BOOKING_API_BASE = "https://b.anny.eu/api/v1"
CHECKOUT_FORM_API = "https://b.anny.eu/api/ui/checkout-form"
RESOURCE_URL = f"{BOOKING_API_BASE}/resources/1-lehrbuchsammlung-eg-und-1-og/children"
SERVICE_ID = "601"
# SERVICE_ID = "449"
RESOURCE_ID = None # "5957" # Will be set dynamically if None, else use the given ID
RESOURCE_ID =15994
TIMEZONE = "Europe/Berlin"
# SSO_PROVIDER = "kit" # Available: kit (add more in auth/providers/)
SSO_PROVIDER = "tum" # Available: kit (add more in auth/providers/)
DEFAULT_HEADERS = {
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:140.0) Gecko/20100101 Firefox/140.0',
'accept': 'application/vnd.api+json',
'accept-encoding': 'plain'
}
# Booking time slots (in order of priority)
BOOKING_TIMES = [
{
'start': '08:00:00',
'end': '09:00:00'
},
# {
# 'start': '12:00:00',
# 'end': '22:00:00'
# },
# {
# 'start': '22:30:00',
# 'end': '23:30:00'
# },
# {
# 'start': '09:00:00',
# 'end': '13:00:00'
# },
# {
# 'start': '20:00:00',
# 'end': '23:45:00'
# },
]