mirror of
https://github.com/Bunsly/JobSpy.git
synced 2026-03-05 03:54:31 -08:00
feat: add IndeedScraper
This commit is contained in:
Binary file not shown.
@@ -1,3 +1,16 @@
|
||||
from fastapi import APIRouter
|
||||
|
||||
from api.core.scrapers.indeed import IndeedScraper
|
||||
from api.core.scrapers import ScraperInput
|
||||
from api.core.jobs import JobResponse
|
||||
|
||||
router = APIRouter(prefix="/jobs")
|
||||
|
||||
|
||||
@router.get("/")
|
||||
async def scrape_jobs(search_term: str, location: str, page: int = None):
|
||||
scraper = IndeedScraper()
|
||||
|
||||
scraper_input = ScraperInput(search_term=search_term, location=location, page=page)
|
||||
job_response = scraper.scrape(scraper_input)
|
||||
return job_response
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user