Loading...
Loading...
Compare original and translation side by side
pip install playwright
python -m playwright install chromiumsudo apt install -y libnss3 libatk-bridge2.0-0 libdrm2 libxkbcommon0 libgbm1 libasound2pip install playwright
python -m playwright install chromiumsudo apt install -y libnss3 libatk-bridge2.0-0 libdrm2 libxkbcommon0 libgbm1 libasound2python gmaps_scraper.py "coffee shop" "Yogyakarta" --max 20
python gmaps_scraper.py "restoran" "Jakarta Selatan" --max 10 -o hasil.csv
python gmaps_scraper.py "tempat wisata" "Bali" --max 15python gmaps_scraper.py "coffee shop" "Yogyakarta" --max 20
python gmaps_scraper.py "restoran" "Jakarta Selatan" --max 10 -o hasil.csv
python gmaps_scraper.py "tempat wisata" "Bali" --max 15"Cari coffee shop di Jogja dari Google Maps"
"Scrape restoran di Jakarta Selatan rating >4.5"
"Tempat wisata di Bali yang buka 24 jam""在日惹寻找Google Maps上的咖啡店"
"抓取雅加达南部评分>4.5的餐厅"
"巴厘岛24小时营业的旅游景点"| Arg | Default | Description |
|---|---|---|
| required | Search query (e.g. "coffee shop") |
| required | Location (e.g. "Yogyakarta") |
| 50 | Max results |
| auto | Output CSV path |
| True | Run without browser UI |
| - | Show browser (debug) |
| 1.5 | Scroll delay (seconds) |
| 参数 | 默认值 | 描述 |
|---|---|---|
| 必填 | 搜索关键词(例如:"coffee shop") |
| 必填 | 地点(例如:"Yogyakarta") |
| 50 | 最大结果数量 |
| 自动生成 | 输出CSV文件路径 |
| True | 无浏览器界面运行 |
| - | 显示浏览器界面(调试用) |
| 1.5 | 滚动延迟(秒) |
| Field | Contoh |
|---|---|
| Name | Kopi Kultur |
| Rating | 4.8 |
| Reviews | 1234 |
| Price_range | Rp 25–50 rb |
| Category | Kedai Kopi |
| Address | Jl. Kaliurang KM 5 |
| Phone | 0812-xxxx-xxxx |
| Website | kopikultur.com |
| Hours | Buka · Tutup pukul 22.00 |
| 字段 | 示例 |
|---|---|
| Name | Kopi Kultur |
| Rating | 4.8 |
| Reviews | 1234 |
| Price_range | Rp 25–50 rb |
| Category | 咖啡店 |
| Address | Jl. Kaliurang KM 5 |
| Phone | 0812-xxxx-xxxx |
| Website | kopikultur.com |
| Hours | 营业中 · 22:00打烊 |
| Problem | Fix |
|---|---|
| |
| |
| Google Maps loading lambat, coba tambah timeout atau cek network |
| Coba query yang lebih spesifik |
| Google Maps pakai |
| Auto-retry dengan coordinate URL + search box fallback |
| 问题 | 解决方法 |
|---|---|
| 执行 |
| 执行 |
| Google Maps加载缓慢,尝试增加超时时间或检查网络 |
| 尝试使用更具体的搜索关键词 |
| Google Maps改用 |
| 自动重试,使用坐标URL + 搜索框回退方案 |
a[class*="hfpxzc"]buttonaget_listing_cards()is_detail_page()a[class*="hfpxzc"]buttonaget_listing_cards()is_detail_page()get_card_links()extract_from_detail()extract_listings_click()--maxget_card_links()extract_from_detail()extract_listings_click()--max