I have written a python code for web scraping and its seems everything fine but when I run this code I receive an "AttributeError: \'NoneType\' object has no attribute