Saves the image of anime character
(image_url: str, image_title: str)
| 18 | |
| 19 | |
| 20 | def save_image(image_url: str, image_title: str) -> None: |
| 21 | """ |
| 22 | Saves the image of anime character |
| 23 | """ |
| 24 | image = httpx.get(image_url, headers=headers, timeout=10) |
| 25 | with open(image_title, "wb") as file: |
| 26 | file.write(image.content) |
| 27 | |
| 28 | |
| 29 | def random_anime_character() -> tuple[str, str, str]: |
no test coverage detected