-
Notifications
You must be signed in to change notification settings - Fork 229
Closed
Labels
Description
Reporting a problem with a lesson, please try to provide us with the following information:
- The full title of the lesson: ...\python-lessons9\html-to-pretty-print.py
- The system you are using (Mac, Linux, Windows): Windows
- Version numbers of the relevant software you are using: Python 3.8.2150.0 (64bit)
- The exact steps you took that caused the problem: For Lesson 9, I did the exercise from the zip archive after I had managed to recreate all the previous exercises on my own and I simply couldn't get on with Lesson 9. Unfortunately, the model solution also does not help in the current Python version.
Command output (in case that the image cannot be seen:
Traceback (most recent call last):
File "html-to-pretty-print.py", line 8, in
text = obo.webPageToText(url)
File "C:\Gm\GmPython\python-lessons9\python-lessons9\obo.py", line 112, in webPageToText
text = stripTags(html).lower()
File "C:\Gm\GmPython\python-lessons9\python-lessons9\obo.py", line 57, in stripTags
startLoc = pageContents.find("")
TypeError: argument should be integer or bytes-like object, not 'str'
