#!/bin/bash
# Quick local business hours lookup via DuckDuckGo
# Usage: local-hours.sh "business name and location"

query="${1// /+}"
curl -s "https://html.duckduckgo.com/html/?q=${query}+hours" \
  -H "User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36" \
  | grep -oP '[0-9]{1,2}:[0-9]{2}\s*(AM|PM|am|pm)|Open until [^<]+|Closes [^<]+|Open 24|Currently (open|closed)' \
  | head -10
