Update test.py

This commit is contained in:
MattTheTekie 2023-10-06 11:31:37 -04:00 committed by GitHub
commit 28b97da190
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -79,7 +79,7 @@ def blogquest():
date_end = html_content.find('</div>', date_start)
# Use the default date if no date is found
blog_date = '01/01/2023' if date_start == -1 or date_end == -1 else html_content[date_start:date_end]
# blog_date = '01/01/2023' if date_start == -1 or date_end == -1 else html_content[date_start:date_end]
# Extract the blog title
blog_title = html_content[title_start:title_end]