Otherwise, the open will fail with a "directory does not exist" error message.
Thanks to MH 2021 for including a puzzle with a '/' in its name to
exercise this bug.
"""
import boto3
from boto3.dynamodb.conditions import Key
+import re
website = "https://halibut.cworth.org/"
#change this if we're using AWS or some other subdomain instead
'\n',
'</body>\n',
'</html>\n']
- underscored = "_".join(name.split())
+ # Replace all spaces and slashes in the name with underscores
+ underscored = re.sub(r'[ /]', '_', name)
file = "{}.html".format(underscored)
f = open(file, "w")
for line in html: