Update test.py

This commit is contained in:
MattTheTekie 2023-10-06 12:44:38 -04:00 committed by GitHub
commit c117fd5b61
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -64,8 +64,8 @@ def blogquest():
html_content = html_file.read()
title_start = html_content.find('<h1>') + len('<h1>')
title_end = html_content.find('</h1>')
author_start = html_content.find('<h2>') + len('<h2>')
author_end = html_content.find('</h2>')
author_start = html_content.find('<!0') + len('--->')
author_end = html_content.find('--->')
# Extract the blog title
blog_title = html_content[title_start:title_end]