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
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
# Changelog

## [0.83.1] - 2026-11-26

### Changed
- **Wallapop filters docs.** `wallapop.list_filters()` and `wallapop.list_filter_options()` need `category_id` whenever `subcategory_ids` is set: Wallapop rejects subcategories on its filter endpoints without their category, and the API answers 422 for that. The 0.83.0 example `list_filter_options("brand", subcategory_ids=[9447])` is corrected to `list_filter_options("brand", category_id=24200, subcategory_ids=[9447])`. `search()` still accepts `subcategory_ids` alone. No code or signature changes.

## [0.83.0] - 2026-11-26

### Added
- `wallapop.search(..., subcategory_ids=...)` narrows a search to Wallapop subcategories: the `subcategories` ids of `wallapop.list_categories()`, at any depth (e.g. `24200` Technology & electronics → `24201` Phones → `9447` Smartphones). Pass a list (`[9447, 10310]`) or a comma-separated string (`"9447,10310"`); several ids match any of them. Works with or without `category_id`, and on its own is enough to search (no `query` needed). A `next_page` cursor keeps the subcategories.
- `wallapop.list_filters()` and `wallapop.list_filter_options()` take the same `subcategory_ids`, so filters and option lists match the subcategory (e.g. `list_filter_options("brand", subcategory_ids=[9447])` returns phone brands only).
- `wallapop.list_filters()` and `wallapop.list_filter_options()` take the same `subcategory_ids`, so filters and option lists match the subcategory (e.g. `list_filter_options("brand", category_id=24200, subcategory_ids=[9447])` returns phone brands only; the filters need `category_id`, see 0.83.1).
- New keyword-only arguments with a `None` default, so existing calls are unchanged.

## [0.82.1] - 2026-11-25
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.83.0"
version = "0.83.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.83.0"
__version__ = "0.83.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.83.0"
SDK_VERSION = "0.83.1"
USER_AGENT = f"scrapebadger-python/{SDK_VERSION}"


Expand Down
7 changes: 5 additions & 2 deletions src/scrapebadger/wallapop/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,8 @@ async def list_filters(
Args:
category_id: Category the filters apply to.
subcategory_ids: Subcategory ids the filters apply to (a list or
a comma-separated string).
a comma-separated string). Needs the ``category_id`` they
belong to; without it the API answers 422.
query: Search text the filters apply to.
market: Market code (es, it, pt). Defaults to "es".

Expand Down Expand Up @@ -441,7 +442,9 @@ async def list_filter_options(
query: Search text the options apply to.
market: Market code (es, it, pt). Defaults to "es".
subcategory_ids: Subcategory ids the options apply to (a list or
a comma-separated string), e.g. ``[9447]`` for phone brands.
a comma-separated string). Needs the ``category_id`` they
belong to, e.g. ``category_id=24200, subcategory_ids=[9447]``
for phone brands; without it the API answers 422.

Returns:
The filter's options.
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