Related to [SCR-44]: Add support for remaining ScrapingBee APIs#20
Open
sahilsunny wants to merge 8 commits into
Open
Related to [SCR-44]: Add support for remaining ScrapingBee APIs#20sahilsunny wants to merge 8 commits into
sahilsunny wants to merge 8 commits into
Conversation
- Changed the request method such that it can work with all of our APIs - Added all APIs. Now it supports HTML API, Google Search API, Amazon Search API, Amazon Product API, Walmart Search API, Walmart Product API, ChatGPT API, YouTube Search API, YouTube Metadata API, YouTube Trainability API, YouTube Transcript API - Added a method to call our usage endpoint - Create a new method for accessing our HTML API. So that in future, we can deprecate the get and post methods.
Fixed lint issue due to incorrect spacing
kirby81
requested changes
Feb 10, 2026
kirby81
left a comment
Contributor
There was a problem hiding this comment.
Please try to use the correct typing, especially for optional parameters. Also, I think we should now drop support for Python versions prior to 3.10, based on this: https://devguide.python.org/versions/#versions and adapt the test workflow matrix.
Update ScrapingBeeClient method signatures in scrapingbee/client.py to use PEP 604 union types (e.g. `dict | None` and `int | None`) instead of bare `dict = None` / `int = None`. This clarifies optional parameter typing for modern type checkers and requires Python 3.10+; changes touch request, get, post, html_api and several API helper methods (Google, Amazon, Walmart, YouTube, ChatGPT, usage, etc.).
Align package metadata and CI with the 3.10+ requirement needed for PEP 604 union typing.
Add the latest documented endpoints, remove obsolete YouTube APIs, and update supported Python tooling and documentation so the SDK matches the current public API surface.
Resolve the CI workflow conflict by adopting the split test/publish workflows from main and keeping the Python 3.10–3.14 test matrix.
Switch echo endpoints away from flaky httpbin.org so manual verification of the HTML API is more reliable without masking response failures.
kirby81
approved these changes
Jul 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
html_api()method for HTML API requests and deprecate legacyget()/post()methods for removal in version 3.0.0.Compatibility
dict | Noneandint | None.typing_extensions.deprecatedfor legacy method warnings.Test plan
Notes