Comments (5)
你好,我测试了一下,发现出问题了,确实是这样
估计是leetcode登陆策略有什么改动了,我先debug看看
from leetcode-spider.
找到bug了,应该是这两天leetcode又改了反爬虫的策略了,我周末用着还没有问题的。
之前在进入到登陆页的时候,leetcode会给cookie里面注入一条csrftoken
,提交登陆的表单的时候不仅要提交账号密码,还要把这条csrftoken也提交了。
现在的情况是他在dom里插入了一条隐藏的input项:csrfmiddlewaretoken,现在提交表单需要带的是这个csrfmiddlewaretoken,同时保证cookie里面有csrftoken。
我先去改改代码。
from leetcode-spider.
@taylorty 你好,bug已经修复
npm update leetcode-spider -g
升级一下leetcode-spider就可以继续使用了
from leetcode-spider.
可以用了,太感谢了!修bug速度很快。感谢制作这么有用的爬虫!
from leetcode-spider.
@taylorty 哈哈,没事,也希望你在使用过程中如果有什么需求和优化的建议,可以随时开issue告诉我,毕竟我个人的使用场景和使用习惯有限。
from leetcode-spider.
Related Issues (10)
- Incorrect username or password HOT 10
- Error: socket hang up HOT 1
- 请问一下支持按照tag进行分类吗 HOT 2
- network error: cannot get csrftoken HOT 1
- 可以运行,但是爬下来只有题目,没代码呀? HOT 9
- Difficulty level显示不正确 HOT 9
- 语言GO的没有抓取成功 HOT 3
- 想提两个功能建议 HOT 10
- spider报错,求解决 HOT 2
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 leetcode-spider.