Giter VIP home page Giter VIP logo

clipanda's Introduction

clipanda

京都大学サイバーラーニングスペースPandAのCLIアプリケーションです。一部の手間のかかる処理を自動で行います。

インストール

using system installed python

$ git clone https://github.com/face0u0/clipanda
$ make dependency
$ make install

使い方

オプションは-hオプションを指定して確認することも可能です。

$ clipanda -h
$ clipanda sites -h

ログイン

ほとんどの操作でログインが必要なため、clipanda loginコマンドを用いてcookieを書き出します。

認証が必要なページは書き出されたcookieを指定することでアクセスが可能です。

$ clipanda login -u {ecs-id} -o
Password:
  • -oオプションは引数にcookieを保存したいファイル名を指定しますが、引数がないとき、デフォルトで.cookiesに保存されます。
  • -pオプションを用いてそのままパスワードを指定することも可能です。
$ clipanda login -u {ecs-id} -p {password} -o

サイト一覧を表示

$ clipanda sites [-c {cookie-file}]
  • --site-typeを指定することで絞り込みが可能です。例えばcourseを指定すると通常の講義のみが出力されます。
$ clipanda sites [-c {cookie-file}] --site-type course

--only-site-idsite-idのみを出力します。

授業資料をダウンロード

各サイト(講義)の資料の一括ダウンロードが可能です。

$ clipanda resources [-c {cookie-file}] -s {site-id}
  • site-idclipanda sitesコマンドを用いて取得します。
  • -dオプションを指定することでダウンロード先のディレクトリを指定できます。
  • -eオプションを指定することで一部の拡張子を除いてファイルを保存できます。
$ clipanda resources -s {site-id} -d content/class0 -e m4a mp4

課題ファイルをダウンロード

各サイト(講義)の課題の一括ダウンロードも可能です。

$ clipanda assignments [-c {cookie-file}] -s {site-id}
  • オプションはclipanda resourcesとほぼ同じです。

Tips

  • すべてのリソースをダウンロード
$ clipanda sites --only-site-id --site-type course | xargs -n1 clipanda resources -s

clipanda's People

Contributors

mu2chn avatar

Stargazers

 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.