-
-
Save kagermanov27/e5bc0e373fa6b8dbd9883870c4159db7 to your computer and use it in GitHub Desktop.
This file contains 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 add import Download, Query | |
app = FastAPI() | |
@app.get("/") | |
def read_root(): | |
return {"Hello": "World"} | |
@app.post("/add/") | |
def create_query(query: Query): | |
## Create unique links | |
serpapi = Download(query) | |
serpapi.download_all_images() | |
return {"status": "Complete"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment