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
Post a Comment