#ChatGpt writes it better than me, but does it *feel* how funny this code is?
import requests
from bs4 import BeautifulSoup
url = "https://stackoverflow.com/questions/12345678/example-python-code"
html = requests.get(url).text
soup = BeautifulSoup(html, "html.parser")
code_blocks = soup.find_all("pre", {"class": "python"})
code = code_blocks[0].text
with open("code.py", "w") as f:
f.write(code)
!pip install code.py