scrapebadger 0.72.0 → 0.73.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/index.cjs +15 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -2
- package/dist/index.d.ts +11 -2
- package/dist/index.mjs +15 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -111,6 +111,7 @@ Etsy and AliExpress category navigation is separate from search: their search me
|
|
|
111
111
|
| **eBay** | 12 endpoints across 18 markets — search, search by image, completed/sold listings, item detail, item reviews, seller profile/items/feedback, category browse, categories, autocomplete, markets | [eBay Guide](docs/ebay.md) |
|
|
112
112
|
| **Walmart** | 11 endpoints (walmart.com, US-only) — search, category browse, deals feed, autocomplete, product detail, reviews, seller profile/products, store detail with nearby stores, markets |
|
|
113
113
|
| **Gumtree** | 9 endpoints across gumtree.com, gumtree.com.au and gumtree.co.za (`market: "uk"` default, `"au"`, `"za"`) — search (category, location/postcode radius, price, seller type, urgent/photos, category-specific filters), search filters with live counts, listing detail (full vehicle spec, seller rating/verification, masked phone), seller listings, keyword and location autocomplete, location and category trees, markets. E.g. `client.gumtree.search({ market: "au", category: "18320", location: "3003435", distance: 10 })` or `client.gumtree.search({ market: "za", category: "p6dnh", location: "dkp8y" })` (za ids are refs) | [Gumtree Docs](https://docs.scrapebadger.com/gumtree/overview) |
|
|
114
|
+
| **AutoScout24** | 4 endpoints — search, listing detail (URL or UUID), filters, markets | [AutoScout24 Docs](https://docs.scrapebadger.com/autoscout24/overview) |
|
|
114
115
|
| **Bing** | 6 endpoints — web search (with ads + related searches), image search, video search, news vertical, autocomplete, markets |
|
|
115
116
|
| **DuckDuckGo** | 7 endpoints — web search (with instant-answer abstract), image search, news vertical, video search, autocomplete, instant answers, regions |
|
|
116
117
|
| **Yahoo** | 6 endpoints across 35 markets — web search (with ads + related searches), image search, video search, news vertical, autocomplete, markets | [Yahoo Docs](https://docs.scrapebadger.com/yahoo/overview) |
|
package/dist/index.cjs
CHANGED
|
@@ -9,7 +9,7 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
|
9
9
|
var WebSocket__default = /*#__PURE__*/_interopDefault(WebSocket);
|
|
10
10
|
|
|
11
11
|
// src/internal/version.ts
|
|
12
|
-
var SDK_VERSION = "0.
|
|
12
|
+
var SDK_VERSION = "0.73.0";
|
|
13
13
|
|
|
14
14
|
// src/internal/exceptions.ts
|
|
15
15
|
var ScrapeBadgerError = class _ScrapeBadgerError extends Error {
|
|
@@ -10689,6 +10689,15 @@ var GithubClient = class {
|
|
|
10689
10689
|
constructor(client) {
|
|
10690
10690
|
this.client = client;
|
|
10691
10691
|
}
|
|
10692
|
+
/** Get public default-branch repository detail without query options. */
|
|
10693
|
+
async getRepository(owner, repo) {
|
|
10694
|
+
if ([owner, repo].some((value) => value === "." || value === "..")) {
|
|
10695
|
+
throw new TypeError("owner and repo must not be dot path segments");
|
|
10696
|
+
}
|
|
10697
|
+
return this.client.request(
|
|
10698
|
+
`/v1/github/repositories/${encodeURIComponent(owner)}/${encodeURIComponent(repo)}`
|
|
10699
|
+
);
|
|
10700
|
+
}
|
|
10692
10701
|
/** Get profile. Generated from the OpenAPI spec; returns the raw response object. */
|
|
10693
10702
|
async getProfile(username, params = {}) {
|
|
10694
10703
|
return this.client.request(`/v1/github/profiles/${username}`, { params });
|
|
@@ -10698,6 +10707,11 @@ var GithubClient = class {
|
|
|
10698
10707
|
// src/client.ts
|
|
10699
10708
|
var ScrapeBadger = class {
|
|
10700
10709
|
baseClient;
|
|
10710
|
+
/** Live endpoint discovery. Hidden endpoints are omitted; statuses update without an SDK release. */
|
|
10711
|
+
async endpoints() {
|
|
10712
|
+
const result = await this.baseClient.request("/api/public/endpoint-catalog");
|
|
10713
|
+
return result.endpoints;
|
|
10714
|
+
}
|
|
10701
10715
|
/** Twitter API client */
|
|
10702
10716
|
twitter;
|
|
10703
10717
|
/** Web scraping API client */
|