Ejemplo n.º 1
0
 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
Ejemplo n.º 2
0
 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
Ejemplo n.º 3
0
    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
        }
Ejemplo n.º 4
0
    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}