@crawlora-org/sdk 1.22.0-sdk.1 → 1.27.0-sdk.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/docs/recipes.md CHANGED
@@ -36,9 +36,26 @@ Newer platforms are grouped like every other endpoint:
36
36
 
37
37
  ```ts
38
38
  const posts = await crawlora.reddit.search({ q: "typescript", subreddit: "programming" });
39
+ const postWithMetrics = await crawlora.reddit.post({ id: "1v8hy3q", include_metrics: true });
40
+ const commentsWithMetrics = await crawlora.reddit.comments({ id: "1v8hy3q", include_metrics: true, limit: 25 });
39
41
  const brand = await crawlora.brand.retrieve({ domain: "stripe.com" });
40
42
  ```
41
43
 
44
+ Omit `include_metrics` for the 1-credit feed mode. Set it to `true` for the
45
+ 3-credit anonymous HTML mode with public post and comment engagement metrics.
46
+
47
+ ## Company Job Searches
48
+
49
+ Search public job listings directly from employer career sites:
50
+
51
+ ```ts
52
+ const amazon = await crawlora.amazonJobs.search({ q: "software engineer", country: "US" });
53
+ const apple = await crawlora.appleJobs.search({ q: "machine learning", location: "United States" });
54
+ const google = await crawlora.googleJobs.search({ q: "data scientist", location: "Singapore" });
55
+ const meta = await crawlora.metaJobs.search({ q: "product manager", is_remote_only: true });
56
+ const tesla = await crawlora.teslaJobs.list({ query: "manufacturing", location: "Texas" });
57
+ ```
58
+
42
59
  ## Threads Public Lookups
43
60
 
44
61
  ```ts
@@ -49,6 +66,16 @@ const posts = await crawlora.threads.profilePosts({ username: "zuck" });
49
66
  const replies = await crawlora.threads.postReplies({ username: "zuck", code: "DakyAavlKLZ" });
50
67
  ```
51
68
 
69
+ ## Box Office Mojo Dataset
70
+
71
+ Search theatrical box-office records, fetch one title, and facet the same filter set.
72
+
73
+ ```ts
74
+ const titles = await crawlora.datasets.boxofficemojoSearch({ q: "avatar", sort: "worldwide_desc" });
75
+ const avatar = await crawlora.datasets.boxofficemojoItem({ title_id: "tt0499549" });
76
+ const years = await crawlora.datasets.boxofficemojoFacets({ facet: "years_active", gross_band: "over_1b" });
77
+ ```
78
+
52
79
  ## Software, Reviews, And Market Datasets
53
80
 
54
81
  Build a Chrome extension competitive-intelligence view without downloading the