Something went wrong. Try again.
This repository has no description
Something went wrong. Try again.
560 B · 23 lines
Python
at main
123456789101112131415161718192021222324from typing import Annotated
from fastapi import ( APIRouter, Depends,)from pydantic import HttpUrl
from src.deps import get_scraper_servicefrom src.schemas import Profilefrom src.services import ScraperServicefrom src.utils import verify_admin_key
router = APIRouter(dependencies=[Depends(verify_admin_key)])
@router.get("/", tags=["Scraper"])async def scrape_linkedin_profile( url: HttpUrl, *, scraper_service: Annotated[ScraperService, Depends(get_scraper_service)],) -> Profile: return await scraper_service.scrape(url)