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 ofHotelData(checkin_date, checkout_date, location)guests:Guests(adults, children)fetch_mode: "live" (scrape Google) or "mock" (return sample data)- Returns:
Resultwith.hotels(list ofHotel)
Models
HotelData: checkin_date, checkout_date, locationGuests: adults, childrenHotel: 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
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
File details
Details for the file fast_hotels-0.1.3.tar.gz.
File metadata
- Download URL: fast_hotels-0.1.3.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b99e65d988d11239fb818149c461801de4ccb5cb1b893a20a77419c67c930c51
|
|
| MD5 |
76d4e5a1936200eefde79e36a10f5fe4
|
|
| BLAKE2b-256 |
696edb6f930857b8fd4a9786d26db2afa62c42871e7ebb30c027ddd2d54e3930
|
File details
Details for the file fast_hotels-0.1.3-py3-none-any.whl.
File metadata
- Download URL: fast_hotels-0.1.3-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
90b39315f2fcb7924407b7bb399f39c72c3cf4330cbc1decddab702a9dbc33a5
|
|
| MD5 |
cde087b35fd05e58dec549d82a9a1571
|
|
| BLAKE2b-256 |
7a67844b98d4ae16621ac04f7effbec4c90e633933f1d4e18e6b9e357ba8106c
|