Skip to main content

Python bindings for the Livescraper API

Project description

Livescraper Python Library

The library provides convenient access to the Livescraper API from applications written in the Python language. It allows using Livescraper’s services from your code.

API Docs

Find the full documentation here: API Documentation

Installation

Python 3+ is required.

To install the package, use the following command:

pip install livescraper

For more details, visit: Livescraper on PyPI

Initialization

To initialize the scraper with your API key:

from livescraper import ApiClient

scraper = livescraper(api_key)

Create your API key here: Create API Key

Scrape Google Maps (Places)

To search for businesses in specific locations:

results = scraper.google_maps_search(
     queries=["Restaurants in Alakanuk, AK, United States"],
     language="en",
     region="DE",
     dropduplicates="True",
     enrichment="True",
     fields=["business_website", "business_phone"]
)

Scrape Google Maps Reviews

To get reviews of a specific place:

results = scraper.google_review_search(
     queries=["real estate agents in Los Angeles, CA"],
     language="en",
     region="DE",
     dropduplicates="True",
     enrichment="True",
     fields=["query", "business_name"]
)

Scrape Emails and Contacts

To get emails and contacts from a URL:

results = scraper.google_email_search(
     queries=["https://en.wikipedia.org/wiki/SA"],
     language="en",
     region="DE",
     dropduplicates="True",
     enrichment="False",
     fields=["serial"]
)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

livescraper-1.2.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

livescraper-1.2.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file livescraper-1.2.0.tar.gz.

File metadata

  • Download URL: livescraper-1.2.0.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.6

File hashes

Hashes for livescraper-1.2.0.tar.gz
Algorithm Hash digest
SHA256 a05432ee706fd512ad7f1538da3e27d68e2bd05c35ba91f820a7435459270bef
MD5 ed65e9de3cf36a46ec7497cbe5fa3a79
BLAKE2b-256 e7923b24700c84de637a32d450f49c9ed4395b23f921d0a7beaa9c03a74dcc09

See more details on using hashes here.

File details

Details for the file livescraper-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: livescraper-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.6

File hashes

Hashes for livescraper-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4a66258959ec36b92c3305cb82b0153f7ec87d8be3205e8ce7c678020f5e3374
MD5 f38f31b59112dfd53e3e3b0a17535e57
BLAKE2b-256 d1d16ec41eaabca90d4a993b687750393186d5c1fdf27fe69124c9f56d1eeaa5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page