Airbnb Search
搜索 Airbnb 房源,包含价格、评分和直接链接。不需要用户 API 密钥(使用 Airbnb 的公共前端 API 密钥)。用于在搜索 Airbnb 住宿、度假租赁或查询住宿价格时使用。
作者:awlevin · 最新版本:0.1.4
收藏:0 · 下载:1.2k
说明文档
# Airbnb Search Search Airbnb listings from the command line. Returns prices, ratings, and direct booking links. ## Requirements - Python 3.8+ - `requests` library (auto-installed via `uv run --with`) ## Quick Start ```bash # Run directly (no install needed) uv run --with requests scripts/airbnb-search.py "Steamboat Springs, CO" --checkin 2025-03-01 --checkout 2025-03-03 # JSON output uv run --with requests scripts/airbnb-search.py "Denver, CO" --checkin 2025-06-01 --checkout 2025-06-05 --json ``` ## Options ``` query Search location (e.g., "Steamboat Springs, CO") --checkin, -i DATE Check-in date (YYYY-MM-DD) --checkout, -o DATE Check-out date (YYYY-MM-DD) --min-price N Minimum price filter --max-price N Maximum price filter --min-bedrooms N Minimum bedrooms filter --limit N Max results (default: 50) --json Output as JSON --format FORMAT table or json (default: table) ``` ## Example Output ``` 📍 Steamboat Springs, CO 📊 Found 300+ total listings ========================================================================================== Cozy Mountain Cabin 🏆 2BR/1BA | ⭐4.92 | 127 reviews 💰 $407 total 🔗 https://airbnb.com/rooms/12345678 ``` ## Notes - Dates are required for accurate pricing - Prices include cleaning fees in the total - No user API key needed — uses Airbnb's public frontend API key (hardcoded, same key used by airbnb.com in the browser) - May break if Airbnb changes their internal GraphQL API - Be respectful of rate limits ## Links - [PyPI](https://pypi.org/project/airbnb-search/) - [GitHub](https://github.com/Olafs-World/airbnb-search)