Skip to content

This project provides a tool for scraping reviews from Google Maps. It uses SerpAPI to retrieve review data from Google Maps.

License

Notifications You must be signed in to change notification settings

engkimo/google_maps_reviews_scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google Maps Reviews Scraper

このプロジェクトは、Google Maps からレビューをスクレイピングするためのツールです。SerpAPI を使用して Google Maps のレビューデータを取得します。

This project provides a tool for scraping reviews from Google Maps. It uses SerpAPI to retrieve review data from Google Maps.

事前準備 Prerequisites

SerpAPI の API キーが必要です。SerpAPI の公式サイト で取得してください。 poetry がインストールされていることを確認してください。 URL ファイルからレビューを取得する場合は、url.txt というファイルを用意して、その中に URL のリストを含めてください。

You will need an API key from SerpAPI. Obtain it from SerpAPI's official website. Ensure you have poetry installed. Prepare a url.txt file containing the list of URLs if you intend to fetch reviews using a file.

インストール Installation

poetry install

使用方法 Usage

URL ファイルからのレビューの取得 Fetching reviews from a file of URLs:

poetry run python [ファイル名] --file [URL リストを含むファイルのパス] --api_key [SerpAPI の API キー]
poetry run python [filename] --file [path_to_file_containing_URLs] --api_key [Your_SerpAPI_API_key]

クエリからのレビューの取得 Fetching reviews using a query::

poetry run python [ファイル名] --query [検索クエリ] --latitude [緯度] --longitude [経度] --api_key [SerpAPI の API キー]
poetry run python [filename] --query [search_query] --latitude [latitude] --longitude [longitude] --api_key [Your_SerpAPI_API_key]

オプション Options

--cnt : 取得するページネーションの最大数 (デフォルトはすべて)

注意事項 Caution

使用する前に、Google Maps のデータ利用ポリシーを確認してください。 大量のリクエストは、IP のブロックや API キーの制限を引き起こす可能性がありますので、注意してください。

Before usage, please check Google Maps' data usage policies. Excessive requests may lead to IP blocks or restrictions on your API key, so use with caution.

About

This project provides a tool for scraping reviews from Google Maps. It uses SerpAPI to retrieve review data from Google Maps.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages