scrapebadger 0.76.0 → 0.76.1
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 +15 -0
- package/dist/index.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.mjs +4 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -263,3 +263,18 @@ MIT License - see [LICENSE](LICENSE) for details.
|
|
|
263
263
|
- [Discord](https://discord.com/invite/3WvwTyWVCx)
|
|
264
264
|
- [GitHub](https://github.com/scrape-badger/scrapebadger-node)
|
|
265
265
|
- [npm](https://www.npmjs.com/package/scrapebadger)
|
|
266
|
+
|
|
267
|
+
### Verified public Facebook Marketplace
|
|
268
|
+
|
|
269
|
+
```typescript
|
|
270
|
+
const page = await client.facebook.searchMarketplace({
|
|
271
|
+
query: "bicycle", location: "london", radius: 20, days_since_listed: 2,
|
|
272
|
+
sort_by: "creation_time_descend", strict_filters: true, include_details: true,
|
|
273
|
+
});
|
|
274
|
+
```
|
|
275
|
+
|
|
276
|
+
No Facebook account is needed. Verified radius is in kilometres using approximate
|
|
277
|
+
listing coordinates. Follow `end_cursor` with the same filters, even after an empty
|
|
278
|
+
filtered page. Continuations explore price ranges (eight pages maximum, one-hour
|
|
279
|
+
expiry). Coverage and discovery freshness are partial; sort all collected pages by
|
|
280
|
+
`creation_time_utc` and persist IDs for daily deduplication.
|
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.76.
|
|
12
|
+
var SDK_VERSION = "0.76.1";
|
|
13
13
|
|
|
14
14
|
// src/internal/exceptions.ts
|
|
15
15
|
var ScrapeBadgerError = class _ScrapeBadgerError extends Error {
|
|
@@ -6579,7 +6579,9 @@ var FacebookClient = class {
|
|
|
6579
6579
|
async resolveATownPostcodeToAMarketplaceLocation(params = {}) {
|
|
6580
6580
|
return this.client.request("/v1/facebook/marketplace/locations/resolve", { params });
|
|
6581
6581
|
}
|
|
6582
|
-
/** Search Marketplace.
|
|
6582
|
+
/** Search public Marketplace. Use strict_filters: true to enforce radius (km) and age,
|
|
6583
|
+
* include_details: true for descriptions/photos. Continuations cover price ranges;
|
|
6584
|
+
* search_info reports partial coverage. Sort all collected pages for newest first. */
|
|
6583
6585
|
async searchMarketplace(params = {}) {
|
|
6584
6586
|
return this.client.request("/v1/facebook/marketplace/search", { params });
|
|
6585
6587
|
}
|