code: def get_user_uk(cookie, tokens):
      '''获取用户的uk'''
      url = 'http://yun.baidu.com'
      req = net.urlopen(url, headers={'Cookie': cookie.header_output()})
      if req:
          content = req.data.decode()
          match = re.findall('/share/home\?uk=(\d+)" target=', content)
          if len(match) == 1:
              return match[0]
          else:
              logger.warn('pcs.get_user_uk(), failed to parse uk, %s' % url)
      return Nonf get_user_uk(cookie, tokens):
      '''获取用户的uk'''
      url = 'http://yun.baidu.com'
      req = net.urlopen(url, headers={'Cookie': cookie.header_output()})
      if req:
          content = req.data.decode()
          match = re.findall('/share/home\?uk=(\d+)" target=', content)
          if len(match) == 1:
              return match[0]
          else:
              logger.warn('pcs.get_user_uk(), failed to parse uk, %s' % url)
      return None
docs: 获取用户的uk