私はしばらくの間この基本的な問題に問題を抱えていましたが、何が問題なのかわかりませんでした。次のコードを実行したときに受け取ったエラーは次のとおりです。
AttributeError: 'list' object has no attribute 'find'
コードは次のとおりです。
import xml.etree.ElementTree as ET
import requests
r = requests.get('http://www.11alive.com/rss/local/3/10.xml')
root = ET.fromstring(r.text.encode('utf-8'))
channel = root.find('channel')
items = channel.findall('item')
news = []
for i in range(3):
news.append(items.find('title').text)
news.append(items.find('link').text)
print news