Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
cookie operation
#1
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
Reply
#2
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Web scraping cookie in URL blocks selenium Alex06 2 2,384 Jan-10-2021, 01:43 PM
Last Post: Alex06

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020