naukri-job-scraper-mcp

naukri-job-scraper-mcp

Enables automated scraping of Naukri.com job listings, extracting structured data such as job titles, companies, salaries, locations, skills, and descriptions for use in AI-driven workflows.

Category
访问服务器

README

🚀 Naukri.com Job Scraper for Apify

Apify Actor Python 3.11+ License: MIT

Professional job scraper for Naukri.com - Extract comprehensive job listings with advanced browser automation and residential proxies. Perfect for AI agents, ChatGPT plugins, Claude integrations, and MCP-powered automation workflows! 🤖

🎯 Features

✨ Comprehensive Data Extraction

  • Job ID, title, company name
  • Salary ranges and compensation
  • Experience requirements (min/max years)
  • Location and workplace details
  • Skills and technologies required
  • Full job descriptions
  • Direct job URLs

🔒 Anti-Bot Protection

  • Camoufox browser automation with realistic fingerprinting
  • Residential proxy support via Apify
  • Human-like behavior simulation
  • GeoIP matching for proxy authenticity

🛡️ Production-Ready

  • Robust error handling with retries
  • Graceful degradation (null for missing fields)
  • Real-time data pushing to Apify dataset
  • Comprehensive logging and monitoring

🤖 AI-Friendly

  • Built for Claude, ChatGPT, and MCP agents
  • Clean, structured JSON output
  • Timestamp tracking for data freshness
  • Easy integration with AI workflows

📊 Output Schema

Each job listing includes the following fields:

Field Type Description Example
jobId string Unique job identifier "290524001234"
title string Job title "Senior Software Engineer"
companyName string Company name "Tech Corp India"
salary string|null Salary information "15-25 Lacs P.A."
experienceMin integer|null Minimum experience (years) 3
experienceMax integer|null Maximum experience (years) 5
location string|null Job location "Bangalore, Pune"
skills array|null Required skills ["Python", "AWS", "Docker"]
jobDescription string|null Job description "We are looking for..."
jobUrl string|null Direct link to job posting "https://www.naukri.com/..."
scrapedAt string Scraping timestamp (ISO 8601) "2024-08-21T10:30:00.000Z"

🚀 Quick Start

Running on Apify Platform

  1. Create a new Actor from this repository

  2. Configure input parameters:

    • searchQuery: Job title or keywords (e.g., "software engineer")
    • location: City name (e.g., "bangalore") or leave empty for all locations
    • maxResults: Number of jobs to scrape (1-500)
  3. Run the Actor and access results from the dataset

Input Example

{
  "searchQuery": "data scientist",
  "location": "bangalore",
  "maxResults": 100
}

Using Prefills

We provide convenient prefills for common searches:

  • 🔧 Software Engineer - Bangalore
  • 📊 Data Scientist - All India
  • 📱 Product Manager - Mumbai
  • ⚙️ DevOps Engineer - Pune
  • 💻 Full Stack Developer - Hyderabad

🤖 AI Integration Examples

Claude Desktop (MCP)

Use this actor directly from Claude Desktop via the Apify MCP server:

{
  "apify": {
    "actorId": "your-actor-id",
    "input": {
      "searchQuery": "machine learning engineer",
      "location": "bangalore",
      "maxResults": 50
    }
  }
}

ChatGPT Actions

Integrate with ChatGPT using Apify's API:

openapi: 3.0.0
paths:
  /v2/acts/{actorId}/runs:
    post:
      summary: Scrape Naukri.com jobs
      parameters:
        - name: actorId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                searchQuery:
                  type: string
                location:
                  type: string
                maxResults:
                  type: integer

Python Integration

from apify_client import ApifyClient

client = ApifyClient('your-apify-token')

# Start the actor
run = client.actor('your-actor-id').call(run_input={
    'searchQuery': 'python developer',
    'location': 'mumbai',
    'maxResults': 100
})

