Python NASA CLI App #3 - Fetching Images Between Start & End Dates

preview_player
Показать описание
In this video, we will modify our Typer command to allow users to fetch a range of images, between a start and an end date, from the NASA APOD API. Users can optionally pass in the start date and end date they want to fetch images for, as well as specify a single date as before.

API requests will be made with the Python requests library.

We will fetch the image from NASA's API and show the image on the user's desktop, using the Pillow library.

📌 𝗖𝗵𝗮𝗽𝘁𝗲𝗿𝘀:
00:00 Intro
00:47 Typer Options: Start and End Date
01:16 Defining URL Parameters
03:38 Extracting Helper Functions
06:20 Converting Dict Response to a List
07:28 Running the Typer Command

☕️ 𝗕𝘂𝘆 𝗺𝗲 𝗮 𝗰𝗼𝗳𝗳𝗲𝗲:
To support the channel and encourage new videos, please consider buying me a coffee here:

▶️ Full Playlist:

𝗦𝗼𝗰𝗶𝗮𝗹 𝗠𝗲𝗱𝗶𝗮:

📚 𝗙𝘂𝗿𝘁𝗵𝗲𝗿 𝗿𝗲𝗮𝗱𝗶𝗻𝗴 𝗮𝗻𝗱 𝗶𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻:

#typer #python #cli #requests
Рекомендации по теме
Комментарии
Автор

thanks mate, just downloaded the package!

MichelePardini