Skill: regalstreak/luma (version 1.0.0)

--- name: luma description: Fetch upcoming events from Luma (lu.ma) for any city. Use when the user asks about tech events, startup meetups, networking events, conferences, or things happening in cities like Bangalore, Mumbai, Delhi, San Francisco, New York, etc. version: 1.0.0 author: Clawd --- # Luma Events Skill Fetch structured event data from Luma (lu.ma) without authentication. Luma is a popular platform for tech meetups, startup events, conferences, and community gatherings. ## How It Works Luma is a Next.js SSR app. All event data is embedded in the HTML as JSON inside a `<script id="__NEXT_DATA__">` tag. The Python script extracts this data - no API key needed. ## Quick Start ```bash python3 scripts/fetch_events.py bengaluru mumbai --days 14 ``` ## Usage ```bash python3 scripts/fetch_events.py <city> [cities...] [--days N] [--max N] [--json] ``` ### Parameters - **`city`**: City slug (bengaluru, mumbai, delhi, san-francisco, new-york, london, etc.) - **`--days N`**: Only show events within N days (default: 30) - **`--max N`**: Maximum events per city (default: 20) - **`--json`**: Output raw JSON instead of formatted text ### Popular City Slugs - **India**: bengaluru, mumbai, delhi, hyderabad, pune - **USA**: san-francisco, new-york, austin, seattle, boston - **Global**: london, singapore, dubai, toronto, sydney ## Output Format ### Human-readable (default) ``` ============================================================ 📍 BENGALURU — 5 events ============================================================ 🎯 AI Engineers Day with OpenAI 📍 Whitefield, Bengaluru 📅 Jan 31, 2026 10:30 AM IST 👥 OpenAI, Google AI 👤 1411 going 🎫 Available (150 spots) 🔗 https://lu.ma/57tarlkp 🎯 Startup Fundraising Masterclass 📍 Koramangala, Bengaluru 📅 Feb 02, 2026 06:00 PM IST 🟢 Free (50 spots) 🔗 https://lu.ma/startup-funding ``` ### JSON output (`--json`) ```json [ { "city": "bengaluru", "count": 5, "events": [ { "event": { "name": "AI Engineers Day", "start_at": "2026-01-31T05:00:00.000Z", "end_at": "2026-01-31T12:30:00.000Z", "url": "57tarlkp", "geo_address_info": { "city": "Bengaluru", "address": "Whitefield", "full_address": "..." } }, "hosts": [{"name": "OpenAI", "linkedin_handle": "/company/openai"}], "guest_count": 1411, "ticket_info": { "is_free": false, "is_sold_out": false, "spots_remaining": 150 } } ] } ] ``` ## Event Persistence **Always save fetched events to `~/clawd/memory/luma-events.json` for future reference.** This allows you to: - Answer questions about events without repeated fetches - Track which events the user is interested in - Compare events across cities - Build context about upcoming plans **When to save:** - After fetching events for any city - Merge with existing data (by event URL) - Keep events for next 60 days only - Add `lastFetched` timestamp **Format:** ```json [ { "city": "bengaluru", "name": "AI Engineers Day", "start": "2026-01-31T05:00:00.000Z", "end": "2026-01-31T12:30:00.000Z", "url": "https://lu.ma/57tarlkp", "venue": "Whitefield, Bengaluru", "hosts": ["OpenAI", "Google AI"], "guestCount": 1411, "ticketStatus": "available", "spotsRemaining": 150, "isFree": false, "lastFetched": "2026-01-29T12:54:00Z" } ] ``` ## Common Use Cases ### Find tech events this week ```bash python3 scripts/fetch_events.py bengaluru --days 7 ``` ### Check multiple cities for AI events ```bash python3 scripts/fetch_events.py bengaluru mumbai san-francisco --days 14 --json | jq '.[] | .events[] | select(.event.name | contains("AI"))' ``` ### Get next 5 events in a city ```bash python3 scripts/fetch_events.py new-york --max 5 ``` ## Example Queries **User:** "What tech events are happening in Bangalore this weekend?" → Fetch Bengaluru events for next 7 days, save to memory **User:** "Any AI meetups in Mumbai next month?" → Fetch Mumbai events for next 30 days, filter for AI-related, save to memory **User:** "Compare startup events in SF vs NYC" → Fetch both cities, compare, save both to memory ## Notes - **No authentication**: Luma event pages are public - **City slugs**: Use lowercase, hyphenated slugs (san-francisco, not San Francisco) - **Rate limiting**: Respectful fetching only (don't hammer the servers) - **Data freshness**: Events are live data from the HTML, always current - **Timezone**: Times are in the event's local timezone (extracted from start_at) ## Troubleshooting **"Could not find __NEXT_DATA__"** → Luma changed their HTML structure, script needs updating **"Unexpected data structure"** → The JSON path changed, check the latest HTML **No events returned** → City slug might be wrong, or no upcoming events for that city **Timeout errors** → Network issue, retry or check internet connection ## Dependencies - Python 3.6+ (stdlib only - no external packages needed) - `urllib`, `json`, `re`, `argparse`, `datetime` (all built-in) ## Changelog ### v1.0.0 (2026-01-29) - Initial release - Support for multiple cities - Human-readable and JSON output - Date filtering (--days) - Event limit per city (--max) - Event persistence to memory file

