title: parsing iPhone App Store RSS XML
body: <p>I am having a tough time parsing App Store xml to pull out the rating(s) for an appID.(appID is 298307011)</p>
  
  <p>XML: <a href="https://itunes.apple.com/us/rss/customerreviews/id=298307011/xml" rel="nofollow noreferrer">https://itunes.apple.com/us/rss/customerreviews/id=298307011/xml</a></p>
  
  <p>The rating I am trying to pull out for each of the app review entry is . The tree structure is root > entry -> im:rating</p>
  
  <p>My code is not fetching the rating text.</p>
  
  <pre><code>import urllib2
  import xml.etree.ElementTree as ET
  url = 'https://itunes.apple.com/us/rss/customerreviews/id=298307011/xml'
  
  xml_string = urllib2.urlopen(url).read()
  root = ET.fromstring(xml_string)
  
  
  for rating in root.iter('im:rating'):
      print rating.text
  </code></pre>