Spaces:
Runtime error

File size: 17,448 Bytes
5452912
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
#!/usr/bin/env python3
"""
Milwaukee Family Activities Scraper
Run this script to generate milwaukee_activities.json
"""

import requests
from bs4 import BeautifulSoup
import json
import re
import time
from urllib.parse import urljoin
import os

def get_comprehensive_milwaukee_activities():
    """Get comprehensive Milwaukee activities data"""
    activities = [
        {
            'name': 'Milwaukee County Zoo',
            'description': 'Home to over 2,000 animals from around the world, featuring interactive exhibits, educational programs, and special events throughout the year. The zoo offers a children\'s zoo, train rides, and educational programs for all ages.',
            'location': '10001 W Bluemound Rd, Milwaukee, WI 53226',
            'cost': '$16.50 adults, $13.50 children (3-12), Under 3 free',
            'category': 'Educational',
            'age_range': 'All ages',
            'season': 'Year Round',
            'duration': '3-5 hours',
            'indoor_outdoor': 'Outdoor',
            'contact_info': '(414) 771-3040',
            'website': 'milwaukeezoo.org',
            'practical_tips': 'Arrive early for cooler temperatures and more active animals. Parking is $6. Bring a wagon for tired little ones.',
            'insider_info': 'Free admission on the first and third Monday of each month for Milwaukee County residents.',
            'best_times': 'Spring and fall for comfortable weather, early morning for most active animals'
        },
        {
            'name': 'Discovery World',
            'description': 'Interactive science and technology museum featuring hands-on exhibits, an aquarium showcasing Great Lakes marine life, and educational programs. Perfect for curious minds of all ages.',
            'location': '500 N Harbor Dr, Milwaukee, WI 53202',
            'cost': '$19.95 adults, $14.95 children (3-17), Under 3 free',
            'category': 'Educational',
            'age_range': 'Ages 3+',
            'season': 'Year Round',
            'duration': '2-4 hours',
            'indoor_outdoor': 'Indoor',
            'contact_info': '(414) 765-9966',
            'website': 'discoveryworld.org',
            'practical_tips': 'Park in the adjacent lot for $8. The aquarium is a highlight - don\'t miss feeding times. Interactive exhibits can get busy on weekends.',
            'insider_info': 'Reciprocal admission with many other science museums nationwide if you have a membership.',
            'best_times': 'Weekday mornings for smaller crowds, winter months for indoor fun'
        },
        {
            'name': 'Bradford Beach',
            'description': 'Popular Lake Michigan beach with swimming, beach volleyball courts, concessions, and beautiful lakefront views. Features a playground and is perfect for family beach days.',
            'location': '2400 N Lincoln Memorial Dr, Milwaukee, WI 53211',
            'cost': 'Free',
            'category': 'Outdoor',
            'age_range': 'All ages',
            'season': 'Summer',
            'duration': '2-6 hours',
            'indoor_outdoor': 'Outdoor',
            'contact_info': 'Milwaukee County Parks',
            'website': 'county.milwaukee.gov',
            'practical_tips': 'Arrive early for parking and good spots. Bring umbrellas for shade. Concessions available but can be pricey.',
            'insider_info': 'The north end of the beach is typically less crowded. Beach volleyball courts are free to use.',
            'best_times': 'Weekday mornings for fewer crowds, late afternoon for beautiful sunset views'
        },
        {
            'name': 'Betty Brinn Children\'s Museum',
            'description': 'Hands-on learning museum designed specifically for children 10 and under, featuring interactive exhibits, art activities, and imaginative play areas.',
            'location': '929 E Wisconsin Ave, Milwaukee, WI 53202',
            'cost': '$12 per person, Under 12 months free',
            'category': 'Educational',
            'age_range': 'Ages 0-10',
            'season': 'Year Round',
            'duration': '2-3 hours',
            'indoor_outdoor': 'Indoor',
            'contact_info': '(414) 390-5437',
            'website': 'bbcmkids.org',
            'practical_tips': 'Best for toddlers and preschoolers. Bring socks for play areas. Can get very busy on weekends and rainy days.',
            'insider_info': 'Annual memberships pay for themselves after 3 visits. Special sensory-friendly hours available.',
            'best_times': 'Weekday mornings for calmer experience, avoid nap times (1-3pm)'
        },
        {
            'name': 'Milwaukee Art Museum',
            'description': 'World-renowned art museum with iconic architecture and the moving Burke Brise Soleil. Features thousands of artworks and family-friendly programs. Kids 12 and under are always free.',
            'location': '700 N Art Museum Dr, Milwaukee, WI 53202',
            'cost': '$17 adults, Kids 12 and under free',
            'category': 'Arts & Culture',
            'age_range': 'Ages 5+',
            'season': 'Year Round',
            'duration': '2-3 hours',
            'indoor_outdoor': 'Indoor',
            'contact_info': '(414) 224-3200',
            'website': 'mam.org',
            'practical_tips': 'Watch the Burke Brise Soleil opening at 10am and closing at 5pm. Family activity guides available at front desk.',
            'insider_info': 'Free admission for all on the first Thursday evening of each month for Wisconsin residents.',
            'best_times': 'Sunday mornings for family programs, weekdays for smaller crowds'
        },
        {
            'name': 'Lakefront Trail',
            'description': 'Scenic paved trail along Lake Michigan perfect for walking, biking, and enjoying beautiful lake views. Connects multiple parks, beaches, and attractions.',
            'location': 'Milwaukee Lakefront - Multiple access points',
            'cost': 'Free',
            'category': 'Outdoor',
            'age_range': 'All ages',
            'season': 'Spring-Fall',
            'duration': '1-3 hours',
            'indoor_outdoor': 'Outdoor',
            'contact_info': 'Milwaukee County Parks',
            'website': 'county.milwaukee.gov',
            'practical_tips': 'Bike rentals available at several locations. Trail can be busy on weekends. Bring water and snacks.',
            'insider_info': 'The trail connects to Bradford Beach, Veterans Park, and downtown. Look for the lime scooters for easy transportation.',
            'best_times': 'Early morning or evening for cooler temperatures and beautiful lighting'
        },
        {
            'name': 'Mitchell Park Conservatory (The Domes)',
            'description': 'Three distinctive glass domes featuring tropical, desert, and seasonal plant displays. Each dome offers a unique climate experience with exotic plants and seasonal shows.',
            'location': '524 S Layton Blvd, Milwaukee, WI 53215',
            'cost': '$8 adults, $6 children (6-17), Under 6 free',
            'category': 'Educational',
            'age_range': 'All ages',
            'season': 'Year Round',
            'duration': '1-2 hours',
            'indoor_outdoor': 'Indoor',
            'contact_info': '(414) 257-5611',
            'website': 'milwaukeedomes.org',
            'practical_tips': 'Dress in layers - tropical dome is hot and humid. Seasonal dome changes displays frequently. Photography allowed.',
            'insider_info': 'Holiday shows in winter are spectacular. Free parking on-site.',
            'best_times': 'Perfect for cold or rainy days, seasonal shows during holidays'
        },
        {
            'name': 'Harley-Davidson Museum',
            'description': 'Museum showcasing the history of the iconic motorcycle brand with interactive exhibits, historic motorcycles, and family-friendly activities.',
            'location': '400 W Canal St, Milwaukee, WI 53201',
            'cost': '$20 adults, $15 seniors/military, $10 children (5-17), Under 5 free',
            'category': 'Educational',
            'age_range': 'Ages 5+',
            'season': 'Year Round',
            'duration': '2-3 hours',
            'indoor_outdoor': 'Indoor',
            'contact_info': '(414) 287-2789',
            'website': 'harley-davidson.com/museum',
            'practical_tips': 'Interactive exhibits keep kids engaged. Restaurant on-site with kid-friendly options. Gift shop has items for all ages.',
            'insider_info': 'Free audio tours included with admission. Special family scavenger hunts available.',
            'best_times': 'Weekday afternoons for smaller crowds, any time for motorcycle enthusiasts'
        },
        {
            'name': 'Summerfest',
            'description': 'The world\'s largest music festival featuring 11 days of music, food, and family activities along the beautiful Lake Michigan shoreline. Multiple stages and family areas.',
            'location': 'Henry Maier Festival Park, 200 N Harbor Dr, Milwaukee, WI',
            'cost': '$25 general admission, Children 10 and under free',
            'category': 'Entertainment',
            'age_range': 'All ages',
            'season': 'Summer',
            'duration': 'Full day',
            'indoor_outdoor': 'Outdoor',
            'contact_info': '(414) 273-2680',
            'website': 'summerfest.com',
            'practical_tips': 'Bring sunscreen and water. Family pack areas available. Strollers allowed. Shuttle service from downtown.',
            'insider_info': 'Kids Zone has free activities. Many food vendors offer kid-friendly options. Re-entry allowed with hand stamp.',
            'best_times': 'Weekday afternoons for smaller crowds, evening for main stage acts'
        },
        {
            'name': 'Wisconsin State Fair',
            'description': 'Annual state fair featuring rides, games, agricultural exhibits, live entertainment, and famous cream puffs. A Wisconsin tradition with something for everyone.',
            'location': 'State Fair Park, 640 S 84th St, West Allis, WI',
            'cost': '$15 adults, $12 seniors (60+), $9 children (5-11), Under 5 free',
            'category': 'Entertainment',
            'age_range': 'All ages',
            'season': 'Summer',
            'duration': 'Full day',
            'indoor_outdoor': 'Outdoor',
            'contact_info': '(414) 266-7000',
            'website': 'wistatefair.com',
            'practical_tips': 'Arrive early for parking. Bring cash for vendors. Wear comfortable shoes. Try the famous cream puffs!',
            'insider_info': 'Free entertainment stages throughout the grounds. Many exhibits are free with admission.',
            'best_times': 'Weekday mornings for smaller crowds, evening for cooler temperatures'
        },
        {
            'name': 'Pabst Mansion',
            'description': 'Historic Gilded Age mansion offering guided tours showcasing the opulent lifestyle of brewing baron Frederick Pabst. Beautiful architecture and period furnishings.',
            'location': '2000 W Wisconsin Ave, Milwaukee, WI 53233',
            'cost': '$12 adults, $10 students/seniors, $6 children (6-17), Under 6 free',
            'category': 'Historical',
            'age_range': 'Ages 6+',
            'season': 'Year Round',
            'duration': '1-2 hours',
            'indoor_outdoor': 'Indoor',
            'contact_info': '(414) 931-0808',
            'website': 'pabstmansion.com',
            'practical_tips': 'Tours are guided and last about 90 minutes. Photography allowed in most areas. Gift shop has local souvenirs.',
            'insider_info': 'Special holiday decorations in December. Family-friendly ghost tours in October.',
            'best_times': 'Weekend afternoons for regular tours, December for holiday decorations'
        },
        {
            'name': 'Veteran\'s Park',
            'description': 'Large lakefront park with playground, lagoon, war memorials, and beautiful views of Lake Michigan and downtown Milwaukee skyline.',
            'location': '1010 N Lincoln Memorial Dr, Milwaukee, WI 53202',
            'cost': 'Free',
            'category': 'Outdoor',
            'age_range': 'All ages',
            'season': 'Spring-Fall',
            'duration': '1-3 hours',
            'indoor_outdoor': 'Outdoor',
            'contact_info': 'Milwaukee County Parks',
            'website': 'county.milwaukee.gov',
            'practical_tips': 'Great playground for kids. Plenty of parking. Walking paths connect to lakefront trail. Picnic areas available.',
            'insider_info': 'Free concerts and events in summer. Beautiful spot for watching fireworks during festivals.',
            'best_times': 'Morning for playground time, evening for skyline views'
        },
        {
            'name': 'Milwaukee Public Market',
            'description': 'Indoor food market featuring local vendors, specialty foods, and family-friendly dining options. Great for trying local Wisconsin products.',
            'location': '400 N Water St, Milwaukee, WI 53202',
            'cost': 'Free admission, food prices vary',
            'category': 'Food & Dining',
            'age_range': 'All ages',
            'season': 'Year Round',
            'duration': '1-2 hours',
            'indoor_outdoor': 'Indoor',
            'contact_info': '(414) 336-1111',
            'website': 'milwaukeepublicmarket.org',
            'practical_tips': 'Stroller-friendly. High chairs available in seating area. Sample many local products. Parking available for fee.',
            'insider_info': 'Free cooking demonstrations on weekends. Many vendors offer free samples.',
            'best_times': 'Weekend mornings for demonstrations, weekdays for smaller crowds'
        },
        {
            'name': 'Sprecher Brewery',
            'description': 'Family-friendly brewery offering tours with root beer tastings for kids and beer for adults. Learn about brewing process and Milwaukee history.',
            'location': '701 W Glendale Ave, Glendale, WI 53209',
            'cost': '$7 adults, Kids free with adult',
            'category': 'Food & Dining',
            'age_range': 'All ages',
            'season': 'Year Round',
            'duration': '45 minutes',
            'indoor_outdoor': 'Indoor',
            'contact_info': '(414) 964-2739',
            'website': 'sprecherbrewery.com',
            'practical_tips': 'Reservations recommended. Kids get unlimited root beer samples. Gift shop has sodas and merchandise.',
            'insider_info': 'One of the few breweries that makes their own root beer on-site. Tours include history of Milwaukee brewing.',
            'best_times': 'Weekend afternoons for regular tour schedule'
        },
        {
            'name': 'Boerner Botanical Gardens',
            'description': 'Beautiful 40-acre botanical garden featuring themed gardens, walking trails, and seasonal displays. Perfect for peaceful family strolls.',
            'location': '9400 Boerner Dr, Hales Corners, WI 53130',
            'cost': '$7 adults, Kids under 5 free',
            'category': 'Nature',
            'age_range': 'All ages',
            'season': 'Spring-Fall',
            'duration': '1-2 hours',
            'indoor_outdoor': 'Outdoor',
            'contact_info': '(414) 525-5653',
            'website': 'boernerbotanicalgardens.org',
            'practical_tips': 'Stroller-friendly paved paths. Restrooms and visitor center available. Annual events include holiday lights.',
            'insider_info': 'Free admission on Tuesdays. Rose garden is spectacular in June-July.',
            'best_times': 'Spring for blooming flowers, fall for changing leaves'
        }
    ]
    
    return activities

