I keep getting "AttributeError: 'str' object has no attribute ...
www.reddit.com › r › learnpythonThe get_time () function works great and appends all of the times from the html to the time list. When I call get_description, it gives me "AttributeError: 'str' object has no attribute 'text'". AttributeError Traceback (most recent call last) <ipython-input-11-0bbce6361d28> in <module> () 46 47 ---> 48 get_prediction () <ipython-input-11-0bbce6361d28> in get_prediction () 26 27 for x in prediction: ---> 28 description = x.text 29 prediction.append (description) 30 AttributeError: 'str' ...