This script perform web scraping using Puppeteer and expose the scraped data through an HTTP endpoint using Express. It's a simple tool that allows you to retrieve specific data from a website and access it by making HTTP requests.
- Clone this repository to your local machine:
git clone https://github.com/TambuDT/scraperiliad.git
- Install the required dependencies:
npm install
- Start the server:
npm start
- Open your web browser or use tools like cURL or Postman to make GET requests to:
http://localhost:3000/scrape?username=YOUR-USERNAME&password=YOUR-PASSWORD
Replace YOUR-USERNAME and YOUR-PASSWORD with appropriate values. This will initiate the web scraping process and return the scraped data as a JSON response.