Esempio 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
Esempio 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
Esempio 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
        }
Esempio 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}