Только скачать нужно chromedriver и положить в папку с программой.
from bs4 import BeautifulSoup
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.chrome.options import Options
options = Options()
options.add_argument('--headless')
driver = webdriver.Chrome(chrome_options=options)
driver.get('http://www.patorjk.com/software/taag/#p=display&f=Graffiti&t=Type%20Something%20')
html = driver.find_element_by_tag_name('html')
with open('page.html', 'w+',encoding='utf-8') as f:
f.write(driver.page_source)
f.close()
driver.close()
soup = BeautifulSoup(open("page.html",encoding='utf-8'), "html.parser")
items = soup.findAll('pre',class_ = 'fig')
print(items)
Результат
[<pre class="fig" contenteditable="true" id="taag_output_text" style="float:left;">___________ _________ __ .__ .__
\__ ___/__.__.______ ____ / _____/ ____ _____ _____/ |_| |__ |__| ____ ____
| | < | |\____ \_/ __ \ \_____ \ / _ \ / \_/ __ \ __\ | \| |/ \ / ___\
| | \___ || |_> > ___/ / ( <_> ) Y Y \ ___/| | | Y \ | | \/ /_/ >
|____| / ____|| __/ \___ > /_______ /\____/|__|_| /\___ >__| |___| /__|___| /\___ /
\/ |__| \/ \/ \/ \/ \/ \//_____/ </pre>]
PS D:\Python\classtest>