Python Forum
cookie operation - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Web Scraping & Web Development (https://python-forum.io/forum-13.html)
+--- Thread: cookie operation (/thread-414.html)



cookie operation - x64 - Oct-10-2016

i can not retrive cookie in python that i set.......
this code is for set up cookie.......
#!"E:\python\python.exe"
from http import cookies

c = cookies.SimpleCookie()

c["name"] = "nnnn"
c["age"] = "22"

print(c)
i want to retrive all this cookie .......
please help....
thanks in advanced


RE: cookie operation - micseydel - Oct-10-2016

What version of Python are you using? Python 2 doesn't have the http module, but Python 3 does. Also, the shebang doesn't apply to Windows.