def list_share(cookie, tokens, uk, page=1):
 num = 100
 start = (100 * (page - 1))
 url = ''.join([const.PAN_URL, 'pcloud/feed/getsharelist?', '&t=', util.timestamp(), '&categor=0&auth_type=1&request_location=share_home', '&start=', str(start), '&limit=', str(num), '&query_uk=', str(uk), '&channel=chunlei&clienttype=0&web=1', '&bdstoken=', tokens['bdstoken']])
 req = net.urlopen(url, headers={'Cookie': cookie.header_output(), 'Referer': const.SHARE_REFERER})
 if req:
  content = req.data
  return json.loads(content.decode())
 else:
  return None

def list_share ( cookie , tokens , uk , page = 1 ) : num = 100 start = ( 100 * ( page - 1 ) ) url = '' . join ( [ const . PAN_URL , 'pcloud/feed/getsharelist?' , '&t=' , util . timestamp ( ) , '&categor=0&auth_type=1&request_location=share_home' , '&start=' , str ( start ) , '&limit=' , str ( num ) , '&query_uk=' , str ( uk ) , '&channel=chunlei&clienttype=0&web=1' , '&bdstoken=' , tokens [ 'bdstoken' ] ] ) req = net . urlopen ( url , headers = { 'Cookie' : cookie . header_output ( ) , 'Referer' : const . SHARE_REFERER } ) if req : content = req . data return json . loads ( content . decode ( ) ) else : return None
uk - user key page - 页数 .