Git Product home page Git Product logo

ilibrary_ipadstatus_django's Introduction

iLibrary iPad出借状态 - Django版本

http://ilibrary.qcloudapps.com/

爬取西安交通大学InnoPAC的网页,提取并进行整合iPad的出借状态,并给出统计信息

本仓库代码可以直接在腾讯蓝鲸智云部署

安装

本地安装

  1. 要求Python 2.x, Django 1.8.x
  2. 直接即可运行

腾讯蓝鲸智云部署

  1. 访问http://bk.tencent.com/campus/developer-center/
  2. 新建应用,并进行SVN Checkout trunk
  3. 直接删除trunk的所有数据,将本仓库的master分支文件解压到该文件夹
  4. 执行SVN Commit,在腾讯蓝鲸智云页面一键部署应用即可

子应用方式安装

  1. 要求Python 2.x, Django 1.8.x

  2. 复制ipadstatus文件夹和static/ipadstatus到Django工程中合适目录

    # settings.py
    INSTALLED_APPS = (
        // ...
        'ipadstatus',
    )
    # urls.py
    urlpatterns = [
        // ...
        url(r'^ipadstatus/', include('ipadstatus.urls')),
    ]

说明

  • 本应用全部使用了Django内置功能,所以不需要蓝鲸框架提供的任何东西,只是利用其作为Django云平台

  • 目前共爬取5个页面

    条码 页面内包含设备
    ipad iPad 1-25,36-40
    ipad0083 iPad 26-35,41-83
    mini iPad mini 1-53
    mini0057 iPad mini 54-57
    imac iMac 共11台

程序执行流程

  1. 爬取:http://innopac.lib.xjtu.edu.cn/search~S3*chx?/c//,,,/holdings&b + 条码
  2. 正则提取取表格中的内容
  3. ajax返回json给前端
  4. 前端分类并进行展示

以前的php版本的时间信息

  • 2015年12月21日 v1.0
  • 2016年01月01日 v2.0
  • 2016年05月17日 v3.0
  • 2016年07月13日 v3.1
  • 2016年12月28日 v4.0

LICENSE

Apache 2.0

ilibrary_ipadstatus_django's People

Contributors

ganlvtech avatar

Watchers

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