outscraper/google-maps-scraper-php 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

outscraper/google-maps-scraper-php

最新稳定版本:v4.2.2

Composer 安装命令:

composer require outscraper/google-maps-scraper-php

包简介

PHP bindings for the Outscraper API

README 文档

README

The library provides convenient access to the Outscraper API from applications written in the PHP language. Allows using Outscraper's services from your code.

API Docs

screencast

Installation

Composer

You can install the bindings via Composer. Run the following command:

composer require outscraper/outscraper

To use the bindings, use Composer's autoload:

require_once('vendor/autoload.php');

Manual Installation

If you do not wish to use Composer, you can download the latest release. Then, to use the bindings, include the init.php file.

require_once('/path/to/outscraper-php/init.php');

Link to the PHP package page

Initialization

$client = new OutscraperClient("SECRET_API_KEY");

Link to the profile page to create the API key

Google Maps Scraper

Scrape Google Mpas results bu query "asian restaurants Berlin, Germany".

$results = $client->google_maps_search(['asian restaurants Berlin, Germany'], 'en', 'DE');

print_r($results);

Google Maps Reviews Scraper

Scrape Google Mpas reviews from Statue of Liberty National Monument.

$results = $client->google_maps_reviews([
    'https://www.google.com/maps/place/Statue+of+Liberty+National+Monument/@40.6892494,-74.0466891,17z/data=!3m1!4b1!4m5!3m4!1s0x89c25090129c363d:0x40c6a5770d25022b!8m2!3d40.6892494!4d-74.0445004'
], limit: 10, sort: 'newest');
// you can use direct links, IDs, or names as input for query

print_r($results);

Scrape Emails & Contacts from domains.

$results = $client->emails_and_contacts([
    'outscraper.com'
]);

print_r($results);

More examples

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/outscraper/outscraper-php.

统计信息

  • 总下载量: 4.75k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 18
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 18
  • Watchers: 0
  • Forks: 7
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-03-08