import requests
import re

url = "https://www.metmuseum.org/art/collection/search/some-object-id"
response = requests.get(url)
html = response.text

# Hunting for a title inside raw HTML with a regular expression —
# this is exactly as fragile as it sounds.
title_match = re.search(r'<h1[^>]*class="artwork-title"[^>]*>(.*?)</h1>', html)
title = title_match.group(1) if title_match else "UNKNOWN"

print(title)