title: TypeError: byte indices must be integers
body: <p>I want to get the top artists from a specific country from the last fm API in JSON and save the name and url in the <code>name</code> and <code>url</code> variables. But it always appears "TypeError: byte indices must be integers". Do you know where is the issue?</p>
  
  <p>Working example:</p>
  
  <pre><code>import requests
  
  api_key = "xxx"     
  
  
  for i in range(2,5):
  
      artists = requests.get('http://ws.audioscrobbler.com/2.0/?method=geo.gettopartists&amp;country=spain&amp;format=json&amp;page='+str(i)+'&amp;api_key='+api_key)
      for artist in artists:
  
          print(artist)
  
          #name = artist['topartists']['artist']['name']
          #url  = artist['topartists']['artist']['url']
  </code></pre>