VOOZH about

URL: https://apify.com/moving_beacon-owner1/my-actor-20

โ‡ฑ Google My Business Scraper ยท Apify


Pricing

from $10.00 / 1,000 results

Go to Apify Store

This Python script automates data scraping from Google My Business. It collects essential information like business name, website, phone number, address, ratings, and photos, saving the data in Excel format and uploading it to an Apify dataset.

Pricing

from $10.00 / 1,000 results

Rating

4.0

(1)

Developer

๐Ÿ‘ Jamshaid Arif

Jamshaid Arif

Maintained by Community

Actor stats

2

Bookmarked

86

Total users

12

Monthly active users

23 days ago

Last modified

Share

Python BeautifulSoup template

A template for web scraping data from websites enqueued from starting URL using Python. The URL of the web page is passed in via input, which is defined by the input schema. The template uses the HTTPX to get the HTML of the page and the Beautiful Soup to parse the data from it. Enqueued URLs are available in request queue. The data are then stored in a dataset where you can easily access them.

Included features

  • Apify SDK for Python - a toolkit for building Apify Actors and scrapers in Python
  • Input schema - define and easily validate a schema for your Actor's input
  • Request queue - queues into which you can put the URLs you want to scrape
  • Dataset - store structured data where each object stored has the same attributes
  • HTTPX - library for making asynchronous HTTP requests in Python
  • Beautiful Soup - a Python library for pulling data out of HTML and XML files

How it works

This code is a Python script that uses HTTPX and Beautiful Soup to scrape web pages and extract data from them. Here's a brief overview of how it works:

  • The script reads the input data from the Actor instance, which is expected to contain a start_urls key with a list of URLs to scrape and a max_depth key with the maximum depth of nested links to follow.
  • The script enqueues the starting URLs in the default request queue and sets their depth to 0.
  • The script processes the requests in the queue one by one, fetching the URL using HTTPX and parsing it using BeautifulSoup.
  • If the depth of the current request is less than the maximum depth, the script looks for nested links in the page and enqueues their targets in the request queue with an incremented depth.
  • The script extracts the desired data from the page (in this case, all the links) and pushes it to the default dataset using the push_data method of the Actor instance.
  • The script catches any exceptions that occur during the scraping process and logs an error message using the Actor.log.exception method.
  • This code demonstrates how to use Python and the Apify SDK to scrape web pages and extract specific data from them.

Resources

Getting started

For complete information see this article. In short, you will:

  1. Build the Actor
  2. Run the Actor

Pull the Actor for local development

If you would like to develop locally, you can pull the existing Actor from Apify console using Apify CLI:

  1. Install apify-cli

    Using Homebrew

    $brew install apify-cli

    Using NPM

    $npm-ginstall apify-cli
  2. Pull the Actor by its unique <ActorId>, which is one of the following:

    • unique name of the Actor to pull (e.g. "apify/hello-world")
    • or ID of the Actor to pull (e.g. "E2jjCZBezvAZnX8Rb")

    You can find both by clicking on the Actor title at the top of the page, which will open a modal containing both Actor unique name and Actor ID.

    This command will copy the Actor into the current directory on your local machine.

    $apify pull <ActorId>

Documentation reference

To learn more about Apify and Actors, take a look at the following resources:

You might also like

Google Maps Search Scraper

powerai/google-map-search-scraper

Scrape Google Maps search results with automatic pagination and location-based search support

Google My Business Scraper Tool

moving_beacon-owner1/google-my-business-scraper-tool

This Python script automates data scraping from Google My Business. It collects essential information like business name, website, phone number, address, ratings, and photos, saving the data in Excel format and uploading it to an Apify dataset.

383

5.0

Free Google Maps Scraper - Simplified Version

blueorion/free-google-maps-scraper-simplified

Simplified version of "Free Google Maps Scraper - Low-cost & Extensive". FASTER & CHEAPER.

390

3.3

Resy Booker - MCP Server for AI Restaurant Reservations

clearpath/resy-booker

MCP server for AI assistants to search, book, and manage Resy restaurant reservations. 6 tools: search restaurants, check availability, book slots, view and cancel reservations. Stateful auth, pay-per-action billing, Standby mode.

Google Map Business Scraper

logical_scrapers/google-map-business-scraper

Scrapes business information from Google Maps including name, address, phone, website, ratings, opening Hours and more.

493

4.9

Resy Scraper - Restaurants & Real-Time Availability

clearpath/resy-api

Extract restaurant data and real-time reservation availability from Resy. Enter a city or paste URLs. Get ratings, cuisine, contact info, images, descriptions, waitlist status, and bookable time slots across 1,900+ cities. Export as JSON, CSV, or Excel.

OpenTable Booker: AI Restaurant Reservations (MCP Server)

clearpath/opentable-booker

MCP server for AI agents to search, book, and manage OpenTable restaurant reservations. 7 tools: search restaurants with availability, check time slots, book tables, view and cancel reservations. Works with Claude, ChatGPT, OpenClaw. Pay-per-action billing. No login needed for search.

Opentable (Extended)

canadesk/opentable-extended

Get Search results, Restaurants and Reservation availability from OpenTable. It's fast and costs little.

๐Ÿ‘ User avatar

Canadesk Support

22