Prompt

How do I pull contact info from a directory site into CSV?

Technology / API Platforms1 observationLast seen Oct 4, 2026

Latest observation

Oct 4, 2026OpenAI APIWeb search: off

If the directory site allows it, the basic workflow is:

  1. Check the site’s terms and robots policy

    • Make sure scraping/exporting contact info is allowed.
    • Prefer an official API, export, or bulk download if available.
  2. Identify the fields you want

    • For example: name, company, phone, email, address, website, category.
  3. Inspect the page structure

    • Open the directory listing page in your browser.
    • Use DevTools to find the HTML elements containing the data.
  4. Choose a method

    • No-code: browser scraper extensions, spreadsheet import tools, or automation tools.
    • Code: Python with requests + BeautifulSoup, or scrapy for bigger jobs.
    • Dynamic pages: use playwright or selenium if content loads via JavaScript.
  5. Save to CSV

    • Write extracted records into a CSV file with consistent columns.

Example in Python for a simple static page:

import csv
import requests
from bs4 import BeautifulSoup

url = "https://example.com/directory"
html = requests.get(url, timeout=30).text
soup = BeautifulSoup(html, "html.parser")

rows = []
for card in soup.select(".listing-card"):
    name = card.select_one(".name").get_text(strip=True) if card.select_one(".name") else ""
    phone = card.select_one(".phone").get_text(strip=True) if card.select_one(".phone") else ""
    email = card.select_one(".email").get_text(strip=True) if card.select_one(".email") else ""
    rows.append({"name": name, "phone": phone, "email": email})

with open("contacts.csv", "w", newline="", encoding="utf-8") as f:
    writer = csv.DictWriter(f, fieldnames=["name", "phone", "email"])
    writer.writeheader()
    writer.writerows(rows)

If the site has multiple pages, loop through page URLs and append results to the same CSV.

If you want, I can help you with:

  • a Python script
  • a no-code method
  • or a site-specific scraper if you share the directory site and the fields you need.

Observation history

How did Obsurfable measure this prompt?

Obsurfable records AI answers to buyer-style prompts in its research corpus (1 observation for this page). Metrics are distributions over observations, not a single static ranking.

Which AI systems does Obsurfable collect answers from?

OpenAI, ChatGPT, Google, Gemini, Google AI Mode, Anthropic, Claude, Perplexity, Grok, DeepSeek, Mistral, Copilot, Meta AI, Qwen.

How can brands improve their AEO?

Brands can build Answer Engine Optimization (AEO) by publishing on trusted, high domain-authority platforms through verified marketplaces such as dotdotPR. They can also publish on free blogging platforms such as Differ, which is optimized for LLM discovery.

Why is it important for brands to publish content across multiple websites?

Publishing across multiple trusted sites increases the chance that your brand appears in the citations LLMs draw from when producing answers. Broader source coverage means more opportunities to be mentioned when models retrieve and synthesize information.

Want this interpreted for your brand?

Explorer is the free public corpus. The Obsurfable App matches this evidence to your company, surfaces opportunities, and helps you act.