A NodeJS scraper that extracts job post details from a LinkedIn job page.
- Node.js
- Docker and Docker Compose
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Clone this repository
- Navigate to the project directory (Eg.
cd linkedin-scraper
) - Install the dependencies:
npm i
Build and run the Docker container: docker compose up -d
- To run the application in development mode:
npm start
The scraper exposes one API endpoint:
- Description: Fetches job post details from LinkedIn
- Parameters:
id
: The job ID from the LinkedIn job URL (e.g.,https://www.linkedin.com/jobs/view/<JOB_ID>
)
Example request:
curl -X GET "http://localhost:3000/linkedin/job/<JOB_ID>"
To run the tests, use the following command: npm run test
- Node.js
- Express.js
- Axios
- Cheerio
- Docker
- Docker Compose