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.1.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.1.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: livescraper-1.1.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.1.0.tar.gz
Algorithm Hash digest
SHA256 bfe46f19c7df4f1f7ade187629a033657f419b6c183d13206f31f0f1f3e8d1e8
MD5 ef00fa83c0c15751f1e61a8d874a741c
BLAKE2b-256 ad539467db28244796f8518912778ba626b8933c8b7adf453e4030ba0226877c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: livescraper-1.1.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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 92fd285a794da9def081a4a2fefef3acd0990374464329a7bfa5f38190d70acb
MD5 6dc1836eaa571952650d1f2635ef5fc1
BLAKE2b-256 4276c6fd603cc45efd522695277940e937596429803d2227ed2aff321a2200f5

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