linkedin-jobs-scapper
Version:
advanced node.js package for scrapping jobs from LinkedIn
78 lines (60 loc) • 2.6 kB
Markdown
A powerful Node.js package for scraping job listings from LinkedIn.
```bash
npm install linkedin-jobs-scapper
```
```javascript
const LinkedInScraper = require('linkedin-jobs-scapper');
// Example usage
async function main() {
try {
const scraper = new LinkedInScraper();
const jobs = await scraper.scrapeJobs({
keyword: "software engineer", // Job title, keywords, or company
location: "India", // Location to search in
dateSincePosted: "past Week", // Options: "24h", "past Week", "past Month", etc.
jobType: "full time", // Job type
remoteFilter: "remote", // Remote work options
salary: "1000", // Expected salary
experienceLevel: "entry level", // Experience level
limit: "1", // Number of jobs to fetch
sortBy: "recent", // Sort results by (recent, relevant)
page: "1" // Page number for pagination
});
console.log(jobs);
} catch (error) {
console.error('Error:', error);
}
}
main();
```
- Search jobs by keyword and location
- Filter by date posted
- Filter by job type
- Filter by remote work options
- Filter by salary expectations
- Filter by experience level
- Pagination support
- Sort results by relevance or date
- Get detailed job information including title, company, location, and description
Scrapes LinkedIn jobs based on the provided options.
- `keyword` (string): Search keyword for jobs (job title, keywords, or company)
- `location` (string): Location to search jobs in (e.g., "India", "United States")
- `dateSincePosted` (string): Filter for date posted (e.g., "24h", "past Week", "past Month")
- `jobType` (string): Type of job ("full time", "part time", "contract", etc.)
- `remoteFilter` (string): Remote work filter ("remote", "on-site", "hybrid")
- `salary` (string): Expected salary (e.g., "1000")
- `experienceLevel` (string): Required experience level (e.g., "entry level", "mid-senior level", "director")
- `limit` (string): Number of jobs to fetch per request
- `sortBy` (string): Sort results by ("recent", "relevant")
- `page` (string): Page number for pagination
## License
MIT
## Contributing
Contributions, issues, and feature requests are welcome!