scrapebadger 0.65.0 → 0.66.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/dist/index.d.cts CHANGED
@@ -2833,6 +2833,8 @@ interface RedditPost {
2833
2833
  selftext: string;
2834
2834
  /** Self post text as HTML */
2835
2835
  selftext_html: string | null;
2836
+ /** Preview excerpt returned by Reddit's web search; distinct from the full selftext. */
2837
+ search_snippet?: string | null;
2836
2838
  /** External or self URL */
2837
2839
  url: string;
2838
2840
  /** Permalink to post on Reddit */
@@ -3101,6 +3103,9 @@ interface RedditSubreddit {
3101
3103
  url: string;
3102
3104
  /** Subscriber count */
3103
3105
  subscribers: number;
3106
+ /** Weekly activity from Reddit's web search, separate from subscriber count. */
3107
+ weekly_visitors?: number | null;
3108
+ weekly_contributions?: number | null;
3104
3109
  /** Creation timestamp (Unix) */
3105
3110
  created_utc: number;
3106
3111
  /** Creation time as ISO 8601 UTC string */
@@ -3565,6 +3570,8 @@ interface DomainPostsResponse {
3565
3570
  domain: string;
3566
3571
  }
3567
3572
 
3573
+ /** Search cursors are opaque, expire after 30 minutes, and require the same query and filters.
3574
+ * Native pages can contain fewer results than limit; continue while pagination.after is present. */
3568
3575
  /**
3569
3576
  * Reddit Search API client.
3570
3577
  *
package/dist/index.d.ts CHANGED
@@ -2833,6 +2833,8 @@ interface RedditPost {
2833
2833
  selftext: string;
2834
2834
  /** Self post text as HTML */
2835
2835
  selftext_html: string | null;
2836
+ /** Preview excerpt returned by Reddit's web search; distinct from the full selftext. */
2837
+ search_snippet?: string | null;
2836
2838
  /** External or self URL */
2837
2839
  url: string;
2838
2840
  /** Permalink to post on Reddit */
@@ -3101,6 +3103,9 @@ interface RedditSubreddit {
3101
3103
  url: string;
3102
3104
  /** Subscriber count */
3103
3105
  subscribers: number;
3106
+ /** Weekly activity from Reddit's web search, separate from subscriber count. */
3107
+ weekly_visitors?: number | null;
3108
+ weekly_contributions?: number | null;
3104
3109
  /** Creation timestamp (Unix) */
3105
3110
  created_utc: number;
3106
3111
  /** Creation time as ISO 8601 UTC string */
@@ -3565,6 +3570,8 @@ interface DomainPostsResponse {
3565
3570
  domain: string;
3566
3571
  }
3567
3572
 
3573
+ /** Search cursors are opaque, expire after 30 minutes, and require the same query and filters.
3574
+ * Native pages can contain fewer results than limit; continue while pagination.after is present. */
3568
3575
  /**
3569
3576
  * Reddit Search API client.
3570
3577
  *
package/dist/index.js CHANGED
@@ -3884,10 +3884,10 @@ var SearchClient3 = class {
3884
3884
  async posts(options) {
3885
3885
  return this.client.request("/v1/reddit/search/posts", {
3886
3886
  params: {
3887
- query: options.query,
3887
+ q: options.query,
3888
3888
  subreddit: options.subreddit,
3889
3889
  sort: options.sort,
3890
- time: options.time,
3890
+ t: options.time,
3891
3891
  after: options.after,
3892
3892
  limit: options.limit
3893
3893
  }
@@ -3918,7 +3918,7 @@ var SearchClient3 = class {
3918
3918
  async subreddits(options) {
3919
3919
  return this.client.request("/v1/reddit/search/subreddits", {
3920
3920
  params: {
3921
- query: options.query,
3921
+ q: options.query,
3922
3922
  after: options.after,
3923
3923
  limit: options.limit
3924
3924
  }
@@ -3949,7 +3949,7 @@ var SearchClient3 = class {
3949
3949
  async users(options) {
3950
3950
  return this.client.request("/v1/reddit/search/users", {
3951
3951
  params: {
3952
- query: options.query,
3952
+ q: options.query,
3953
3953
  after: options.after,
3954
3954
  limit: options.limit
3955
3955
  }
@@ -3986,7 +3986,7 @@ var SearchClient3 = class {
3986
3986
  params: {
3987
3987
  domain: options.domain,
3988
3988
  sort: options.sort,
3989
- time: options.time,
3989
+ t: options.time,
3990
3990
  after: options.after,
3991
3991
  limit: options.limit
3992
3992
  }