返回顶部
B

Booking.com Extranet Manager

Manage Booking.com properties — download reservations, list/reply to guest messages, update rates. Wraps a Python CLI that automates the Booking.com extranet via real Chrome.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.1.0
安全检测
已通过
64
下载量
0
收藏
概述
安装方式
版本历史

Booking.com Extranet Manager

# Booking.com Extranet Manager Automate Booking.com property management through a Python CLI tool. Uses your locally installed Google Chrome (not a headless browser) to interact with the Booking.com partner extranet, avoiding bot detection. ## Security Notes - **Credentials** are stored locally in a `.env` file in the bot directory — never transmitted elsewhere. - **Browser session** is persisted in `.chrome-data/` so login + SMS 2FA only happens once. Delete this directory to clear the session. - **Chrome remote debugging** runs on `localhost:9222` only — not exposed to the network. - The bot connects exclusively to `admin.booking.com` and `account.booking.com`. ## Prerequisites The CLI tool must be installed and configured on the host machine: ```bash git clone https://github.com/matsei-ruka/booking-extranet-bot.git cd booking-extranet-bot python3 -m venv venv source venv/bin/activate # Linux/macOS pip install -r requirements.txt ``` Then create a `.env` file with your credentials: ``` BOOKING_USERNAME=your_login_name BOOKING_PASSWORD=your_password BOOKING_HOTEL_ID=your_default_hotel_id # optional ``` Google Chrome must be installed on the host machine. ## Environment - `BOT_DIR`: Absolute path to the booking-extranet-bot directory - Python venv at `$BOT_DIR/venv/bin/python3` - CLI entry point: `$BOT_DIR/cli.py` All commands output JSON to stdout. Logs go to stderr. ## Available Commands ### List Properties Get all properties with hotel IDs and unread message counts. ```bash cd $BOT_DIR && source venv/bin/activate && python3 cli.py list-properties ``` Returns: ```json { "status": "success", "action": "list-properties", "count": 3, "properties": [ {"hotel_id": "10353912", "name": "Property Name", "unread_messages": 4} ] } ``` ### Download Reservations Download reservations for a date range. Use `--json` to get data directly, or omit it to save an Excel file. ```bash # As JSON (for processing) cd $BOT_DIR && source venv/bin/activate && python3 cli.py download-reservations --start 2026-03-01 --end 2026-09-30 --json # As Excel file cd $BOT_DIR && source venv/bin/activate && python3 cli.py download-reservations --start 2026-03-01 --end 2026-09-30 ``` Options: - `--start YYYY-MM-DD` (required): Start date - `--end YYYY-MM-DD` (required): End date - `--date-type`: `arrival` (default), `departure`, or `booking` - `--json`: Return data as JSON instead of Excel - `--output-dir`: Directory for Excel file (default: `./downloads`) ### List Messages List guest messages for a property. Defaults to unanswered. ```bash cd $BOT_DIR && source venv/bin/activate && python3 cli.py list-messages --hotel-id 10353912 ``` Options: - `--hotel-id` (required): Property hotel ID from list-properties - `--filter`: `unanswered` (default), `sent`, or `all` ### Read Message Open and read a specific conversation with reservation details. ```bash cd $BOT_DIR && source venv/bin/activate && python3 cli.py read-message --hotel-id 10353912 --index 0 ``` Options: - `--hotel-id` (required): Property hotel ID - `--index` (required): Message index from list-messages (0-based) ### Send Message Reply to a guest conversation. Always use list-messages first to get the correct index. ```bash cd $BOT_DIR && source venv/bin/activate && python3 cli.py send-message --hotel-id 10353912 --index 0 --message "Thank you for your message" ``` Options: - `--hotel-id` (required): Property hotel ID - `--index` (required): Message index from list-messages (0-based) - `--message` (required): Reply text ### Update Rates Update room rates from the CSV pricing file. ```bash cd $BOT_DIR && source venv/bin/activate && python3 cli.py update-rates cd $BOT_DIR && source venv/bin/activate && python3 cli.py update-rates --hotel-id 13616005 ``` ## Typical Workflow 1. **List properties** to get hotel IDs and see which have unread messages 2. **List messages** for properties with unread messages 3. **Read** each conversation to understand the guest's request 4. **Send replies** as appropriate 5. **Download reservations** periodically to track bookings ## First Run On first run, Chrome opens and you must complete the login (including SMS 2FA). Subsequent runs reuse the session — no login needed until the session expires.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 booking-extranet-manager-1776026554 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 booking-extranet-manager-1776026554 技能

通过命令行安装

skillhub install booking-extranet-manager-1776026554

下载 Zip 包

⬇ 下载 Booking.com Extranet Manager v1.1.0

文件大小: 2.77 KB | 发布时间: 2026-4-13 09:32

v1.1.0 最新 2026-4-13 09:32
- Added a detailed credentials section specifying required and optional environment variables, including support for TOTP-based automated 2FA.
- Documented all environment variables, their purposes, and requirements.
- Clarified security and privacy practices, including credential storage, session persistence, and network access restrictions.
- Added descriptions of required scopes: browser automation, local storage, network, and filesystem.
- Improved and reorganized documentation for easier setup and security understanding.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部