title: How to convert a beautifulsoup text to list or an iterable
body: <p>How can I convert <code>beautifulsoup</code> text to a <code>list</code> or a <code>dictionary</code>?</p>
  
  <p>I want to get an iterable list from the information I got from the beautifulsoup scraping. For example, now I scraped a quote website and got text, then I want to put this text quote into a list so that I can iterate through them. </p>
  
  <pre><code>from bs4 import BeautifulSoup
  import requests
  
  r = requests.get("http://www.great-quotes.com/quotes/category/Motivational")
  data = r.text
  soup = BeautifulSoup(data, 'html.parser')
  # print(soup.prettify())
  
  for quote in soup.find_all("span", class_="edit_body"):
      quotes = list(quotes)  # This gets me an error, name quote not defind
      print(quotes)
  
  # This is is how I want my scraped quotes to look like
  
  new_quote = ['quote', 'quote', 'quote']  # I want it to be in a list. 
  </code></pre>