javascript - How could I access localstorage under Python requests -


i found need send session id x-connection-id stored server side javascript localstorage.setitem("x-connection-id")

if , if id, can keep going following request.

any idea ?

headers = {     'user-agent': 'mozilla/5.0 (macintosh; intel mac os x 10_10_5) applewebkit/537.36 (khtml, gecko) chrome/45.0.2454.85 safari/537.36',     'x-connect-id': 'i need it', }  req.get('https://api.sample/api/v1//flightavailability?'+urllib.parse.urlencode(params)) 

seems it's impossible

local storage specific browser.

local storage way store persistent data using javascript. should used html5 compatible web browser.

to access local storage in python, compatible browser's python api required.


Comments

Popular posts from this blog

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

matlab - error with cyclic autocorrelation function -

php - Using grpc in Laravel, "Class 'Grpc\ChannelCredentials' not found." -