Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

196
Vistas
Need to append Session Variable to URL to make requests

I'm using python requests_html to scrape a website behind a login. I've done this previously without issue, but now the site appends a query paramenter of sessionCacheKey to each url to make a valid request. The sessionCacheKey variable is stored in the browsers local and session storage. Does anyone know how or if it is possible to access local or session storage with python/requests_html? I have tried manually copying the session variable from chrome into my python request and it works. I just need to know how I can access it and store it in a variable in python to use for all future requests. Thanks for any help.

Below is the script assigning sessionCacheKey to local and session storage.

                'setSessionCacheKey': function(){
                externalLoginCheck();
                var currentSessionCacheKey = getQueryParamByName('sessionCacheKey', window.location.href);
                window.sessionStorage.setItem('sessionCacheKey', currentSessionCacheKey);
                window.localStorage.setItem('sessionCacheKey', currentSessionCacheKey);
                if (duplicateTabConditions()) {
                    var newSessionCacheKey = getNewSessionCacheKey(currentSessionCacheKey);
                    $.ajax({
                        url: '/AM/RemoteProxy/SessionManagerProxy.cfc?method=copySessionCacheToNewKey&SourceSessionCacheKey=' + currentSessionCacheKey + '&DestinationSessionCacheKey=' + newSessionCacheKey,
                        success: function (result) {
                            reloadLocation = removeParam("sessionCacheKey", window.location.href);
                            var separator = reloadLocation.match(/\?/) ? '&' : '?';
                            window.location = reloadLocation + separator + 'sessionCacheKey=' + newSessionCacheKey;
                        },
                        async: false
                    });
                }
over 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda