Giter Site home page Giter Site logo

Comments (5)

Ma63d avatar Ma63d commented on August 25, 2024

你好,我测试了一下,发现出问题了,确实是这样
估计是leetcode登陆策略有什么改动了,我先debug看看

from leetcode-spider.

Ma63d avatar Ma63d commented on August 25, 2024

找到bug了,应该是这两天leetcode又改了反爬虫的策略了,我周末用着还没有问题的。
之前在进入到登陆页的时候,leetcode会给cookie里面注入一条csrftoken,提交登陆的表单的时候不仅要提交账号密码,还要把这条csrftoken也提交了。
现在的情况是他在dom里插入了一条隐藏的input项:csrfmiddlewaretoken,现在提交表单需要带的是这个csrfmiddlewaretoken,同时保证cookie里面有csrftoken。
我先去改改代码。

from leetcode-spider.

Ma63d avatar Ma63d commented on August 25, 2024

@taylorty 你好,bug已经修复

npm update leetcode-spider -g

升级一下leetcode-spider就可以继续使用了

from leetcode-spider.

taylorty avatar taylorty commented on August 25, 2024

可以用了,太感谢了!修bug速度很快。感谢制作这么有用的爬虫!

from leetcode-spider.

Ma63d avatar Ma63d commented on August 25, 2024

@taylorty 哈哈,没事,也希望你在使用过程中如果有什么需求和优化的建议,可以随时开issue告诉我,毕竟我个人的使用场景和使用习惯有限。

from leetcode-spider.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.