Giter Club home page Giter Club logo

cmcc-edu's People

Contributors

dengshuan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cmcc-edu's Issues

通过同一个 Action, Login 成功,但 Logout 失败

我发现浙江杭州的 CMCC-EDU 登录网页源代码似乎和你的并不一致,其 Login 时的源代码是

<form name="loginform" action="https://211.138.125.52:7090/zmcc/index.wlan" method="post">

并没有 login 关键字。总之我先按你所说的,在 Python 解释器把上面的 action 赋值给 url, 再创建个相应的 source 变量,并 Post Login 成功。但是尝试 Logout 时,我发现在登录后的下线网页源代码里,所找到的 action 依然还是原来的 https://211.138.125.52:7090/zmcc/index.wlan, 于是执行 request.post(url+'&'+source), 不出意外地没成功下线。

怎么办呢?谢谢,此外我直接执行你的脚本,也没成功,r.content 返回的仍然是登录网页的源代码。

程序出现错误

python2 cmcc_edu.py login

正在登录...
Traceback (most recent call last):
File "cmcc_edu.py", line 46, in
'wlanacssid':wlanacssid
NameError: name 'wlanacssid' is not defined

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.