Accept Cookies in Python

后端 未结 6 628
孤城傲影
孤城傲影 2020-12-31 11:43

How can I accept cookies in a python script?

6条回答
  •  说谎
    说谎 (楼主)
    2020-12-31 12:18

    It's unclear whether you want a client-side or a server-side solution.

    For client-side, cookielib will work fine. This answer and a few web tutorials offer more in-depth explanations.

    If this is a server-side problem, you should be using a framework that takes care of all the boilerplate. I really like how CherryPy and web.py handle them, but the API is pretty simple in any library.

提交回复
热议问题