<s> from urllib . request import Request , urlopen <EOL> import json <EOL> req = Request ( '<STR_LIT>' ) <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> jsonObject = json . loads ( responseString ) <EOL> print ( json . dumps ( jsonObject , sort_keys = True , indent = <NUM_LIT:4> ) ) <EOL> response . close ( ) </s>
