You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 95a3632
Browse filesBrowse the repository at this point in the historyBrowse files
stlc-bot
committed
feat(scrape): add reddit-post prebuilt parser with full comment trees (#2217)
# is_nsfw), data.posts in the reddit-post shape, and data.comments, each with id,
621
+
# author, body as Markdown, score, posted_at, edited_at, url, subreddit, parent_id
622
+
# (null for a top-level comment), is_submitter, is_stickied, distinguished,
623
+
# award_count, and the post it was left on (id, title, url, author, is_nsfw). The
624
+
# overview tab returns both posts and comments; submitted returns null comments
625
+
# and comments returns null posts. limit caps the posts and comments together
626
+
# (default 100) and data.has_more says whether Reddit has more. Users who hide
627
+
# their activity return empty lists, and suspended accounts return their profile
628
+
# with null posts and comments. yelp-search accepts Yelp search URLs with
629
+
# find_desc and find_loc, reads start as the result offset, and returns up to 20
630
+
# ranked organic businesses in data.businesses with total and pagination.
631
+
# yelp-reviews accepts a Yelp business URL (yelp.com/biz/{alias}), uses optional
632
+
# start for the offset, and always sorts newest first; unsupported sort and review
633
+
# filters are rejected, while tracking params are ignored. It returns up to 20
634
+
# latest public reviews in data.reviews with business details and
586
635
# pagination.next_offset. Each review has rating, full text, updated_at, and
587
636
# author; owner replies and photos are not included. emails accepts any page and
588
637
# returns its email addresses as data.emails ([{ email }]), read from mailto
@@ -606,8 +655,10 @@ class PrebuiltParser < ContextDev::Internal::Type::BaseModel
606
655
required:type,const: :prebuilt
607
656
608
657
# @!attribute limit
609
-
# google-maps-reviews only. Maximum number of reviews to return. Defaults to 100;
610
-
# maximum 1000.
658
+
# google-maps-reviews and reddit parsers only. Maximum number of reviews
659
+
# (google-maps-reviews, default 100), comments (reddit-post, default 100), or
660
+
# results (reddit-search, reddit-subreddit, and reddit-user, default 100) to
661
+
# return; maximum 1000.
611
662
#
612
663
# @return [Integer, nil]
613
664
optional:limit,Integer
@@ -627,7 +678,7 @@ class PrebuiltParser < ContextDev::Internal::Type::BaseModel
627
678
#
628
679
# @param parser [Symbol, ContextDev::Models::WebScrapeParams::ParseParams::PrebuiltParser::Parser] google-maps parses Google Maps business data into data.results. Accepts Maps pla
629
680
#
630
-
# @param limit [Integer] google-maps-reviews only. Maximum number of reviews to return. Defaults to 100;
681
+
# @param limit [Integer] google-maps-reviews and reddit parsers only. Maximum number of reviews (google-m
631
682
#
632
683
# @param sort [Symbol, ContextDev::Models::WebScrapeParams::ParseParams::PrebuiltParser::Sort] google-maps-reviews only. Order of data.reviews. newest, relevant, highest, and
633
684
#
@@ -691,13 +742,62 @@ class PrebuiltParser < ContextDev::Internal::Type::BaseModel
691
742
# (/search/user?q={query}) as data.users: id, username, nickname, biography,
692
743
# avatar_url, sec_uid, follower_count, like_count, and is_verified. The TikTok
693
744
# parsers accept tiktok.com, www.tiktok.com, and m.tiktok.com URLs but not short
0 commit comments