Skip to content

docs: address review findings on README and benchmark scripts#74

Merged
Liohtml merged 1 commit into
masterfrom
claude/upstream-scrapling-changes-1sub94
Jul 11, 2026
Merged

docs: address review findings on README and benchmark scripts#74
Liohtml merged 1 commit into
masterfrom
claude/upstream-scrapling-changes-1sub94

Conversation

@Liohtml

@Liohtml Liohtml commented Jul 11, 2026

Copy link
Copy Markdown
Owner

Summary

Follow-up to #73 (merged before the review fixes landed). Addresses all actionable findings from CodeRabbit's review on #73 plus an independent accuracy review:

  • Fixture path bug (CodeRabbit, critical): gen_page.py wrote page.html to the caller's cwd while both benchmarks look for it in scripts/benchmark/ — running the documented commands failed. Both scripts now resolve the fixture relative to their own location; all documented commands run from the repo root and were re-verified end-to-end.
  • Two README snippets that would not compile as shown (E0716 — .first() borrowing the temporary returned by .css()) in the DOM Navigation and Regex Extraction sections.
  • scrape_tool example contract: attrs is now a real JSON object instead of a double-encoded string, matching the doc comment and tool schema shown to the model.
  • Smaller accuracy fixes: complete quick-start manifest (serde_json, async-trait), a footnote stating how the peak-RSS numbers were measured, unambiguous benchmark commands, "static binary" → "native binary", "zero hidden allocations" → "cheap tree sharing", and a runnable async main around the SitemapSpider quick start.

🤖 Generated with Claude Code

https://claude.ai/code/session_01KDFsMaKk764vogjUW3nqpk


Generated by Claude Code

- gen_page.py and bench_python.py resolve page.html relative to the
  script's own directory, so the documented repo-root commands work
  (previously the fixture landed in the caller's cwd and both
  benchmarks failed to find it).
- Fix two README snippets that would not compile as shown (E0716:
  .first() borrowing the temporary returned by .css()).
- Make the scrape_tool example return attrs as a real JSON object,
  matching its documented tool contract.
- Complete the quick-start manifest (serde_json, async-trait), state
  how the peak-RSS numbers were measured, unambiguous repo-root
  benchmark commands, and soften 'static binary' / 'zero hidden
  allocations' claims to what the build actually produces.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KDFsMaKk764vogjUW3nqpk
@coderabbitai

coderabbitai Bot commented Jul 11, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@Liohtml, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 51 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 08d3a098-b1a5-4310-9298-5ea7cf634f14

📥 Commits

Reviewing files that changed from the base of the PR and between b8d9dca and 2ccb1fe.

📒 Files selected for processing (4)
  • README.md
  • scripts/benchmark/README.md
  • scripts/benchmark/bench_python.py
  • scripts/benchmark/gen_page.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/upstream-scrapling-changes-1sub94

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Liohtml Liohtml merged commit 1cac4e8 into master Jul 11, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants