def __set_cookie(self, suv=None, snuid=None, referer=None): suv = ws_cache.get('suv') if suv is None else suv snuid = ws_cache.get('snuid') if snuid is None else snuid _headers = {'Cookie': 'SUV={};SNUID={};'.format(suv, snuid)} if referer is not None: _headers['Referer'] = referer return _headers
def __set_cookie(self, suv=None, snuid=None, referer=None): suv = ws_cache.get('suv') if suv is None else suv snuid = ws_cache.get('snuid') if snuid is None else snuid _headers = {'Cookie': 'SUV={};SNUID={};'.format(suv, snuid)} if referer is not None: _headers['Referer'] = referer return _headers
def __set_cookie(self, suv=None, snuid=None, referer=None): suv = ws_cache.get('suv') if suv is None else suv snuid = ws_cache.get('snuid') if snuid is None else snuid return { 'Cookie': 'SUV={};SNUID={};'.format(suv, snuid) } if referer is None else { 'Cookie': 'SUV={};SNUID={};'.format(suv, snuid), 'Referer': referer }
def __set_cookie(self, suv=None, snuid=None, referer=None): suv = ws_cache.get('suv') if suv is None else suv snuid = ws_cache.get('snuid') if snuid is None else snuid return {'Cookie': 'SUV={};SNUID={};'.format(suv, snuid)} if referer is None else { 'Cookie': 'SUV={};SNUID={};'.format(suv, snuid), 'Referer': referer}