Jun-10-2017, 03:05 AM
I'm trying to extract and display data from an API. I'm using a purpose-built wrapper that utilizes SQLAlchemy, which I have installed. But instead of getting the actual data, the script I wrote gives me a series of memory addresses. Do I need to do a database setup or something for the program to show me the actual data?
My code:
My code:
from cassiopeia import riotapi riotapi.set_region("NA") riotapi.set_api_key("********************") summoner = riotapi.get_summoner_by_name("KBingo") championlist = riotapi.get_champions() print(summoner.name) print(championlist)Output:
== RESTART: C:\Program Files (x86)\Python36-32\LoL masteries by summoner.py == KBingo [<cassiopeia.type.core.staticdata.Champion object at 0x050C90B0>, <cassiopeia.type.core.staticdata.Champion object at 0x050C90D0>, <cassiopeia.type.core.staticdata.Champion object at 0x049ADDF0>, <cassiopeia.type.core.staticdata.Champion object at 0x049ADD50>,etc.