CLI tool to fetch atcoder-submit-status
Project description
atcoder-submit-status
acss はコマンドライン上でAtCoderの提出状況を確認するためのCLIツールです。
提出状況を取得することに特化しています。
スクリーンショット
機能
基本
コマンドは以下の形式で与えます。
$ acss [-h] [-v] [-c COOKIE] [-q] [--version] {login,l,logout,watch,w,fetch,f}
| オプション | 説明 |
|---|---|
-h, --help |
ヘルプを表示します |
-v, --verbose |
ログの出力を多くします |
-c COOKIE, --cookie COOKIE |
クッキーへのパスを指定します |
-q, --quiet |
ログの出力を少なくします(このオプションは3回まで重ねることができます) |
--version |
acss のバージョンを表示します |
ログイン
以下のコマンドでログインすることができます。 CLI上でユーザ名の入力とパスワードの入力が求められます。
$ acss login atcoder # login は l に省略可能
ログアウト
以下のコマンドでログアウトすることができます。
$ acss logout atcoder
提出一覧の確認
以下のコマンドで指定したコンテストの提出一覧を取得します。
$ acss watch URL # watch は w に省略可能
$
$ acss watch https://atcoder.jp/contests/abc252
$ acss watch abc252 # url が https://atcoder.jp/contests/ で始まらない場合は、自動的に補完されます。
以下のオプションがサポートされています。
| オプション | 説明 | 例 |
|---|---|---|
-h, --help |
ヘルプを表示します。 | acss watch -h |
--no-color |
色付きの出力をオフにします。 | acss watch abc252 --no-color |
--tasks |
問題で絞り込みます。 | acss watch abc252 --task a b ex |
--languages |
言語で絞り込みます。 | acss watch abc252 --languages C++ C# |
--statuses |
ジャッジの状態で絞り込みます 。 | acss watch abc252 --statuses WA TLE RE |
-u, --users |
ユーザ名で絞り込みます。 | acss watch abc252 -u user1 user2 |
--info-level |
提出の情報の詳しさを設定します。(MINIMAL, NORMAL, DETAILS の3段階) |
acss watch abc252 --info-level MINIMAL |
-r, --reverse |
提出を逆順に表示します。 | acss watch abc252 -r |
-t, --tail |
全提出のうち指定した数だけ出力します。 | acss watch abc252 -t 5 |
提出一覧の保存
$ acss watch URL > result.txt などとすることで、出力結果をファイルに書き込むことはできますが、不必要な空白やログ情報も書き込まれてしまいます。
そこで、提出一覧を保存する専用のコマンドを提供します。
$ acss fetch URL # fetch は f に省略可能
$ acss fetch URL -o result.csv # result.csv に出力
以下のオプションがサポートされています。
| オプション | 説明 | 例 |
|---|---|---|
-h, --help |
ヘルプを表示します。 | acss fetch -h |
-o |
結果の出力先を指定します。 | acss fetch abc252 -o result.csv |
-S, --separator |
区切り文字を変更します。 | acss fetch abc252 -s '\t' -o result.tsv |
-e, --encoding |
文字コードを変更します。 | acss fetch abc252 -e 'sjis' -o result.csv |
--tasks |
問題で絞り込みます。 | acss fetch abc252 --task a b ex |
--languages |
言語で絞り込みます。 | acss fetch abc252 --languages C++ C# |
--statuses |
ジャッジの状態で絞り込みます 。 | acss fetch abc252 --statuses WA TLE RE |
-u, --users |
ユーザ名で絞り込みます。 | acss fetch abc252 -u user1 user2 |
--info-level |
提出の情報の詳しさを設定します。(MINIMAL, NORMAL, DETAILS の3段階) |
acss fetch abc252 --info-level MINIMAL |
-t, --tail |
全提出のうち指定した数だけ出力します。 | acss fetch abc252 -t 5 |
インストール
以下のコマンドでインストールできます。
pip install atcoder-submit-status
LICENSE
MITライセンスで提供します。
また、以下の著作物を利用しました。
The MIT License (MIT)
Copyright (c) 2017-2020 Kimiyuki Onaka.
https://github.com/online-judge-tools/oj/blob/master/LICENSE
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file atcoder-submit-status-0.0.4.tar.gz.
File metadata
- Download URL: atcoder-submit-status-0.0.4.tar.gz
- Upload date:
- Size: 122.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e387a7c9d11aa311d88681ce23078f2893c82f9443b6d07652d7020afe954b00
|
|
| MD5 |
cb1eaaaed50b130b841bd732dbf16b68
|
|
| BLAKE2b-256 |
dee14e08ca2baf2bb627ae93373b3457b1706c6e8938d44a971e50e90954bbea
|
File details
Details for the file atcoder_submit_status-0.0.4-py3-none-any.whl.
File metadata
- Download URL: atcoder_submit_status-0.0.4-py3-none-any.whl
- Upload date:
- Size: 16.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34565e872f288a13f70d8e341174342c5dc85e4e743382deae24ba83c97989e0
|
|
| MD5 |
cf6a331d4360d4d785918220065c9ed4
|
|
| BLAKE2b-256 |
41439f75abea008588f0f795c0009cd81b7dfbc4f9b52182f84c5ed8e5a12a42
|