Python NASA CLI App #2 - Fetching Images and Saving to Filesystem

Описание к видео Python NASA CLI App #2 - Fetching Images and Saving to Filesystem

In this video, we will create a Typer command to fetch images for a given date from the NASA APOD API. Users can pass in the date they want to fetch images for, or else the command will default to the current date.

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.

We will also configure a command-line flag that allows users to save the image to a directory on their local filesystem

📌 𝗖𝗵𝗮𝗽𝘁𝗲𝗿𝘀:
00:00 Intro
00:24 NASA API Key & Fields
03:07 Fetching NASA Images
08:38 Saving Images to Filesystem

☕️ 𝗕𝘂𝘆 𝗺𝗲 𝗮 𝗰𝗼𝗳𝗳𝗲𝗲:
To support the channel and encourage new videos, please consider buying me a coffee here:
https://ko-fi.com/bugbytes

▶️ Full Playlist:
   • Building a Python NASA Image CLI App  

𝗦𝗼𝗰𝗶𝗮𝗹 𝗠𝗲𝗱𝗶𝗮:
📖 Blog: https://www.bugbytes.io/posts/nasa-co...
👾 Github: https://github.com/bugbytes-io/nasa-c...
🐦 Twitter:   / bugbytesio  

📚 𝗙𝘂𝗿𝘁𝗵𝗲𝗿 𝗿𝗲𝗮𝗱𝗶𝗻𝗴 𝗮𝗻𝗱 𝗶𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻:
Typer: https://typer.tiangolo.com/
NASA API: https://api.nasa.gov/
Sample API response: https://api.nasa.gov/planetary/apod?a...

#typer #python #cli #requests

Комментарии

Информация по комментариям в разработке