🚀 Xiaozhu FIXED Scraper
📍 Target: 上海 徐汇区
🌍 Geolocation: 31.188, 121.4367
📅 Dates: 2025-12-24 → 2026-01-22 (29 days)
💰 Budget: 4000-5000 RMB/month

🌍 Setting geolocation to Shanghai Xujiahui...
✅ Geolocation set to 31.188, 121.4367

🔍 Strategy 1: Trying direct Shanghai URL...
   Trying: https://minsu.xiaozhu.com/shanghai
   ❌ 404
   Trying: https://minsu.xiaozhu.com/city/shanghai
   ❌ 404
   Trying: https://minsu.xiaozhu.com/search/shanghai
   ❌ 404
   Trying: https://minsu.xiaozhu.com/shanghai/徐汇区
   ❌ 404

🔍 Strategy 2: Homepage search with geolocation...
📸 ./xiaozhu_homepage_1766283618604.png
   Detected city: 北京

⌨️  Using search...
   Found: input[type="text"]
📸 ./xiaozhu_search_typed_1766283621669.png

👆 Looking for Shanghai suggestions...
   ✅ Clicked Shanghai suggestion
📸 ./xiaozhu_after_suggestion_1766283625754.png

📍 Current URL: https://minsu.xiaozhu.com/
   Shanghai content: ✅
   Beijing content: ✅ No

📊 Extracting listings...

⏳ Scrolling to load all listings (max 50 scrolls, 7 patience)...

🔄 Scroll 1/50 (0%)...
   Found 10 items, 10 new, 10 total
🔄 Scroll 2/50 (2%)...
   Found 10 items, 0 new, 10 total
🔄 Scroll 3/50 (4%)...
   Found 10 items, 0 new, 10 total
🔄 Scroll 4/50 (6%)...
   Found 10 items, 0 new, 10 total
🔄 Scroll 5/50 (8%)...
   Found 10 items, 0 new, 10 total
🔄 Scroll 6/50 (10%)...
   Found 10 items, 0 new, 10 total
🔄 Scroll 7/50 (12%)...
   Found 10 items, 0 new, 10 total
🔄 Scroll 8/50 (14%)...
   Found 10 items, 0 new, 10 total
   No new listings for 7 scrolls, stopping...
📸 ./xiaozhu_final_1766283650545.png

✅ Total extracted: 10 listings

💾 Raw listings saved to xiaozhu_raw_listings.json

💾 ./xiaozhu_results.json
📝 ./xiaozhu_results.md

🏆 TOP RESULTS:

1. 体育公寓，近徐家汇淮海路六院八院1号9号15号12号线地铁南站华东理工上师大高层阳光空气安静洁净单间
   💰 ¥132/day × 29 days = ¥3828
   📍 体育公寓，近徐家汇淮海路六院八院1号9号15号12号线地铁南站华东理工上师大高层阳光空气安静洁净单间单间·1床·宜住2人立即确认有停车位可做饭可带宠物¥132/晚¥165 已减33元早鸟特惠天天特惠
   ✓ Kitchen: ✓ | Fridge: ✗ | Washer: ✗ | Metro: ✓
   ⭐ 35.4

2. 胸科医院旁/黛园/独立卫浴，有窗户，可烧饭
   💰 ¥170/day × 29 days = ¥4930
   📍 胸科医院旁/黛园/独立卫浴，有窗户，可烧饭整租·1室·2床·宜住2人立即确认可做饭¥170/晚¥178 已减8元早鸟特惠天天特惠
   ✓ Kitchen: ✓ | Fridge: ✗ | Washer: ✗ | Metro: ✗
   ⭐ -80

