Giter Club home page Giter Club logo

nuaamoneygone's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

rayzhao1998 seiry

nuaamoneygone's Issues

登录过程出现异常

在我测试执行本程序的时候程序出现异常,然后我将login函数修改为以下内容。
也就是去掉了解析cookie的过程,尝试打印了登录接口返回的内容。

    def login(self):
        post_data = {'username': self.username, 'password': self.password}
        login_res = requests.post(self.login_url, data=post_data, headers=self.headers)
        print(login_res.text)
        # cookies = login_res.cookies
        # UUkey = 'UUkey=' + cookies['UUkey'] + '; '
        # vjuid = 'vjuid=' + cookies['vjuid'] + '; '
        # vjvd = 'vjvd=' + cookies['vjvd'] + '; '
        # vt = 'vt=' + cookies['vt']
        # header_cookie = UUkey + vjuid + vjvd + vt
        # self.headers['Cookie'] = header_cookie
        return 1

然后在python命令行中执行该函数

(venv) D:\rvfu98\Projects\_wsl\NuaaMoneyGone>python -q
>>> from main import client
>>> rvfu98 = client(username = '011620231', password = '<my_password>')
>>> rvfu98.login()
{"e":"10011","m":"用户名或密码错误","d":[]}
1
  1. 我的密码输入的是身份证的后六位,不清楚登录失败是由于该接口还没有对学生开放,还是因为我的密码并不是身份证后六位。
  2. 至于报错异常的内容我并没有贴上来,大概意思就是后面几个cookie是不存在的。

谢谢。

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.