path: README.md
content: # Luma Events Skill

Fetch upcoming tech events, startup meetups, and conferences from Luma (lu.ma) for any city worldwide.

## Installation

This skill is already available in your Clawdbot workspace at `~/clawd/skills/luma/`.

No dependencies or API keys needed - uses public event data.

## Quick Start

```bash
# Events in Bangalore this week
python3 ~/clawd/skills/luma/scripts/fetch_events.py bengaluru --days 7

# Multiple cities, next 2 weeks
python3 ~/clawd/skills/luma/scripts/fetch_events.py bengaluru mumbai san-francisco --days 14

# Get raw JSON for processing
python3 ~/clawd/skills/luma/scripts/fetch_events.py new-york --json
```

## How to Use with Clawdbot

Just ask naturally:

- "What tech events are happening in Bangalore this weekend?"
- "Any AI meetups in Mumbai next month?"
- "Show me startup events in SF"
- "Compare tech events in Bangalore vs San Francisco"

Clawdbot will fetch the events, save them to memory, and help you find what you're looking for.

## Popular Cities

### India
- bengaluru
- mumbai
- delhi
- hyderabad
- pune

### USA
- san-francisco
- new-york
- austin
- seattle
- boston

### Global
- london
- singapore
- dubai
- toronto
- sydney
- berlin
- amsterdam

## Output

Events are shown with:
- 🎯 Event name
- 📍 Venue and city
- 📅 Date and time
- 👥 Hosts (if listed)
- 👤 Guest count
- 🎫 Ticket status (Free/Paid/Sold Out/Available)
- 🔗 Direct link to lu.ma

## Event Memory

Fetched events are automatically saved to `~/clawd/memory/luma-events.json` so Clawdbot can:
- Remember events you're interested in
- Answer follow-up questions without re-fetching
- Track changes in ticket availability
- Help you plan across multiple cities

## Tech Details

- **No API**: Extracts data from Luma's public HTML (Next.js __NEXT_DATA__ tag)
- **Python stdlib only**: No external dependencies
- **Always fresh**: Gets live data directly from lu.ma
- **Fast**: Fetches and parses in ~1-2 seconds per city

## Examples

### Find weekend tech events
```bash
python3 ~/clawd/skills/luma/scripts/fetch_events.py bengaluru --days 3
```

### Check if events are selling out
```bash
python3 ~/clawd/skills/luma/scripts/fetch_events.py mumbai --json | jq '.[] | .events[] | select(.ticket_info.is_near_capacity)'
```

### Next 5 events in your city
```bash
python3 ~/clawd/skills/luma/scripts/fetch_events.py san-francisco --max 5
```

## Support

Part of Clawdbot skills. See `SKILL.md` for agent instructions.

Created: 2026-01-29
Version: 1.0.0


path: package.json
content: {
  "name": "@clawdbot/skill-luma",
  "version": "1.0.0",
  "description": "Fetch upcoming events from Luma (lu.ma) for any city",
  "author": "Clawd",
  "license": "MIT",
  "keywords": [
    "clawdbot",
    "skill",
    "luma",
    "events",
    "meetups",
    "conferences"
  ],
  "scripts": {
    "fetch": "python3 scripts/fetch_events.py"
  },
  "clawd": {
    "skill": true,
    "type": "script",
    "triggers": [
      "events",
      "meetups",
      "luma",
      "lu.ma",
      "conferences",
      "tech events",
      "startup events"
    ]
  }
}


path: scripts/fetch_events.py
content: #!/usr/bin/env python3
"""
Fetch Luma events from city pages by extracting __NEXT_DATA__ JSON.
No API key required.
"""

import urllib.request
import json
import re
import argparse
from datetime import datetime, timedelta
from html import unescape

def fetch_luma_events(city_slug):
    """Fetch events for a city from Luma."""
    url = f"https://lu.ma/{city_slug}"
    
    try:
        # Add headers to avoid 403
        req = urllib.request.Request(
            url,
            headers={
                'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36',
                'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
                'Accept-Language': 'en-US,en;q=0.9',
            }
        )
        with urllib.request.urlopen(req, timeout=10) as response:
            html = response.read().decode('utf-8')
        
        # Extract __NEXT_DATA__ JSON
        match = re.search(r'<script id="__NEXT_DATA__"[^>]*>(.*?)</script>', html, re.DOTALL)
        if not match:
            return {"error": f"Could not find __NEXT_DATA__ in {url}"}
        
        data = json.loads(unescape(match.group(1)))
        
        # Navigate to events array
        try:
            events = data['props']['pageProps']['initialData']['data']['events']
            return {"city": city_slug, "events": events, "url": url}
        except KeyError as e:
            return {"error": f"Unexpected data structure: {e}", "url": url}
    
    except Exception as e:
        return {"error": str(e), "url": f"https://lu.ma/{city_slug}"}

