Giter VIP home page Giter VIP logo

lcrawl's Introduction

#框架简介:

使用PHP+MySQL实现正方教务系统爬虫功能。

目前已经实现通过模拟登陆来获取成绩、课表、选课、考试、等级考试、补考、成绩统计等数据的爬取并过滤存储。

使用简单!注释完整!!!

#项目地址:

http://lcrawl.lzjtuhand.com

http://www.luoning.me/lcrawl.html

#框架详情:

classes为框架核心类文件;temp为缓存文件夹,存储临时cookie,可定期清除; autoloader.php框架自动载入文件;run.php框架入口文件,使用时直接include 'run.php';即可。

#使用方法:

<?php

 //载入框架入口 
include 'run.php';

//教务账号密码
$jwid = '201201148';
$jwpwd = '***********';

/*
*   任务分发执行
*   默认序列化存储,数据获取是情反序列化
*   具体可查看 classes/Lcrwl.class.php使用情况
*   请自行选择使用json_encode/json_decode还是serilize/unserilize函数
*/

//获取成绩数据,获取的历年成绩
$Lcrawl->getGrade($jwid,$jwpwd);

//获取考试安排数据
$Lcrawl->getExam($jwid,$jwpwd);

//获取选课安排数据
$Lcrawl->getChooseCourses($jwid,$jwpwd);

//获取等级考试数据
$Lcrawl->getGradeExam($jwid,$jwpwd);

//获取补考安排数据
$Lcrawl->getMakeupExam($jwid,$jwpwd);

//获取课表数据
$Lcrawl->getSchedule($jwid,$jwpwd);

//获取成绩统计数据
$Lcrawl->getGradeCount($jwid,$jwpwd);

lcrawl's People

Contributors

lndj avatar

Watchers

James Cloos avatar  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.