I am relatively new to python programming and have written this code to scrape images of website and save it on my computer, although this code seems to work but in the end I am getting a error
if len(nametemp)== 0 or nametemp== None:
TypeError: object of type 'NoneType' has no len()
can someone please tell me what I am doing wrong?