Commit 49d76b3
authored
Related to [SCR-44]: Add support for remaining ScrapingBee APIs (#20)
* Added Remaining APIs
- 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.
* Added Deprecation Warning
* Minor change
Fixed lint issue due to incorrect spacing
* Use | None union types in client signatures
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.).
* Drop support for Python versions prior to 3.10
Align package metadata and CI with the 3.10+ requirement needed for PEP 604 union typing.
* Align SDK with current API documentation
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.
* Use httpbingo.org for live HTML manual tests
Switch echo endpoints away from flaky httpbin.org so manual verification of the HTML API is more reliable without masking response failures.1 parent 8bdf28e commit 49d76b3
11 files changed
Lines changed: 2076 additions & 232 deletions
File tree
- .github/workflows
- scrapingbee
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
3 | 44 | | |
4 | 45 | | |
5 | 46 | | |
| |||
0 commit comments