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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bfe46f19c7df4f1f7ade187629a033657f419b6c183d13206f31f0f1f3e8d1e8
|
|
| MD5 |
ef00fa83c0c15751f1e61a8d874a741c
|
|
| BLAKE2b-256 |
ad539467db28244796f8518912778ba626b8933c8b7adf453e4030ba0226877c
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
92fd285a794da9def081a4a2fefef3acd0990374464329a7bfa5f38190d70acb
|
|
| MD5 |
6dc1836eaa571952650d1f2635ef5fc1
|
|
| BLAKE2b-256 |
4276c6fd603cc45efd522695277940e937596429803d2227ed2aff321a2200f5
|