Change url for fetch image
This commit is contained in:
parent
83ebf548f5
commit
c19d301119
|
@ -1,7 +1,11 @@
|
|||
import requests
|
||||
from dotenv import load_dotenv
|
||||
import os
|
||||
|
||||
load_dotenv()
|
||||
|
||||
def fetch_image():
|
||||
api_url = "https://st2.depositphotos.com/22162388/50231/i/450/depositphotos_502316854-stock-photo-api-application-programming-interface-function.jpg" # Replace this with the actual API URL
|
||||
api_url = os.getenv("IMG_HOST_URL")
|
||||
|
||||
try:
|
||||
response = requests.get(api_url)
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
requests
|
||||
python-dotenv
|
Loading…
Reference in New Issue