biz - Business Search

Search for business information using DuckDuckGo. Extracts phone numbers and addresses, optionally calculates distance from your current location.

Quick Start

biz "getyok'd pasadena"
biz "taco bell tustin" --distance
biz -n 5 "coffee shops la"

Usage

biz "business name and location"
biz --distance "business query"
biz -n NUM "query"
biz --raw "query"

Options

Option Description

-n NUM

Number of results (default: 3)

--distance, -d

Show distance from your current IP-based location

--raw

Show raw search results with more detail

-v

Verbose output

Examples

biz "micro center tustin"
Output
──────────────────────────────────────────────────
  Micro Center - Tustin, CA
  📞 (714) 566-0901
  📍 1100 E Edinger Ave, Tustin, CA 92780
  🔗 https://www.microcenter.com/site/stores/tustin.aspx

With Distance

biz --distance "in-n-out pasadena"
Output
──────────────────────────────────────────────────
  In-N-Out Burger - Pasadena
  📞 (800) 786-1000
  📍 2114 E Foothill Blvd, Pasadena, CA 91107
  🚗 8.2 miles from you
  🔗 https://locations.in-n-out.com/...

Multiple Results

biz -n 5 "korean bbq la"

How It Works

  1. Search: Queries DuckDuckGo with enhanced business keywords

  2. Extract: Uses regex patterns to find phone numbers and addresses

  3. Distance: Determines your location via IP (ipinfo.io), geocodes destination, calculates geodesic distance

Dependencies

Managed via PEP 723 inline metadata:

# /// script
# requires-python = ">=3.11"
# dependencies = ["ddgs", "geopy"]
# ///

Source

Located at bin/biz in domus-python repository.