Comments (4)
我用了你的脚本,换成自己的cookie,好用,可以签到。 但是在这之前 我也写过其它论坛的签到 我用的是如下代码达到cookie登陆的目的。 但是我发现这种方式 用在汽车之家 登录不了。 我搞不明白 什么原因。我不是专职爬虫开发。 你看看 你能知道原因吗? cookie = '' dd = SimpleCookie(cookie) xx = {v.key: v.value for k, v in dd.items()}
self.driver.get('https://i.autohome.com.cn/') for kk, vv in xx.items(): self.driver.add_cookie(cookie_dict={'name': kk, 'value': vv}) self.driver.refresh()
我也不是很清楚,你可以参考以下这个文章 https://www.cnblogs.com/whz0215/p/9676676.html
from common-scripts.
用你的脚本,那个cookie会过期,要怎么办?那个cookie里可能有一些关键数据是要变化的?
from common-scripts.
用你的脚本,那个cookie会过期,要怎么办?那个cookie里可能有一些关键数据是要变化的?
对的,这个cookie会过期,只会持续一段时间,要定时更新,抓取cookie最好使用浏览器无痕模式抓取
from common-scripts.
用你的脚本,那个cookie会过期,要怎么办?那个cookie里可能有一些关键数据是要变化的?
因为,汽车之家登录有滑块验证,使用cookie就是跳过滑过验证这个麻烦
from common-scripts.
Related Issues (10)
- 你这微博脚本怎么缺代码啊 HOT 1
- 大佬 可以修改成其他推送么 HOT 2
- 青龙有安装requests依赖 运行还是报错 HOT 2
- 微博的cookie怎么获取啊 HOT 1
- 你好,小米步数修改不支持邮箱吗 HOT 1
- 可以使用action吗
- 建议将项目中的 Server酱 链接换成推荐链接
- 阿里云盘签到
- 阿里云盘签到
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 common-scripts.