Skip to content

docs(python): refresh for scrapegraph-py >= 2.1.0#50

Merged
VinciGit00 merged 2 commits intomainfrom
docs/python-v2.1.0
Apr 21, 2026
Merged

docs(python): refresh for scrapegraph-py >= 2.1.0#50
VinciGit00 merged 2 commits intomainfrom
docs/python-v2.1.0

Conversation

@VinciGit00
Copy link
Copy Markdown
Member

Summary

  • Update sdks/python.mdx and install.md to match scrapegraph-py 2.1.0, which dropped the typed request wrappers (ScrapeRequest, ExtractRequest, SearchRequest, CrawlRequest, MonitorCreateRequest, MonitorUpdateRequest, MonitorActivityRequest, HistoryFilter) in favor of direct positional/keyword arguments.
  • Bump the pinned version to >= 2.1.0 and note the Python >= 3.12 runtime requirement.
  • Rewrite examples to mirror the v2.1.0 examples in https://github.com/ScrapeGraphAI/scrapegraph-py (e.g. sgai.scrape("https://example.com", formats=[...]), sgai.extract("prompt", url=...), sgai.monitor.create(url, cron, name=...)).
  • Add tests/python-v2.1.0/ β€” six scripts (one per endpoint) that exercise scrape, extract, search, credits+health, crawl, monitor five times each against the live v2 API. Captured output in results.txt shows 30/30 calls returned status=success on scrapegraph-py 2.1.0. The scripts read SGAI_API_KEY from the environment β€” no secrets committed.

Commits

  • docs(python): refresh for scrapegraph-py >= 2.1.0 β€” the doc updates.
  • tests(python): add v2.1.0 endpoint verification scripts and results β€” the parallel commit with the verification artifacts.

Test plan

  • scrape Γ— 5 URLs β€” all success
  • extract Γ— 5 prompts β€” all success, json_data populated
  • search Γ— 5 queries (num_results=3) β€” all success
  • credits + health Γ— 5 β€” all success
  • crawl.start β†’ poll β†’ crawl.delete Γ— 5 URLs β€” all reached status=completed
  • monitor.create β†’ monitor.delete Γ— 5 β€” all success

πŸ€– Generated with Claude Code

VinciGit00 and others added 2 commits April 21, 2026 15:10
v2.1.0 dropped the typed request wrappers (ScrapeRequest, ExtractRequest,
SearchRequest, CrawlRequest, MonitorCreateRequest, MonitorUpdateRequest,
MonitorActivityRequest, HistoryFilter) in favor of direct positional /
keyword arguments on each method. Update the Python SDK doc and the
install guide to match, bump the pinned version to >= 2.1.0, and note the
Python >= 3.12 requirement.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Six scripts under tests/python-v2.1.0/ that each call one SDK endpoint
(scrape, extract, search, credits+health, crawl, monitor) five times
against the live v2 API. Reads SGAI_API_KEY from env. Captured output
in results.txt β€” 30/30 calls returned status=success against
scrapegraph-py 2.1.0.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@VinciGit00 VinciGit00 merged commit cd6d859 into main Apr 21, 2026
1 check passed
@VinciGit00 VinciGit00 deleted the docs/python-v2.1.0 branch April 22, 2026 07:16
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.

1 participant