def get_user_uk(cookie, tokens):
url = '<STR_LIT>'<EOL>req = net.urlopen(url, headers={'<STR_LIT>': cookie.header_output()})<EOL>if req:<EOL><INDENT>content = req.data.decode()<EOL>match = re.findall('<STR_LIT>', content)<EOL>if len(match) == <NUM_LIT:1>:<EOL><INDENT>return match[<NUM_LIT:0>]<EOL><DEDENT>else:<EOL><INDENT>logger.warn('<STR_LIT>' % url)<EOL><DEDENT><DEDENT>return None<EOL>
获取用户的uk