Python CookieJar - Cookies Set By Google Analytics -


i'm little bit confused situation. i'm working on script login website. i'm using cookiejar , login method working fine.

if try display cookiejar content:

for index, cookie in enumerate(cw.cj):         print index, ':', cookie 

i cookie as:

0   :   <cookie c4csessid=tqb2qn92du8i9k5r4vnpd83i73 www.example.com/> 

but in firefox if i'm looking domain (in fact, w/out www) in cookies editor, can see google analytics ones (__utma, __utmc, etc).

how can capture cookies in cj? goal able modify __utmb cookie content. (i can ff want script also)

thanks

i think cookie once tracking code on page has executed (in response google server). it's javascript, you'll need find way either interpret javascript in code, or mimic request tracking code issues.

interpreting javascript out of context of browser prove tricky, suspect tracking code needs access dom, doesn't have if page urllib example.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -