-
Notifications
You must be signed in to change notification settings - Fork 294
Expand file tree
/
Copy pathtool_groups.js
More file actions
186 lines (181 loc) · 5.67 KB
/
tool_groups.js
File metadata and controls
186 lines (181 loc) · 5.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
'use strict'; /*jslint node:true es9:true*/
const base_tools = ['search_engine', 'scrape_as_markdown'];
export const GROUPS = {
ECOMMERCE: {
id: 'ecommerce',
name: 'E-commerce',
description: 'Retail and marketplace datasets for product intel.',
tools: [
...base_tools,
'web_data_amazon_product',
'web_data_amazon_product_reviews',
'web_data_amazon_product_search',
'web_data_walmart_product',
'web_data_walmart_seller',
'web_data_ebay_product',
'web_data_homedepot_products',
'web_data_zara_products',
'web_data_etsy_products',
'web_data_bestbuy_products',
'web_data_google_shopping',
],
},
SOCIAL_MEDIA: {
id: 'social',
name: 'Social Media',
description: 'Social networks, UGC platforms, and creator insights.',
tools: [
...base_tools,
'web_data_linkedin_person_profile',
'web_data_linkedin_company_profile',
'web_data_linkedin_job_listings',
'web_data_linkedin_posts',
'web_data_linkedin_people_search',
'web_data_instagram_profiles',
'web_data_instagram_posts',
'web_data_instagram_reels',
'web_data_instagram_comments',
'web_data_facebook_posts',
'web_data_facebook_marketplace_listings',
'web_data_facebook_company_reviews',
'web_data_facebook_events',
'web_data_tiktok_profiles',
'web_data_tiktok_posts',
'web_data_tiktok_shop',
'web_data_tiktok_comments',
'web_data_x_posts',
'web_data_x_profile_posts',
'web_data_youtube_profiles',
'web_data_youtube_comments',
'web_data_youtube_videos',
'web_data_reddit_posts',
],
},
BROWSER: {
id: 'browser',
name: 'Browser Automation',
description: 'Bright Data Scraping Browser tools for automation.',
tools: [
...base_tools,
'scraping_browser_navigate',
'scraping_browser_go_back',
'scraping_browser_go_forward',
'scraping_browser_snapshot',
'scraping_browser_fill_form',
'scraping_browser_click_ref',
'scraping_browser_type_ref',
'scraping_browser_screenshot',
'scraping_browser_network_requests',
'scraping_browser_wait_for_ref',
'scraping_browser_get_text',
'scraping_browser_get_html',
'scraping_browser_scroll',
'scraping_browser_scroll_to_ref',
],
},
FINANCE: {
id: 'finance',
name: 'Finance Intelligence',
description: 'Company, financial, and location intelligence datasets.',
tools: [
...base_tools,
'web_data_yahoo_finance_business',
],
},
BUSINESS: {
id: 'business',
name: 'Business Intelligence',
description: 'Company, and location intelligence datasets.',
tools: [
...base_tools,
'web_data_crunchbase_company',
'web_data_zoominfo_company_profile',
'web_data_google_maps_reviews',
'web_data_zillow_properties_listing',
'web_data_booking_hotel_listings',
],
},
RESEARCH: {
id: 'research',
name: 'Research',
description: 'App stores, news, and developer data feeds.',
tools: [
...base_tools,
'web_data_github_repository_file',
'web_data_reuter_news',
],
},
APP_STORES: {
id: 'app_stores',
name: 'App stores',
description: 'App stores.',
tools: [
...base_tools,
'web_data_google_play_store',
'web_data_apple_app_store',
],
},
TRAVEL: {
id: 'travel',
name: 'Travel',
description: 'Travel information.',
tools: [
...base_tools,
'web_data_booking_hotel_listings',
],
},
ADVANCED_SCRAPING: {
id: 'advanced_scraping',
name: 'Advanced Scraping',
description: 'Higher-throughput scraping utilities and batch helpers.',
tools: [
...base_tools,
'search_engine_batch',
'scrape_batch',
'scrape_as_html',
'extract',
'session_stats',
],
},
GEO: {
id: 'geo',
name: 'GEO & LLM Visibility',
description: 'Tools for measuring and analyzing AI/LLM brand '
+'visibility and generative engine optimization.',
tools: [
...base_tools,
'web_data_chatgpt_ai_insights',
'web_data_grok_ai_insights',
'web_data_perplexity_ai_insights',
],
},
CODE: {
id: 'code',
name: 'Code',
description: 'Developer tools and package information datasets.',
tools: [
...base_tools,
'web_data_npm_package',
'web_data_pypi_package',
],
},
CUSTOM: {
id: 'custom',
name: 'Custom',
description: 'Placeholder for user-defined tool selections.',
tools: [...base_tools],
},
};
export const get_all_group_ids = ()=>{
return Object.values(GROUPS)
.map(group=>group.id)
.filter(id=>id!=='custom');
};
export const get_total_tool_count = ()=>{
const all_tools = new Set();
for (let group of Object.values(GROUPS))
for (let tool of group.tools)
all_tools.add(tool);
return all_tools.size;
};
export {base_tools};