Comments (2)
参考 readme 中的 “网页示例”。
如果 demo 工作正常,那么便不是本项目的问题。
我不能复现。
from golibcookie.
找到原因了,因环境问题第一次请求时都会出现SSL错误:
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)>
如果用同一个URL进行第二次请求不会报错,但无法返回正确的Cookie信息,添加如下代码解决SSL错误已经可以正常返回Cookie
import ssl
ssl._create_default_https_context = ssl._create_unverified_context
from golibcookie.
Related Issues (11)
- 请问可以介绍一下原理吗? HOT 2
- 系统更新 HOT 2
- json转成字符串处理会不会好些? HOT 3
- 没能获取到wechatSESS_ID HOT 2
- 请问能获取到wechatsess_id吗 HOT 1
- 请问大佬这个cookie该如何保活呢 HOT 1
- 如何使抓到的cookie一直有效 HOT 3
- request session保活id问题 HOT 19
- 获取wechatSESS_ID后使用keep_session.py无法保活,会提示过期 HOT 1
- 扫描二维码后不显示error开头的信息 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from golibcookie.