Skip to main content

A fast, simple hotel scraper for Google Hotels, inspired by fast-flights.

Project description

fast-hotels

A fast, simple hotel scraper for Google Hotels, inspired by fast-flights. Fetches hotel data (name, price, rating, amenities, etc.) using Playwright, with a simple synchronous API.

Features

  • Scrape Google Hotels for hotel data
  • Simple, synchronous API (no Playwright or async knowledge needed)
  • Returns structured hotel data (name, price, rating, amenities, ...)

Installation

pip install fast-hotels
# Then install Playwright browsers:
python -m playwright install

Usage

from fast_hotels import HotelData, Guests, get_hotels

hotel_data = [
    HotelData(
        checkin_date="2025-06-23",
        checkout_date="2025-06-25",
        location="Tokyo"
    )
]
guests = Guests(adults=2, children=1)

result = get_hotels(hotel_data=hotel_data, guests=guests, fetch_mode="live")
for hotel in result.hotels:
    print(f"Name: {hotel.name}, Price: {hotel.price}, Rating: {hotel.rating}, Amenities: {hotel.amenities}")

API

get_hotels(hotel_data, guests, fetch_mode="live")

  • hotel_data: List of HotelData (checkin_date, checkout_date, location)
  • guests: Guests (adults, children)
  • fetch_mode: "live" (scrape Google) or "mock" (return sample data)
  • Returns: Result with .hotels (list of Hotel)

Models

  • HotelData: checkin_date, checkout_date, location
  • Guests: adults, children
  • Hotel: name, price, rating, amenities, ...
  • Result: hotels (list of Hotel)

Playwright

This package uses Playwright. After install, run:

python -m playwright install

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fast_hotels-0.1.2.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fast_hotels-0.1.2-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file fast_hotels-0.1.2.tar.gz.

File metadata

  • Download URL: fast_hotels-0.1.2.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for fast_hotels-0.1.2.tar.gz
Algorithm Hash digest
SHA256 02159c8dd02fffa37aa28ead37880635425f2d8c94d5dcd73234a5e1e50f58d0
MD5 80d3d4e199a2400e983698ef6f703939
BLAKE2b-256 0da074a7779eb9f6bc57d7fbb3a68215cf850d4b81b718e255e3b587cfed8d4f

See more details on using hashes here.

File details

Details for the file fast_hotels-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: fast_hotels-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for fast_hotels-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a43df5f8812d0297db001f77f4cc4c6b3b73ce0e4cf5498deaa938cf9f34525a
MD5 e72945cc5d19e124da6d860f2cd211dc
BLAKE2b-256 ab5fcb590ea5d480e97b6d893f895cb906562fd6e5533647ce8ea4426945b2fe

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page