def format_event_human(event_data, city_slug):
    """Format event for human-readable output."""
    event = event_data.get('event', {})
    hosts = event_data.get('hosts', [])
    ticket = event_data.get('ticket_info', {})
    guest_count = event_data.get('guest_count', 0)
    
    name = event.get('name', 'Unnamed Event')
    start = event.get('start_at')
    geo = event.get('geo_address_info', {})
    venue = geo.get('address', 'Online')
    city = geo.get('city', city_slug.title())
    url_slug = event.get('url', '')
    
    # Format date
    if start:
        try:
            dt = datetime.fromisoformat(start.replace('Z', '+00:00'))
            date_str = dt.strftime('%b %d, %Y %I:%M %p %Z')
        except:
            date_str = start
    else:
        date_str = "TBA"
    
    # Ticket status
    if ticket.get('is_sold_out'):
        ticket_status = "🔴 Sold Out"
    elif ticket.get('is_free'):
        spots = ticket.get('spots_remaining')
        if spots and spots > 0:
            ticket_status = f"🟢 Free ({spots} spots)"
        else:
            ticket_status = "🟢 Free"
    else:
        spots = ticket.get('spots_remaining')
        if spots and spots > 0:
            ticket_status = f"🎫 Available ({spots} spots)"
        elif ticket.get('is_near_capacity'):
            ticket_status = "🟡 Nearly Full"
        else:
            ticket_status = "🎫 Paid"
    
    # Hosts
    host_str = ""
    if hosts:
        host_names = [h.get('name', '') for h in hosts[:2]]
        host_str = f"👥 {', '.join(filter(None, host_names))}\n"
    
    # Guest count
    guest_str = f"👤 {guest_count} going\n" if guest_count > 0 else ""
    
    output = f"""
🎯 {name}
📍 {venue}, {city}
📅 {date_str}
{host_str}{guest_str}{ticket_status}
🔗 https://lu.ma/{url_slug}
""".strip()
    
    return output

def filter_events(events, days=None, max_events=None):
    """Filter events by date range and limit."""
    filtered = []
    cutoff = None
    
    if days:
        cutoff = datetime.now() + timedelta(days=days)
    
    for event_data in events:
        event = event_data.get('event', {})
        start = event.get('start_at')
        
        # Filter by date
        if start and cutoff:
            try:
                dt = datetime.fromisoformat(start.replace('Z', '+00:00'))
                if dt.replace(tzinfo=None) > cutoff:
                    continue
            except:
                pass
        
        filtered.append(event_data)
        
        # Limit results
        if max_events and len(filtered) >= max_events:
            break
    
    return filtered

def main():
    parser = argparse.ArgumentParser(
        description="Fetch Luma events from city pages"
    )
    parser.add_argument(
        'cities',
        nargs='+',
        help='City slugs (e.g., bengaluru, mumbai, san-francisco)'
    )
    parser.add_argument(
        '--days',
        type=int,
        default=30,
        help='Only show events within N days (default: 30)'
    )
    parser.add_argument(
        '--max',
        type=int,
        default=20,
        help='Maximum events per city (default: 20)'
    )
    parser.add_argument(
        '--json',
        action='store_true',
        help='Output raw JSON instead of formatted text'
    )
    
    args = parser.parse_args()
    
    all_results = []
    
    for city in args.cities:
        result = fetch_luma_events(city)
        
        if 'error' in result:
            print(f"\n❌ {city}: {result['error']}", flush=True)
            if args.json:
                all_results.append(result)
            continue
        
        events = result.get('events', [])
        filtered = filter_events(events, args.days, args.max)
        
        if args.json:
            all_results.append({
                "city": city,
                "count": len(filtered),
                "events": filtered
            })
        else:
            print(f"\n{'='*60}", flush=True)
            print(f"📍 {city.upper()} — {len(filtered)} events", flush=True)
            print(f"{'='*60}", flush=True)
            
            for event_data in filtered:
                print(format_event_human(event_data, city), flush=True)
                print("", flush=True)
    
    if args.json:
        print(json.dumps(all_results, indent=2), flush=True)

if __name__ == '__main__':
    main()


Security scan verdicts — ClawScan: clean | static analysis: clean | VirusTotal: clean | SkillSpector: suspicious (CRITICAL)