pyCruiseMapper/src/pycruisemapper/const.py

13 lines
504 B
Python
Raw Normal View History

2022-09-15 16:54:31 +00:00
IMAGE_BASE_PATH = "https://www.cruisemapper.com/"
SHIPS_URL = "https://www.cruisemapper.com/map/ships.json"
2022-09-15 16:54:31 +00:00
SHIP_URL = "https://www.cruisemapper.com/map/ship.json"
REQUIRED_HEADERS = {"X-Requested-With": "XMLHttpRequest",
"User-Agent": "Mozilla/5.0 (compatible: pyCruiseMapper; https://kumig.it/kumitterer/pycruisemapper)"}
2022-09-15 16:54:31 +00:00
TEMP_REGEX = "(-?\d+\.?\d*) ?°C"
HTML_REGEX = "<.*?>"
DEGREES_REGEX = "(\d+) ?°"
SPEED_REGEX = "\/ ?(\d+.?\d*) ?m\/s"
GUST_REGEX = "Gust: (\d+.?\d*) ?m\/s"