# Fetch results
dataset_items = client.dataset(run['defaultDatasetId']).list_items().items

for job in dataset_items:
    print(f"{job['title']} at {job['companyName']}")
    print(f"Location: {job['location']}")
    print(f"Salary: {job['salary']}")
    print(f"Skills: {', '.join(job['skills'] or [])}")
    print(f"URL: {job['jobUrl']}\n")

Node.js Integration

import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: 'your-apify-token' });

// Start the actor
const run = await client.actor('your-actor-id').call({
    searchQuery: 'react developer',
    location: 'bangalore',
    maxResults: 50
});

// Fetch results
const { items } = await client.dataset(run.defaultDatasetId).listItems();

items.forEach(job => {
    console.log(`${job.title} at ${job.companyName}`);
    console.log(`Location: ${job.location}`);
    console.log(`Skills: ${job.skills?.join(', ')}`);
});

🔧 Local Development

Prerequisites

  • Python 3.11+
  • Docker (for containerized testing)

Setup

# Clone the repository
git clone <your-repo-url>
cd naukri-job-scraper-mcp

# Install dependencies
pip install -r requirements.txt

# Set environment variables
export APIFY_TOKEN=your_apify_token

# Run locally
python -m src

Testing with Apify CLI

# Install Apify CLI
npm install -g apify-cli

# Login to Apify
apify login

# Run the actor locally
apify run

📋 Technical Details

Technology Stack

  • Language: Python 3.11
  • Browser Automation: Camoufox (Firefox-based stealth browser)
  • HTML Parsing: BeautifulSoup4 + lxml
  • Platform: Apify Actor Framework
  • Proxy: Apify Residential Proxies

Architecture

┌─────────────────┐
│  Apify Platform │
└────────┬────────┘
         │
    ┌────▼─────┐
    │   Actor  │
    └────┬─────┘
         │
    ┌────▼────────┐
    │  Camoufox   │ ◄──── Residential Proxy
    │  Browser    │
    └────┬────────┘
         │
    ┌────▼──────────┐
    │  Naukri.com   │
    │  (Next.js SPA)│
    └────┬──────────┘
         │
    ┌────▼─────────┐
    │  BeautifulSoup│
    │  Parser       │
    └────┬─────────┘
         │
    ┌────▼─────────┐
    │ Apify Dataset│
    └──────────────┘

Error Handling

  • Retry Logic: 3 attempts with exponential backoff
  • Graceful Failures: Returns null for missing fields instead of crashing
  • Proxy Fallback: Continues without proxy if residential proxy fails
  • Logging: Comprehensive error logging for debugging

🌟 Use Cases

  • 🎯 Job Market Research: Analyze salary trends and skill demands
  • 🤖 AI-Powered Job Matching: Feed data to LLMs for personalized recommendations
  • 📈 Recruitment Analytics: Track hiring trends and company activity
  • 🔔 Job Alerts: Build automated notification systems
  • 💼 Career Planning: Understand experience requirements across industries

🛠️ Customization

Modify Search Parameters

Edit src/main.py to add custom filters:

# Add custom filters
experience_filter = actor_input.get('experienceRange', '')
salary_filter = actor_input.get('salaryMin', '')

Extend Data Extraction

Edit src/parser.py to extract additional fields:

# Add new field extraction
posted_date = _clean_text(job_card.select_one('.posted-date').get_text())
job_data['postedDate'] = posted_date

📝 License

MIT License - feel free to use this actor for commercial or personal projects.

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

💬 Support

  • 📧 Issues: Open an issue on GitHub
  • 💡 Feature Requests: Submit via GitHub Issues
  • 📚 Documentation: Apify Documentation

🎉 Built With AI

This actor was built with assistance from Claude AI and is optimized for AI agent workflows, MCP integrations, and ChatGPT automation. Perfect for building intelligent job search assistants! 🚀


Made with ❤️ for the AI automation community

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选