Udemy Courses Scraper avatar
Udemy Courses Scraper
Try for free

2 days trial then $30.00/month - No credit card required now

View all Actors
Udemy Courses Scraper

Udemy Courses Scraper

natanielsantos/udemy-courses-scraper
Try for free

2 days trial then $30.00/month - No credit card required now

Scrape data from thousands of courses available on udemy.com. Extract description, price, rating, created date, image and more. Download your data as HTML table, JSON, CSV, Excel, XML, and RSS feed.

The code examples below show how to run the Actor and get its results. To run the code, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token, which you can find under Settings > Integrations in Apify Console. Learn more

1import { ApifyClient } from 'apify-client';
2
3// Initialize the ApifyClient with your Apify API token
4const client = new ApifyClient({
5    token: '<YOUR_API_TOKEN>',
6});
7
8// Prepare Actor input
9const input = {
10    "course_urls": [
11        {
12            "url": "https://www.udemy.com/course/python-3-do-zero-ao-avancado/"
13        }
14    ],
15    "category_url": [
16        {
17            "url": "https://www.udemy.com/courses/development/"
18        }
19    ],
20    "proxySettings": {
21        "useApifyProxy": true
22    }
23};
24
25(async () => {
26    // Run the Actor and wait for it to finish
27    const run = await client.actor("natanielsantos/udemy-courses-scraper").call(input);
28
29    // Fetch and print Actor results from the run's dataset (if any)
30    console.log('Results from dataset');
31    console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
32    const { items } = await client.dataset(run.defaultDatasetId).listItems();
33    items.forEach((item) => {
34        console.dir(item);
35    });
36})();
37
38// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs
Developer
Maintained by Community
Actor metrics
  • 11 monthly users
  • 0 stars
  • 92.5% runs succeeded
  • 21 days response time
  • Created in May 2023
  • Modified 5 months ago
Categories