Tumgik
#Python: urllib.error.HTTPError: HTTP Error 404: Not Found
winmundo · 2 years
Text
Python: urllib.error.HTTPError: HTTP Error 404: Not Found
So apparently the default display number of questions per page is 50 so the range you defined in the loop goes out of the available number of pages with 50 questions per page. The range should be adapted to be within the number of total pages with 50 questions each.
This code will catch the 404 error which was the reason you got an error and ignore it just in case you go out of the range.
0 notes