title = soup.find("h2", class_="zm-item-title").string.encode("utf-8").replace("\n", "") AttributeError: 'NoneType' object has no attribute 'string'