Skip to content

Latest commit

ย 

History

History
82 lines (59 loc) ยท 1.5 KB

File metadata and controls

82 lines (59 loc) ยท 1.5 KB

๐Ÿ› ๏ธ Job Scraper API

A simple FastAPI-based API that scrapes job postings from RemoteOK and returns them as JSON. Designed for easy local development and extensibility.


๐Ÿš€ Features

  • Scrapes job postings from RemoteOK
  • REST API endpoints for health check and job search
  • CORS enabled for frontend integration
  • Ready for deployment (e.g., Vercel, serverless)

๐Ÿงฐ Tech Stack

  • Python 3.9+
  • FastAPI
  • BeautifulSoup4 (for HTML parsing)
  • Requests (for HTTP requests)
  • Uvicorn (for local server)

โš™๏ธ Setup Instructions

  1. Clone the repository:

    git clone <your-repo-url>
    cd job_scraper_api
  2. Install dependencies:

    pip install -r requirements.txt
  3. (Optional) Set up a virtual environment:

    python -m venv venv
    .\venv\Scripts\activate  # On Windows
    source venv/bin/activate  # On Linux/Mac

โ–ถ๏ธ How to Run Locally

uvicorn main:app --reload

The API will be available at http://127.0.0.1:8000


๐Ÿ“š Example API Usage

Health Check

GET /api/health
Response: { "status": "healthy" }

Search for Jobs

GET /api/jobs?q=python
Response: { "jobs": [ { "title": ..., "company": ..., "link": ... }, ... ] }

๐Ÿ“ฆ Project Structure

  • main.py - FastAPI app entry point
  • api/routes.py - API endpoints
  • scraper/__init__.py - Web scraping logic
  • requirements.txt - Python dependencies

๐Ÿ“ License

MIT