Unofficial Python API for KrossBooking
Project description
KrossBooking API Client
Unofficial KrossBooking API in Python. Requests are based on the official web interface (V2), data is extracted via static web scraping enabling easy programmatic access to it.
Example Usage
from krossApy import KrossAPI, Fields, build_filters, Reservations
from datetime import datetime
with KrossAPI("hotel_id") as api:
api.login("username", "password")
today = datetime.now().strftime("%d/%m/%Y")
filters = build_filters(field=Fields.ARRIVAL, condition=">=", value=today)
reservations: Reservations = api.get_reservations(
fields = [
Fields.CODE,
Fields.CHANNEL,
Fields.ARRIVAL,
Fields.DEPARTURE,
Fields.GUEST_PORTAL_LINK,
Fields.EMAIL,
Fields.TELEPHONE,
],
filters = filters,
)
print(reservations)
Output
[
{
"code": "1234/5678",
"channel": "Booking.com",
"arrival": "01/01/2025",
"departure": "02/01/2025",
"guest_portal_link": "https://guestportallink",
"email": "jhon@doe.com",
"telephone": "1234567890"
},
...
]
Installation
currently not published on PyPi, but soon you can install it via pip:
pip install krossApy
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
krossapy-0.0.4.tar.gz
(12.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
krossApy-0.0.4-py3-none-any.whl
(14.8 kB
view details)
File details
Details for the file krossapy-0.0.4.tar.gz.
File metadata
- Download URL: krossapy-0.0.4.tar.gz
- Upload date:
- Size: 12.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
09ac32d017806f95e9776c75ef23a8b400ad2d904760654e215c8314960c5736
|
|
| MD5 |
ea900dce393f9e6310d8833a99c8d7b4
|
|
| BLAKE2b-256 |
54a2abe7b31b09502a468be70d8af872a03f59929ca624f3d1a14e9217a9b5c5
|
File details
Details for the file krossApy-0.0.4-py3-none-any.whl.
File metadata
- Download URL: krossApy-0.0.4-py3-none-any.whl
- Upload date:
- Size: 14.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fcf611c842cc3beb42b81d8cf916ddf9b7545c70af3c63c03ade699f03d38928
|
|
| MD5 |
7fcdad3ba71a4d4235e10a1fef65e539
|
|
| BLAKE2b-256 |
c0d27ecc683f8e8de442407d18dddcc19eeddcfd8f87e7a60aee47551a9835c2
|