Created
August 13, 2025 07:41
-
-
Save perymerdeka/3e1730c84939333b5e34711ef1edfa96 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from fastapi import FastAPI | |
| from quotes import fetch_quotes # <- ini scraper kamu dari file uotes.py | |
| app = FastAPI() | |
| @app.get("/") | |
| async def root(): | |
| return {"message": "Hello World"} | |
| @app.get("/quotes") | |
| async def get_quotes(): | |
| return {"quotes": fetch_quotes() # <- ini adalah import dari scraper kamu} | |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ini scraper nya