def save_activities_to_json(activities, filename='milwaukee_activities.json'):
    """Save activities to JSON file"""
    try:
        with open(filename, 'w', encoding='utf-8') as f:
            json.dump(activities, f, indent=2, ensure_ascii=False)
        print(f"βœ… Saved {len(activities)} activities to {filename}")
        return True
    except Exception as e:
        print(f"❌ Error saving to JSON: {str(e)}")
        return False

def main():
    """Main function to generate Milwaukee activities JSON"""
    print("πŸ™οΈ Milwaukee Family Activities Generator")
    print("=" * 50)
    
    # Get comprehensive activities data
    activities = get_comprehensive_milwaukee_activities()
    
    # Save to JSON
    success = save_activities_to_json(activities)
    
    if success:
        print(f"\nβœ… Successfully created milwaukee_activities.json with {len(activities)} activities!")
        print("\nπŸ“‹ Activity categories:")
        categories = {}
        for activity in activities:
            cat = activity.get('category', 'Unknown')
            categories[cat] = categories.get(cat, 0) + 1
        
        for cat, count in sorted(categories.items()):
            print(f"  - {cat}: {count} activities")
        
        print(f"\nπŸ“„ Data saved to: milwaukee_activities.json")
        print("πŸš€ You can now run your Streamlit app!")
        
        # Show file size
        file_size = os.path.getsize('milwaukee_activities.json')
        print(f"πŸ“Š File size: {file_size:,} bytes")
        
    else:
        print("❌ Failed to create JSON file.")

if __name__ == "__main__":
    main()