How to parse XML by using python
<p>I want to parse this url to get the text of \Roman\ </p>

<p><a href="http://jlp.yahooapis.jp/FuriganaService/V1/furigana?appid=dj0zaiZpPU5TV0Zwcm1vaFpIcCZzPWNvbnN1bWVyc2VjcmV0Jng9YTk-&amp;grade=1&amp;sentence=%E7%A7%81%E3%81%AF%E5%AD%A6%E7%94%9F%E3%81%A7%E3%81%99" rel="nofollow">http://jlp.yahooapis.jp/FuriganaService/V1/furigana?appid=dj0zaiZpPU5TV0Zwcm1vaFpIcCZzPWNvbnN1bWVyc2VjcmV0Jng9YTk-&amp;grade=1&amp;sentence=ç§ã¯å­¦çã§ã</a></p>

<p><a href="http://i.stack.imgur.com/9CHnt.png" rel="nofollow"><img src="http://i.stack.imgur.com/9CHnt.png" alt="enter image description here"></a></p>

<pre><code>import urllib
import xml.etree.ElementTree as ET

url = 'http://jlp.yahooapis.jp/FuriganaService/V1/furigana?appid=dj0zaiZpPU5TV0Zwcm1vaFpIcCZzPWNvbnN1bWVyc2VjcmV0Jng9YTk-&amp;grade=1&amp;sentence=ç§ã¯å­¦çã§ã'
uh = urllib.urlopen(url)
data = uh.read()
tree = ET.fromstring(data)
counts = tree.findall('.//Word')

for count in counts         
    print count.get('Roman')
</code></pre>

<p>But it didn't work.</p>

<p>Try <code>tree.findall('.//{urn:yahoo:jp:jlp:FuriganaService}Word')</code> . It seems you need to specify the namespace too .</p>

python xml parsing