0
ここではガイドラインに従っていますhttps://github.com/soundcloud/soundcloud-python(Pythonリクエストを基に構築されています)、サウンドクラウドアカウント(https://developers.soundcloud.com/docs/api/reference#tracks)のすべてのトラックを一覧表示しようとしています。など劇、好き、などそのcorrespodingメトリックSoundCloud-Python AttributeError: 'ResourceList'オブジェクトには 'collection'属性がありません
# create client object with app and user credentials
client = soundcloud.Client(client_id=client_id,
client_secret=client_secret,
username=username,
password=password)
# print authenticated user's username
name = client.get('/me').username
track_count = client.get('/me').track_count
tracks = client.get('/tracks')
print name, track_count
私はprint文で値を得ることができますが、私は(例から取られた)これを実行しようとした場合
for track in tracks.collection:
print track.title
私が手このエラー:
AttributeError: 'ResourceList' object has no attribute 'collection'
これを修正する方法はありますか?おかげ