<s> from urllib . request import Request , urlopen <EOL> import json <EOL> uri = '<STR_LIT>' <EOL> def get_content ( uri ) : <EOL> req = Request ( uri ) <EOL> req . add_header ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> req . add_header ( '<STR_LIT>' , '<STR_LIT:application/json>' ) <EOL> response = urlopen ( req ) <EOL> responseString = response . read ( ) . decode ( "<STR_LIT:utf-8>" ) <EOL> response . close ( ) <EOL> return responseString <EOL> jsonObject = json . loads ( get_content ( uri ) ) <EOL> building_names = [ ] <EOL> buildings = jsonObject [ "<STR_LIT>" ] [ "<STR_LIT>" ] <EOL> for building in buildings : <EOL> building_names . append ( building [ "<STR_LIT:name>" ] ) <EOL> for building_name in building_names : <EOL> building_uri = uri + "<STR_LIT:/>" + building_name <EOL> print ( building_uri ) </s>
