
Trustradius Insights Scraper
- epctex/trustradius-scraper
- Modified
- Users 37
- Runs 2.6k
- Created by
epctex
Dive into the Trustradius database with our specialized tool. Extract detailed product, vendor, and review data. Access authentic client feedback, in-depth vendor profiles, and portfolio insights. Navigate with custom search terms, ensuring precise and invaluable insights for your analytical needs.
To run the code examples, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token. For a more detailed explanation, please read about running Actors via the API in Apify Docs.
import { ApifyClient } from 'apify-client';
// Initialize the ApifyClient with API token
const client = new ApifyClient({
token: '<YOUR_API_TOKEN>',
});
// Prepare Actor input
const input = {
"search": "food",
"startUrls": [
"https://www.trustradius.com/vendors/trustradius",
"https://www.trustradius.com/products/canva",
"https://www.trustradius.com/users/61ff850b1928ba0031703629",
"https://www.trustradius.com/users/5c24577c4452bb002b85451a",
"https://www.trustradius.com/search?t=product&q=food",
"https://www.trustradius.com/search?t=vendor&t=product&q=food",
"https://www.trustradius.com/products?q=food",
"https://www.trustradius.com/vendors?q=food"
],
"maxItems": 20,
"endPage": 2,
"extendOutputFunction": ($) => { return {} },
"customMapFunction": (object) => { return {...object} },
"proxy": {
"useApifyProxy": true
}
};
(async () => {
// Run the Actor and wait for it to finish
const run = await client.actor("epctex/trustradius-scraper").call(input);
// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
console.dir(item);
});
})();