问题标签 [cookiejar]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
python - Can a cookiejar object be pickled?
I tried pickling a CookieJar object like this:
It raised the following exception:
Can a CookieJar be pickled?
python - 在 Pydev Anacondas py33 中查找东西的正确方法
我正在使用 PyDev 开发一些 Python 软件。
我的环境是蟒蛇,Python 3.3
刚才,我想使用 cookiejar 模块。
在线教程指出我需要使用导入模块
然而,这并没有奏效。在搜索我的文件后,我发现我需要使用:
我很确定我不应该为了找到一个模块而必须搜索我的文件系统。这样做的正确方法是什么?
python - 带有urllib和cookiejar的网页上的python 3登录表单
我一直在尝试让 python 脚本登录到我的 reddit 帐户,但它似乎不起作用,有人可以告诉我我的代码有什么问题吗?它运行良好,只是没有登录。¨
php - 为什么 php curl 不在我的 cookiefile 中保存 cookie?
我正在尝试在 curl cookiejar 中保存一个 cookie。我已经简化了我的代码,但它不起作用。
设置cookie.php
接收到的报头
HTTP/1.1 200 OK 日期:2013 年 10 月 10 日星期四 12:10:37 GMT 服务器:Apache/2.4.4 (Win64) PHP/5.4.12 X-Powered-By:PHP/5.4.12 Set-Cookie:TestCookie= something+from+somewhere 内容长度:0 内容类型:文本/html
所以 testcookie 在标题中,但我的 cookiefile 保持为空。我做错了什么?我该怎么做才能使这个例子起作用?谢谢你!
curl - 将输出 cookie jar 内容卷曲到剪贴板
我在登录时返回 cookie 的网站上使用 Curl。在命令行(cygwin)中,我想将 cookie 数据输出到剪贴板。
通常我会使用
在命令的末尾,但这似乎不适用于 cookie 数据。我似乎可以输出cookie jar数据的唯一方法是使用
这会放入一个我不想这样做的文本文件。将不胜感激任何建议。
php - 使用 curl 保存登录 cookie
我没有真正使用 curl 的经验,所以我可能需要一些帮助。
我有一个 php 脚本需要访问一个名为 redownloadsubmitter.jsp 的文件,但是当我尝试时它失败了,因为我服务器上的 php 脚本在访问脚本之前没有进行身份验证。
登录脚本位于 portalloginsubmitter.jsp
如何使用 PHP 脚本“登录”,然后访问 downloadsubmitter 以下载所需的数据?
我读了一些关于 curlopt_cookiejar 的文章,但我似乎无法理解我需要如何去做。帮助?
python - 使用 Python 3.3 和 urllib 登录网站时遇到问题
我在使用 Python 登录网站时遇到问题。我只想登录到该站点,然后获取只有在登录时才能看到的页面的原始 html,以便我可以使用 BeautifulSoup 对其进行解析。我尝试使用如何使用 Python 登录网页并检索 cookie 以供以后使用?但它似乎不起作用。
我查看了使用 LiveHeaders 所需的 POST 数据,我认为我设置正确,但我的代码只返回登录页面。
有人知道我在做什么错吗?
python - 在 python 中使用 mechanize 似乎不适用于 POST 请求。(400 错误)
我正在用 Python 编写一个 IRC 机器人,以便我和我的朋友从 Steam 市场购买物品。它主要是为了好玩和提高我的编程技能。我已经能够获得一件商品的最低价格,但我在发布购买请求时遇到了问题。我发出了会话 id 和 steamLogin cookie,url 可以是http://steamcommunity.com/market/listings/730/Winter%20Offensive%20Weapon%20Case
. 这是蒸汽部分的代码:
python - Mechanize/CookieJar not keeping session persistence
I've had a website scraper running for an extended time without any issues. Recently, I believe that the website made a change and I'm now having session persistence issues. Here is the code to create my browser:
and here's the code to log in:
When I try and open a page that requires me to log in:
I get the following response:
Which is the error I was getting back in the day before I implemented CookieJar. Any idea what else I can try to fix the session persistence?
Thanks!
python - 处理来自请求库python的cookiejar
我在从 cookiejar 中检索 cookie 时遇到问题。
我正在尝试使用请求库,并且我想检索特定的 cookie,但我不知道该怎么做。
也许你们中的一个人比我有更多的经验,或者可能对 Python2.7 了解更多并且可以帮助我:)
例子:
我想像处理列表或数组一样处理它,所以我可以获取特定 cookie 的值。
提前致谢。