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 8251b05
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: src/context/dev/types/batch_get_results_response.py
+10-4Lines changed: 10 additions & 4 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, 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, yelp-search returns up to 20 ranked organic businesses in data.businesses, plus total and pagination, from a Yelp search URL; yelp-reviews returns up to 20 latest public reviews in data.reviews, with business details and next_offset, from a Yelp business URL; 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.
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, yelp-search returns up to 20 ranked organic businesses in data.businesses, plus total and pagination, from a Yelp search URL; yelp-reviews returns up to 20 latest public reviews in data.reviews, with business details and next_offset, from a Yelp business URL; tripadvisor-reviews returns 20 reviews in data.reviews, with data.location and next_offset, from a Tripadvisor hotel, restaurant, or attraction review URL; 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
@@ -329,6 +329,7 @@ class DataOkResultParsed(BaseModel):
329
329
"reddit-user",
330
330
"yelp-search",
331
331
"yelp-reviews",
332
+
"tripadvisor-reviews",
332
333
"emails",
333
334
"phone-numbers",
334
335
"links",
@@ -531,7 +532,9 @@ class DataOkResult(BaseModel):
531
532
data.users, yelp-search returns up to 20 ranked organic businesses in
532
533
data.businesses, plus total and pagination, from a Yelp search URL; yelp-reviews
533
534
returns up to 20 latest public reviews in data.reviews, with business details
534
-
and next_offset, from a Yelp business URL; emails, phone-numbers, and links
535
+
and next_offset, from a Yelp business URL; tripadvisor-reviews returns 20
536
+
reviews in data.reviews, with data.location and next_offset, from a Tripadvisor
537
+
hotel, restaurant, or attraction review URL; emails, phone-numbers, and links
535
538
return data.emails, data.phone_numbers, and data.links from the rendered page;
536
539
the store, Maps, G2, Instagram, and TikTok parsers read their data directly,
537
540
independently of DOM filters and other outputs.
@@ -836,7 +839,7 @@ class DataErrorResultMetadata(BaseModel):
836
839
837
840
classDataErrorResultParsed(BaseModel):
838
841
"""
839
-
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, yelp-search returns up to 20 ranked organic businesses in data.businesses, plus total and pagination, from a Yelp search URL; yelp-reviews returns up to 20 latest public reviews in data.reviews, with business details and next_offset, from a Yelp business URL; 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.
842
+
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, yelp-search returns up to 20 ranked organic businesses in data.businesses, plus total and pagination, from a Yelp search URL; yelp-reviews returns up to 20 latest public reviews in data.reviews, with business details and next_offset, from a Yelp business URL; tripadvisor-reviews returns 20 reviews in data.reviews, with data.location and next_offset, from a Tripadvisor hotel, restaurant, or attraction review URL; 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.
840
843
"""
841
844
842
845
data: Optional[Dict[str, object]] =None
@@ -871,6 +874,7 @@ class DataErrorResultParsed(BaseModel):
871
874
"reddit-user",
872
875
"yelp-search",
873
876
"yelp-reviews",
877
+
"tripadvisor-reviews",
874
878
"emails",
875
879
"phone-numbers",
876
880
"links",
@@ -1074,7 +1078,9 @@ class DataErrorResult(BaseModel):
1074
1078
data.users, yelp-search returns up to 20 ranked organic businesses in
1075
1079
data.businesses, plus total and pagination, from a Yelp search URL; yelp-reviews
1076
1080
returns up to 20 latest public reviews in data.reviews, with business details
1077
-
and next_offset, from a Yelp business URL; emails, phone-numbers, and links
1081
+
and next_offset, from a Yelp business URL; tripadvisor-reviews returns 20
1082
+
reviews in data.reviews, with data.location and next_offset, from a Tripadvisor
1083
+
hotel, restaurant, or attraction review URL; emails, phone-numbers, and links
1078
1084
return data.emails, data.phone_numbers, and data.links from the rendered page;
1079
1085
the store, Maps, G2, Instagram, and TikTok parsers read their data directly,
Copy file name to clipboardExpand all lines: src/context/dev/types/web_scrape_response.py
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -267,7 +267,7 @@ class Metadata(BaseModel):
267
267
268
268
classParsed(BaseModel):
269
269
"""
270
-
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, yelp-search returns up to 20 ranked organic businesses in data.businesses, plus total and pagination, from a Yelp search URL; yelp-reviews returns up to 20 latest public reviews in data.reviews, with business details and next_offset, from a Yelp business URL; 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.
270
+
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, yelp-search returns up to 20 ranked organic businesses in data.businesses, plus total and pagination, from a Yelp search URL; yelp-reviews returns up to 20 latest public reviews in data.reviews, with business details and next_offset, from a Yelp business URL; tripadvisor-reviews returns 20 reviews in data.reviews, with data.location and next_offset, from a Tripadvisor hotel, restaurant, or attraction review URL; 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.
271
271
"""
272
272
273
273
data: Optional[Dict[str, object]] =None
@@ -302,6 +302,7 @@ class Parsed(BaseModel):
302
302
"reddit-user",
303
303
"yelp-search",
304
304
"yelp-reviews",
305
+
"tripadvisor-reviews",
305
306
"emails",
306
307
"phone-numbers",
307
308
"links",
@@ -500,7 +501,9 @@ class WebScrapeResponse(BaseModel):
500
501
data.users, yelp-search returns up to 20 ranked organic businesses in
501
502
data.businesses, plus total and pagination, from a Yelp search URL; yelp-reviews
502
503
returns up to 20 latest public reviews in data.reviews, with business details
503
-
and next_offset, from a Yelp business URL; emails, phone-numbers, and links
504
+
and next_offset, from a Yelp business URL; tripadvisor-reviews returns 20
505
+
reviews in data.reviews, with data.location and next_offset, from a Tripadvisor
506
+
hotel, restaurant, or attraction review URL; emails, phone-numbers, and links
504
507
return data.emails, data.phone_numbers, and data.links from the rendered page;
505
508
the store, Maps, G2, Instagram, and TikTok parsers read their data directly,
0 commit comments