Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## [0.82.1] - 2026-11-25

### Changed
- **Google Maps docstrings (SCR-711).** `google.maps.place()` and `google.maps.photos()` now describe what the API returns. Place details carry opening hours (`open_state`, `hours`, `operating_hours`), `price_level` (Google's price per person), and `thumbnail`/`image`; `service_options` is None. Photos are one page, usually the first 8 that Google exposes, and `pagination.total_results` is the place's total photo count on Google. `category_id`, `next_page_token` and `page_size` are kept for compatibility but have no effect: the API never supported them. No signature changes.

## [0.82.0] - 2026-11-23

### Added
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "scrapebadger"
version = "0.82.0"
version = "0.82.1"
description = "Official Python SDK for ScrapeBadger - Async web scraping APIs for Twitter and more"
readme = "README.md"
license = { text = "MIT" }
Expand Down
2 changes: 1 addition & 1 deletion src/scrapebadger/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1356,7 +1356,7 @@ async def main():
ZestimateHistoryPoint as ZillowZestimateHistoryPoint,
)

__version__ = "0.82.0"
__version__ = "0.82.1"

__all__ = [
# TikTok core models
Expand Down
2 changes: 1 addition & 1 deletion src/scrapebadger/_internal/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
T = TypeVar("T")

# User agent for SDK requests
SDK_VERSION = "0.82.0"
SDK_VERSION = "0.82.1"
USER_AGENT = f"scrapebadger-python/{SDK_VERSION}"


Expand Down
30 changes: 16 additions & 14 deletions src/scrapebadger/google/maps.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,13 @@ async def place(
"""Get full place detail by ``place_id`` or ``data_id``.

Returns title, address, phone, website, GPS, rating, reviews_count,
rating_summary (per-star distribution), categories, extensions
(service_options, accessibility, offerings, payments, etc.),
weekly operating hours, popular_times graph (per-weekday busyness),
provider_id, permanently_closed flag, thumbnail, and photo list.
categories, extensions (amenity groups such as accessibility),
opening hours (``open_state``, today's ``hours``, and
``operating_hours`` for the coming seven days), ``price_level``
(Google's price per person, e.g. "฿2,000+"), popular_times,
provider_id, ``thumbnail``/``image``, and up to 20 photo URLs.
``service_options`` is None: Google no longer exposes those flags
to signed-out clients.

At least one of ``place_id`` or ``data_id`` must be provided.
"""
Expand Down Expand Up @@ -175,21 +178,20 @@ async def photos(
) -> dict[str, Any]:
"""Get photos for a place.

Returns place-specific photo categories (Menu, Vibe, Comfort food,
individual dish names, etc.), photo URLs from all CDN families
(``/p/AF1Qip*``, ``/gps-cs-s/*``, ``/gps-proxy/*``), the total
photo count, and a pagination token.
Returns the photos Google exposes to signed-out clients (usually
the first 8 of the gallery) as ``thumbnail`` and ``image`` URLs.
``pagination.total_results`` is the place's total photo count on
Google. There is one page (``pagination.next`` is None). To get
another size, replace a URL's ``=w..-h..-k-no`` suffix and keep
its path.

Args:
data_id: Google Maps data ID (``0x...:0x...``).
hl: Language code.
gl: Country code.
category_id: Filter by category ID from
``response.categories[].id`` (e.g. Menu, Vibe).
next_page_token: Pagination token from previous
``response.pagination.next``.
page_size: Photos per page (1-200). Use 200 to fetch all
photos in a single call for places with <~120 photos.
category_id: Accepted for compatibility; has no effect.
next_page_token: Accepted for compatibility; has no effect.
page_size: Accepted for compatibility; has no effect.
"""
params: dict[str, Any] = {"data_id": data_id, "hl": hl, "gl": gl, "page_size": page_size}
if category_id:
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading