Giter Site home page Giter Site logo

wenku_python's Introduction

Project:百度文库自动签到

By:stillkam

Program Language:python

2015.11.29

  • 使用方法:

    • 安装python
    • 运行baiduwenku_PJ.py
  • 实现方法

    • Tkinter实现登录界面baiduwk_gui.login(),获取用户ID和password
    • 调用baiduwk_signin.login()进行登录
    • 调用baiduwk_gui.status()显示登陆状态
      • 使用python threading 库新建子线程执行baiduwk_signin.trysigin()实现签到
        • 读取source/log.text获取签到信息,若已签到则睡眠6h;若未签到则每隔0.5h尝试签到,成功则睡眠6h
        • 签到方法:定制header,连同登录得到的cookie一起get到http://wenku.baidu.com/task/submit/signin,根据reponse判断是否签到成功
        • 重复以上过程,实现自动签到
      • 读取source/log.text日志获取登录状态并在界面上显示
      • 点击update status按钮刷新签到状态
      • 点击switch account登录新账户

wenku_python's People

Contributors

stillkam avatar

Watchers

 avatar

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.