diff --git a/CHANGELOG.md b/CHANGELOG.md index 8e996bf..f999274 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,21 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.5.0] - 2026-03-17 + +### Added + +- `crawlers attrs` command — show result attributes grouped by function with colored output +- `--limit` and `--page` pagination for `accounts ls` +- `--limit` alias for `--page-size` in `results get` +- Animated terminal demo GIF in README +- GitHub Actions CI (test + publish workflows) +- FAQ, CLI vs SDK comparison, and extra badges in README + +### Changed + +- `crawlers search` now shows same columns as `crawlers ls` (slug, max concurrency, etc.) + ## [0.4.0] - 2026-03-13 ### Changed diff --git a/pyproject.toml b/pyproject.toml index 4a05ad7..aa03103 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "lobstrio" -version = "0.4.0" +version = "0.5.0" description = "CLI for the Lobstr.io scraping API" readme = "README.md" license = "Apache-2.0" @@ -29,7 +29,7 @@ classifiers = [ "Typing :: Typed", ] dependencies = [ - "lobstrio-sdk>=0.2.0", + "lobstrio-sdk>=0.2.1", "typer[all]>=0.9.0", "rich>=13.0.0", "tomli>=2.0.0;python_version<'3.11'", diff --git a/src/lobstr_cli/commands/accounts.py b/src/lobstr_cli/commands/accounts.py index d5dbb67..38935dc 100644 --- a/src/lobstr_cli/commands/accounts.py +++ b/src/lobstr_cli/commands/accounts.py @@ -13,11 +13,14 @@ @accounts_app.command("ls") -def list_accounts(): +def list_accounts( + limit: int = typer.Option(50, "--limit"), + page: int = typer.Option(1, "--page"), +): """List your accounts.""" from lobstr_cli.cli import get_client, _state client = get_client() - items = client.accounts.list() + items = client.accounts.list(limit=limit, page=page) if _state.get("json"): print_json([asdict(a) for a in items]) return diff --git a/src/lobstr_cli/commands/results.py b/src/lobstr_cli/commands/results.py index 02f4eeb..b188098 100644 --- a/src/lobstr_cli/commands/results.py +++ b/src/lobstr_cli/commands/results.py @@ -16,7 +16,7 @@ def get_results( format: str = typer.Option("json", "--format", help="Output format: json or csv"), output: Optional[str] = typer.Option(None, "--output", "-o", help="Save to file"), page: int = typer.Option(1, "--page"), - page_size: int = typer.Option(50, "--page-size"), + page_size: int = typer.Option(50, "--page-size", "--limit"), ): """Fetch results for a squid.""" from lobstr_cli.cli import get_client, _state