Business For Sale Scraper avatar
Business For Sale Scraper

Pricing

Pay per usage

Go to Apify Store
Business For Sale Scraper

Business For Sale Scraper

Developed by

Fabricio Acosta

Fabricio Acosta

Maintained by Community

Data extraction tool to extract data from businesses for sale: business title, description, category, pricing, location, listing URL and images.

0.0 (0)

Pricing

Pay per usage

1

5

1

Last modified

6 days ago

🏢 Business For Sale Scraper

Automated scraper that extracts data from business listings on BusinessesForSale.com using Playwright to obtain sorted data.

📋 Features

  • PlaywrightCrawler for browser-based automation.
  • Automatic pagination.
  • Parallel processing: Extract 5 business pages simultaneously.
  • Resource blocking: block CSS, images, and scripts for faster performance.
  • Error handling with try-catch blocks.
  • Configurable item limits via Apify input.
  • User agent randomization to avoid detection.

🔍 Data extracted by business

  • Listing URL.
  • Title.
  • Category/Industry.
  • Selling Price and Currency (numeric + raw).
  • Revenue and Cash Flow.
  • Location (city, state, country, if available).
  • Main Image URL.
  • Short Description.
  • Extracted Timestamp (ISO-8601).

⚙️ Input Parameters

{
"startUrls": ["https://www.businessesforsale.com/search/farms-for-sale"],
"maxItems": 100
}

📤 Output

{
"url": "https://canada.businessesforsale.com/canadian/investment-opportunity-in-bahrain-tissue-factory-for-lease.aspx",
"title": "Investment Opportunity In Bahrain Tissue Factory",
"primaryImageUrl": "https://www.businessesforsale.com/uploadsstatic/a3869055mediumthumbnail.jpg?JozkT5dpghE4r2bOAF1g9A==",
"location": "Manama, Canada",
"description": "Description. FOR SALE – Tissue Paper Factory in Bahrain. Location: Bahrain. Area: 400 sqm. Licensed: Valid industrial & commercial registration. ️ Factory Details: Not operational for 1.5 years... More details »",
"scrapedTimestamp": "2025-10-25T23:35:51.906Z",
"category": "Farms for sale",
"askingPriceRaw": "$127,000 (CAD)",
"askingPriceNum": 127000,
"askingPriceNum2": null,
"currency": "CAD",
"revenue": "$10,000",
"cashFlow": "$12,000"
}

Running Locally

# Install dependencies
npm install
# Install Playwright browsers
npx playwright install
# Run the scraper
npm start
# Or with Apify CLI (simulates Apify environment)
apify run

🔧 Deployment to Apify

# Login to Apify
apify login
# Push Actor to Apify platform
apify push