Get the data of a particular query from NASA archives
(query: str)
| 30 | |
| 31 | |
| 32 | def get_archive_data(query: str) -> dict: |
| 33 | """ |
| 34 | Get the data of a particular query from NASA archives |
| 35 | """ |
| 36 | url = "https://images-api.nasa.gov/search" |
| 37 | return httpx.get(url, params={"q": query}, timeout=10).json() |
| 38 | |
| 39 | |
| 40 | if __name__ == "__main__": |
no test coverage detected