
Extract Eventbrite online events
- scrapingxpert/extract-eventbrite-online-events
- Modified
- Users 13
- Runs 453
- Created by
scrapingxpert
Eventbrite is a popular platform for creating and browsing events, but it doesn't have an API for directly extracting online events. Fortunately, Apify script finds the latest online occasions without coding. The extracted data can be downloaded in different formats or used for custom workflows.
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 = {
"start_urls": [
{
"url": "https://www.eventbrite.com/d/finland--turku/all-events/?page=1"
}
]
};
(async () => {
// Run the Actor and wait for it to finish
const run = await client.actor("scrapingxpert/extract-eventbrite-online-events").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);
});
})();