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 91f3131
Browse filesBrowse the repository at this point in the historyBrowse files
stlc-bot
committed
feat(scrape): add TikTok profile and video prebuilt parsers (#1956)
Copy file name to clipboardExpand all lines: src/context/dev/types/batch_get_results_response.py
+30-10Lines changed: 30 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -294,7 +294,7 @@ class DataOkResultMetadata(BaseModel):
294
294
295
295
classDataOkResultParsed(BaseModel):
296
296
"""
297
-
Custom rules return fields after content filters; unmatched fields are null ([] for lists). The google-maps parser returns business records in data.results, google-maps-reviews returns data.reviews, and the google-play parser returns one app record as data, google-play-reviews returns data.reviews, app-store and app-store-reviews do the same for the App Store, g2-reviews returns data.reviews for a G2 product, instagram-profile and instagram-post return one record as data, instagram-feed returns data.posts, emails, phone-numbers, and links return data.emails, data.phone_numbers, and data.links from the rendered page; the store, Maps, G2, and Instagram parsers read their data directly, independently of DOM filters and other outputs.
297
+
Custom rules return fields after content filters; unmatched fields are null ([] for lists). The google-maps parser returns business records in data.results, google-maps-reviews returns data.reviews, and the google-play parser returns one app record as data, google-play-reviews returns data.reviews, app-store and app-store-reviews do the same for the App Store, g2-reviews returns data.reviews for a G2 product, instagram-profile and instagram-post return one record as data, instagram-feed returns data.posts, tiktok-profile and tiktok-video return one record as data, tiktok-feed returns data.videos, tiktok-comments returns data.comments, tiktok-followers, tiktok-following, and tiktok-user-search return data.users, emails, phone-numbers, and links return data.emails, data.phone_numbers, and data.links from the rendered page; the store, Maps, G2, Instagram, and TikTok parsers read their data directly, independently of DOM filters and other outputs.
298
298
"""
299
299
300
300
data: Optional[Dict[str, object]] =None
@@ -316,6 +316,13 @@ class DataOkResultParsed(BaseModel):
316
316
"instagram-profile",
317
317
"instagram-post",
318
318
"instagram-feed",
319
+
"tiktok-profile",
320
+
"tiktok-video",
321
+
"tiktok-feed",
322
+
"tiktok-comments",
323
+
"tiktok-followers",
324
+
"tiktok-following",
325
+
"tiktok-user-search",
319
326
"emails",
320
327
"phone-numbers",
321
328
"links",
@@ -512,10 +519,13 @@ class DataOkResult(BaseModel):
512
519
app record as data, google-play-reviews returns data.reviews, app-store and
513
520
app-store-reviews do the same for the App Store, g2-reviews returns data.reviews
514
521
for a G2 product, instagram-profile and instagram-post return one record as
515
-
data, instagram-feed returns data.posts, emails, phone-numbers, and links return
516
-
data.emails, data.phone_numbers, and data.links from the rendered page; the
517
-
store, Maps, G2, and Instagram parsers read their data directly, independently
518
-
of DOM filters and other outputs.
522
+
data, instagram-feed returns data.posts, tiktok-profile and tiktok-video return
523
+
one record as data, tiktok-feed returns data.videos, tiktok-comments returns
524
+
data.comments, tiktok-followers, tiktok-following, and tiktok-user-search return
525
+
data.users, emails, phone-numbers, and links return data.emails,
526
+
data.phone_numbers, and data.links from the rendered page; the store, Maps, G2,
527
+
Instagram, and TikTok parsers read their data directly, independently of DOM
528
+
filters and other outputs.
519
529
"""
520
530
521
531
product: DataOkResultProduct
@@ -817,7 +827,7 @@ class DataErrorResultMetadata(BaseModel):
817
827
818
828
classDataErrorResultParsed(BaseModel):
819
829
"""
820
-
Custom rules return fields after content filters; unmatched fields are null ([] for lists). The google-maps parser returns business records in data.results, google-maps-reviews returns data.reviews, and the google-play parser returns one app record as data, google-play-reviews returns data.reviews, app-store and app-store-reviews do the same for the App Store, g2-reviews returns data.reviews for a G2 product, instagram-profile and instagram-post return one record as data, instagram-feed returns data.posts, emails, phone-numbers, and links return data.emails, data.phone_numbers, and data.links from the rendered page; the store, Maps, G2, and Instagram parsers read their data directly, independently of DOM filters and other outputs.
830
+
Custom rules return fields after content filters; unmatched fields are null ([] for lists). The google-maps parser returns business records in data.results, google-maps-reviews returns data.reviews, and the google-play parser returns one app record as data, google-play-reviews returns data.reviews, app-store and app-store-reviews do the same for the App Store, g2-reviews returns data.reviews for a G2 product, instagram-profile and instagram-post return one record as data, instagram-feed returns data.posts, tiktok-profile and tiktok-video return one record as data, tiktok-feed returns data.videos, tiktok-comments returns data.comments, tiktok-followers, tiktok-following, and tiktok-user-search return data.users, emails, phone-numbers, and links return data.emails, data.phone_numbers, and data.links from the rendered page; the store, Maps, G2, Instagram, and TikTok parsers read their data directly, independently of DOM filters and other outputs.
821
831
"""
822
832
823
833
data: Optional[Dict[str, object]] =None
@@ -839,6 +849,13 @@ class DataErrorResultParsed(BaseModel):
839
849
"instagram-profile",
840
850
"instagram-post",
841
851
"instagram-feed",
852
+
"tiktok-profile",
853
+
"tiktok-video",
854
+
"tiktok-feed",
855
+
"tiktok-comments",
856
+
"tiktok-followers",
857
+
"tiktok-following",
858
+
"tiktok-user-search",
842
859
"emails",
843
860
"phone-numbers",
844
861
"links",
@@ -1036,10 +1053,13 @@ class DataErrorResult(BaseModel):
1036
1053
app record as data, google-play-reviews returns data.reviews, app-store and
1037
1054
app-store-reviews do the same for the App Store, g2-reviews returns data.reviews
1038
1055
for a G2 product, instagram-profile and instagram-post return one record as
1039
-
data, instagram-feed returns data.posts, emails, phone-numbers, and links return
1040
-
data.emails, data.phone_numbers, and data.links from the rendered page; the
1041
-
store, Maps, G2, and Instagram parsers read their data directly, independently
1042
-
of DOM filters and other outputs.
1056
+
data, instagram-feed returns data.posts, tiktok-profile and tiktok-video return
1057
+
one record as data, tiktok-feed returns data.videos, tiktok-comments returns
1058
+
data.comments, tiktok-followers, tiktok-following, and tiktok-user-search return
1059
+
data.users, emails, phone-numbers, and links return data.emails,
1060
+
data.phone_numbers, and data.links from the rendered page; the store, Maps, G2,
1061
+
Instagram, and TikTok parsers read their data directly, independently of DOM
0 commit comments