Make sure you have Node.js installed on your machine.
-
Clone the repository:
git clone https://github.com/Rexdzx/url-to-code.git
-
Navigate to the project directory:
cd your-repo-name -
Install dependencies:
npm install
-
Run the scrapper:
node index.mjs
-
Set the Website URL
Masukkan URL : https://example.com -
Customize other options if needed (e.g.,
maxDepth,directory, etc.). -
Check the
./resultdirectory for the downloaded website.
urls: An array of URLs to scrape.urlFilter: A function to filter URLs. The example filters URLs that start with the specifiedwebsiteUrl.recursive: Iftrue, the scraper will follow links recursively.maxDepth: Maximum recursion depth.prettifyUrls: Iftrue, URLs will be prettified.filenameGenerator: File naming strategy, set to'bySiteStructure'in the example.directory: Output directory for the downloaded website.
- Bahrul-Rozak for making an amazing project
- website-scraper for providing an easy-to-use web scraping library.
Happy Scrapping! 🕸️