def get_BAIDUID():
url = '<STR_LIT>'.join([<EOL>const.PASSPORT_URL,<EOL>'<STR_LIT>',<EOL>'<STR_LIT>', util.timestamp(),<EOL>'<STR_LIT>',<EOL>])<EOL>req = net.urlopen(url, headers={'<STR_LIT>': '<STR_LIT>'})<EOL>if req:<EOL><INDENT>return req.headers.get_all('<STR_LIT>')<EOL><DEDENT>else:<EOL><INDENT>return None<EOL><DEDENT>
获取一个cookie - BAIDUID.

    这里, 我们访问百度首页, 返回的response header里面有我们需要的cookie