Skip to content

Commit

Permalink
v1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
SooperMango authored May 29, 2024
1 parent c5e9e59 commit 0dfffe7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion random-img-gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
style = Style(theme="sandstone")

def display_image(category):
url = f'https://api.unsplash.com/photos/random?query={category}&orientation=landscape&client_id=kQI4yDmON9IZj74e7jI2U42kwSXanb_gQAp_mpEjUAs'
url = f'https://api.unsplash.com/photos/random?query={category}&orientation=landscape&client_id=YOUR_ACCESS_KEY'
data = requests.get(url).json()
img_data = requests.get(data['urls']['regular']).content

Expand Down

0 comments on commit 0dfffe7

Please sign in to comment.