thomaswilson-sveltekit/scripts/sunrise_sunset_images
2023-01-24 20:41:04 +00:00
..
data sunrise-sunset: Create /api/sunrise-sunset-photo endpoint 2023-01-24 20:41:04 +00:00
.gitignore sunrise-sunet: commit basic data and scraping code 2023-01-23 20:26:50 +00:00
create_day_photo_mapping.py sunrise-sunset: Create /api/sunrise-sunset-photo endpoint 2023-01-24 20:41:04 +00:00
get_sunrise_images.py sunrise-sunset: Create /api/sunrise-sunset-photo endpoint 2023-01-24 20:41:04 +00:00
photos.py sunrise-sunset: Create /api/sunrise-sunset-photo endpoint 2023-01-24 20:41:04 +00:00
readme.md sunrise-sunet: commit basic data and scraping code 2023-01-23 20:26:50 +00:00
unsplash_api_gateway.py sunrise-sunet: commit basic data and scraping code 2023-01-23 20:26:50 +00:00
unsplash_search_results.py sunrise-sunset: Create /api/sunrise-sunset-photo endpoint 2023-01-24 20:41:04 +00:00
utils.py sunrise-sunet: commit basic data and scraping code 2023-01-23 20:26:50 +00:00

Sunrise or Sunset Images

You need to create an Unsplash developer account with API key (link).

To authenticate calls to the Unsplash API, you need to create a file called environment_variables.py to store your access and secret key:

# environment_variables.py
UNSPLASH_ACCESS_KEY = "access_key"
UNSPLASH_SECRET_KEY="secret_key"