title: Iterating over a dictionary in python and stripping white space
body: <p>I am working with the web scraping framework Scrapy and I am wondering how do I iterate over all of the scraped items which seem to be in a dictionary and strip the white space from each one.</p>
  <p>Here is the code I have been playing with in my item pipeline:</p>
  <pre><code>for info in item:
     info[info].lstrip()
  </code></pre>
  <p>But this code does not work, because I cannot select items individually. So I tried to do this:</p>
  <pre><code>for key, value item.items():
     value[1].lstrip()
  </code></pre>
  <p>This second method works to a degree, but the problem is that I have no idea how then to loop over all of the values.</p>
  <p>I know this is probably such an easy fix, but I cannot seem to find it.</p>