main.py 263 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 from typing import Optional from fastapi import FastAPI import daangn_crawl # uvicorn main:app --reload app = FastAPI() @app.get("/daangn/{item}") def read_item(item: str, q: Optional[str] = None): crawl_json = daangn_crawl.crawl(item) return crawl_json