-
-
Save kagermanov27/a17fd41037cdeab2abfc8d7b4e0f358a 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