This project is a web scraper that collects free Udemy courses and saves them in a JSON file. This scraper is designed to be used with a Discord bot named ChatGpt.
-
Clone the repository:
git clone https://github.com/yourusername/udemy-courses-coupons-free-scraper.git cd udemy-courses-coupons-free-scraper
-
Install the dependencies:
npm install
To start the scraper in development mode, run:
npm run dev
To build the project for deployment, run:
npm run build
The scraper will navigate to the specified URL, collect the free Udemy courses, and save them into a JSON file located in the output directory.
npm run dev
: Starts the scraper in development mode.npm run build
: Builds the project for deployment.
The main configuration for the scraper can be found in the config.js file. Key variables include:
- url: The URL of the Udemy courses page to scrape.
URL_PAGE=https://xx.xxxxxx.com/xxxxx?xxxx=x;
Contributions are welcome! Please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Make your changes.
- Commit your changes (
git commit -am 'Add new feature'
). - Push to the branch (
git push origin feature-branch
). - Create a new Pull Request.
This project is licensed under the MIT License. See the LICENSE file for details.