I received the error: AttributeError: 'set' object has no attribute 'items' while trying to get info via twitch API.
import requests
ENDPOINT = 'https://api.twitch.tv/kraken/clips/top?channel=Twitch&period=month&trending=true&limit=1'
HEAD = {
'Accept: application/vnd.twitchtv.v5+json',
'Client-ID: HIDDEN',
}
response = requests.get(url=ENDPOINT, headers=HEAD)
print (response.text)