How to View Your Scraped Data in the UI

Quick Start

You have 79 tire suppliers scraped from San Francisco! Here's how to view them:

Option 1: View Raw JSON Data

Open the file directly in VS Code:

c:\Projects\robo-hub\scraper\output\San_Francisco_1764283840697.json

Option 2: Integrate into the React App

I've created a ScrapedDataViewer component for you. To use it:

Step 1: Copy the JSON data to the public folder

# From the robo-hub directory
mkdir -p public/data
cp scraper/output/San_Francisco_1764283840697.json public/data/scraped-suppliers.json

Step 2: Add the viewer to App.tsx

Add this import at the top of App.tsx:

import ScrapedDataViewer from './components/ScrapedDataViewer';

Add a state variable:

Add a button in the header or somewhere visible:

Add the modal at the bottom of the return statement:

Step 3: Load the data in ScrapedDataViewer

Update the useEffect in ScrapedDataViewer.tsx:

Option 3: Quick Demo Script

Create a simple HTML file to view the data:

Save this as view-suppliers.html in the root directory and open it in a browser.

Data Summary

  • Total Suppliers: 79

  • Category: Tires/Tyres

  • City: San Francisco

  • Average Rating: 4.9/5.0

  • With Websites: ~20 (25%)

  • Ready for Outreach: ~5 (6%)

What's in the Data

Each supplier includes:

  • Business name and address

  • Phone, email, website (when available)

  • Google rating and review count

  • Operating hours

  • Services offered

  • Capabilities (mobile service, fleet discounts, etc.)

  • Confidence score

  • Ready for outreach flag

Last updated

Was this helpful?