Skip to content

Commit 7d2cf48

Browse files
author
stlc-bot
committed
fix(openapi): keep legacy batch inputs in the spec as deprecated (#2225)
feat(access-policies): limit which websites API requests can reach (#2213) feat(brand): support log-free brand and styleguide requests (#2231) fix(brand): keep metadata-only usage logs for ZDR brand requests (#2234) feat(monitors): add search target to watch the web for new developments (#2215) fix(scrape): restore Instagram profile posts from public pages (#2233) Stainless-Generated-From: abd9d911b8a29fba700af29f8f8fd4e5fe551ef4
1 parent d2a0ffb commit 7d2cf48

2 files changed

Lines changed: 51 additions & 39 deletions

File tree

‎src/context/dev/types/batch_submit_params.py‎

Lines changed: 34 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -927,19 +927,23 @@ class InputScrapeDataBatchUnifiedScrapeDataParseParamsPrebuiltParser(TypedDict,
927927
(filters[nps_score][]=1 to 5); other filters, sort orders, and pages are
928928
ignored. instagram-profile parses a public profile (instagram.com/{username})
929929
into data: bio, links, follower and post counts, category, business address,
930-
similar_accounts, and latest_posts (the 12 newest). instagram-post parses a post
931-
or reel (/p/…, /reel/…) into data: caption, hashtags, mentions, like, comment,
932-
and view counts, media URLs, tagged users, collaborators, location, and the top
933-
~14 comments in data.comments. instagram-feed returns the top posts for a
934-
hashtag or keyword (/explore/tags/…, /popular/…) or the recent posts at a
935-
location (/explore/locations/{id}/…) in data.posts; keyword posts carry only the
936-
shortcode, owner, thumbnail, and views, plus the caption when Instagram shows
937-
it. All three Instagram parsers read public data without logging in, so private
938-
accounts return no posts and follower lists are unavailable. tiktok-profile
939-
parses a public profile (tiktok.com/@{username}) into data: nickname, bio, bio
940-
link, follower, following, like, and video counts, verified, private, and
941-
business flags, and business category; it does not list videos. tiktok-video
942-
parses a video or photo post (/@{username}/video/{id} or
930+
similar_accounts, and latest_posts (up to the 12 posts at the top of the
931+
profile, newest first). Instagram lists pinned posts there ahead of newer ones,
932+
so posts with is_pinned true can be older; when Instagram shows only a rounded
933+
post count (32K), post_count is that rounded number and is_post_count_rounded is
934+
true. instagram-post parses a post or reel (/p/…, /reel/…) into data: caption,
935+
hashtags, mentions, like, comment, and view counts (like_count and view_count
936+
are null when the owner hides them), media URLs, tagged users, collaborators,
937+
location, and the top ~14 comments in data.comments. instagram-feed returns the
938+
top posts for a hashtag or keyword (/explore/tags/…, /popular/…) or the recent
939+
posts at a location (/explore/locations/{id}/…) in data.posts; keyword posts
940+
carry only the shortcode, owner, thumbnail, and views, plus the caption when
941+
Instagram shows it. All three Instagram parsers read public data without logging
942+
in, so private accounts return no posts and follower lists are unavailable.
943+
tiktok-profile parses a public profile (tiktok.com/@{username}) into data:
944+
nickname, bio, bio link, follower, following, like, and video counts, verified,
945+
private, and business flags, and business category; it does not list videos.
946+
tiktok-video parses a video or photo post (/@{username}/video/{id} or
943947
/@{username}/photo/{id}) into data: caption, hashtags, mentions, author, view,
944948
like, comment, share, save, and repost counts, duration, thumbnail, a video_url
945949
that downloads without cookies, image_urls for photo posts, music, location, and
@@ -2560,19 +2564,23 @@ class InputCrawlDataBatchUnifiedCrawlDataParseParamsPrebuiltParser(TypedDict, to
25602564
(filters[nps_score][]=1 to 5); other filters, sort orders, and pages are
25612565
ignored. instagram-profile parses a public profile (instagram.com/{username})
25622566
into data: bio, links, follower and post counts, category, business address,
2563-
similar_accounts, and latest_posts (the 12 newest). instagram-post parses a post
2564-
or reel (/p/…, /reel/…) into data: caption, hashtags, mentions, like, comment,
2565-
and view counts, media URLs, tagged users, collaborators, location, and the top
2566-
~14 comments in data.comments. instagram-feed returns the top posts for a
2567-
hashtag or keyword (/explore/tags/…, /popular/…) or the recent posts at a
2568-
location (/explore/locations/{id}/…) in data.posts; keyword posts carry only the
2569-
shortcode, owner, thumbnail, and views, plus the caption when Instagram shows
2570-
it. All three Instagram parsers read public data without logging in, so private
2571-
accounts return no posts and follower lists are unavailable. tiktok-profile
2572-
parses a public profile (tiktok.com/@{username}) into data: nickname, bio, bio
2573-
link, follower, following, like, and video counts, verified, private, and
2574-
business flags, and business category; it does not list videos. tiktok-video
2575-
parses a video or photo post (/@{username}/video/{id} or
2567+
similar_accounts, and latest_posts (up to the 12 posts at the top of the
2568+
profile, newest first). Instagram lists pinned posts there ahead of newer ones,
2569+
so posts with is_pinned true can be older; when Instagram shows only a rounded
2570+
post count (32K), post_count is that rounded number and is_post_count_rounded is
2571+
true. instagram-post parses a post or reel (/p/…, /reel/…) into data: caption,
2572+
hashtags, mentions, like, comment, and view counts (like_count and view_count
2573+
are null when the owner hides them), media URLs, tagged users, collaborators,
2574+
location, and the top ~14 comments in data.comments. instagram-feed returns the
2575+
top posts for a hashtag or keyword (/explore/tags/…, /popular/…) or the recent
2576+
posts at a location (/explore/locations/{id}/…) in data.posts; keyword posts
2577+
carry only the shortcode, owner, thumbnail, and views, plus the caption when
2578+
Instagram shows it. All three Instagram parsers read public data without logging
2579+
in, so private accounts return no posts and follower lists are unavailable.
2580+
tiktok-profile parses a public profile (tiktok.com/@{username}) into data:
2581+
nickname, bio, bio link, follower, following, like, and video counts, verified,
2582+
private, and business flags, and business category; it does not list videos.
2583+
tiktok-video parses a video or photo post (/@{username}/video/{id} or
25762584
/@{username}/photo/{id}) into data: caption, hashtags, mentions, author, view,
25772585
like, comment, share, save, and repost counts, duration, thumbnail, a video_url
25782586
that downloads without cookies, image_urls for photo posts, music, location, and

‎src/context/dev/types/web_scrape_params.py‎

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -267,19 +267,23 @@ class ParseParamsPrebuiltParser(TypedDict, total=False):
267267
(filters[nps_score][]=1 to 5); other filters, sort orders, and pages are
268268
ignored. instagram-profile parses a public profile (instagram.com/{username})
269269
into data: bio, links, follower and post counts, category, business address,
270-
similar_accounts, and latest_posts (the 12 newest). instagram-post parses a post
271-
or reel (/p/…, /reel/…) into data: caption, hashtags, mentions, like, comment,
272-
and view counts, media URLs, tagged users, collaborators, location, and the top
273-
~14 comments in data.comments. instagram-feed returns the top posts for a
274-
hashtag or keyword (/explore/tags/…, /popular/…) or the recent posts at a
275-
location (/explore/locations/{id}/…) in data.posts; keyword posts carry only the
276-
shortcode, owner, thumbnail, and views, plus the caption when Instagram shows
277-
it. All three Instagram parsers read public data without logging in, so private
278-
accounts return no posts and follower lists are unavailable. tiktok-profile
279-
parses a public profile (tiktok.com/@{username}) into data: nickname, bio, bio
280-
link, follower, following, like, and video counts, verified, private, and
281-
business flags, and business category; it does not list videos. tiktok-video
282-
parses a video or photo post (/@{username}/video/{id} or
270+
similar_accounts, and latest_posts (up to the 12 posts at the top of the
271+
profile, newest first). Instagram lists pinned posts there ahead of newer ones,
272+
so posts with is_pinned true can be older; when Instagram shows only a rounded
273+
post count (32K), post_count is that rounded number and is_post_count_rounded is
274+
true. instagram-post parses a post or reel (/p/…, /reel/…) into data: caption,
275+
hashtags, mentions, like, comment, and view counts (like_count and view_count
276+
are null when the owner hides them), media URLs, tagged users, collaborators,
277+
location, and the top ~14 comments in data.comments. instagram-feed returns the
278+
top posts for a hashtag or keyword (/explore/tags/…, /popular/…) or the recent
279+
posts at a location (/explore/locations/{id}/…) in data.posts; keyword posts
280+
carry only the shortcode, owner, thumbnail, and views, plus the caption when
281+
Instagram shows it. All three Instagram parsers read public data without logging
282+
in, so private accounts return no posts and follower lists are unavailable.
283+
tiktok-profile parses a public profile (tiktok.com/@{username}) into data:
284+
nickname, bio, bio link, follower, following, like, and video counts, verified,
285+
private, and business flags, and business category; it does not list videos.
286+
tiktok-video parses a video or photo post (/@{username}/video/{id} or
283287
/@{username}/photo/{id}) into data: caption, hashtags, mentions, author, view,
284288
like, comment, share, save, and repost counts, duration, thumbnail, a video_url
285289
that downloads without cookies, image_urls for photo posts, music, location, and

0 commit comments

Comments
 (0)