Какая проблема?

import os import requests from bs4 import BeautifulSoup

descargar_pack_imagenes_gardevoir_hit

# Parsear HTML con BeautifulSoup4 soup = BeautifulSoup(respuesta.text, 'html.parser')

# Encontrar enlaces a imágenes imagenes = [] for enlace in soup.find_all('a'): href = enlace.get('href') if href and href.endswith(('.jpg', '.png', '.gif', '.bmp', '.jpeg')): imagenes.append(href)