|
6 | 6 | 伝書フクロウという意味です。
|
7 | 7 |
|
8 | 8 | ## About Carrier Owl
|
| 9 | + |
9 | 10 | <img src='./data/images/system.png' width='1000'>
|
10 | 11 |
|
11 | 12 | 前日のarxivから気になる論文にスコアを付けてslackに通知するシステムです。
|
|
42 | 43 |
|
43 | 44 | <img src='./data/images/09.png' width='600'>
|
44 | 45 |
|
45 |
| - |
46 |
| -3. **webhook urlの取得** |
47 |
| - - 特定のslackチャンネルに流すための準備を行います。 |
48 |
| - - incomming webhookの**webhook url**を取得してください。 |
49 |
| - - 参考サイト |
50 |
| - - [公式](https://slack.com/intl/ja-jp/help/articles/115005265063-Slack-での-Incoming-Webhook-の利用) |
51 |
| - - [紹介記事](https://qiita.com/vmmhypervisor/items/18c99624a84df8b31008) |
52 |
| - - slack通知の時のアイコンが設定できますので、よければこれ使ってください。 |
53 |
| - - [icon](https://github.com/fkubota/Carrier-Owl/blob/master/data/images/carrier-owl.png) |
54 |
| - <img src='./data/images/carrier-owl.png' width='50'> |
55 | 46 |
|
| 47 | +3. **通知先の設定** |
| 48 | + 通知したいアプリケーションに応じて設定を行います。いくつでも設定可能です。 |
| 49 | +
|
| 50 | + - Slackに通知する場合は[こちら](./docs/slack_setup.md) |
| 51 | + - LINEに通知する場合は[こちら](./docs/line_setup.md) |
56 | 52 |
|
57 | 53 |
|
58 | 54 | 4. **webhook urlの設定**
|
59 |
| - - step3で取得した `webhook url` を設定します。 |
| 55 | + - step3で取得した `webhook url`(または `line token`) を設定します。 |
60 | 56 | - 手順
|
61 | 57 |
|
62 | 58 | a. `settings` をクリック。
|
|
67 | 63 |
|
68 | 64 | c. `New repository secret` をクリック。
|
69 | 65 |
|
70 |
| - d. Nameを `SLACK_ID` と入力。Valueを **step2** で取得した`webhook url`を貼り付けます。 |
| 66 | + d. Nameを `SLACK_ID`(または `LINE_TOKEN` ) と入力。Valueを **step2** で取得した`webhook url`(また `line token`)を貼り付けます。 |
71 | 67 |
|
72 | 68 | <img src='./data/images/07.png' width='1000'>
|
73 | 69 |
|
74 | 70 | e. 最後に`Add secret`をクリックして登録完了です。
|
75 | 71 |
|
76 | 72 | 5. **領域の設定**
|
| 73 | +
|
77 | 74 | - 通知させたいarxivの論文の領域を指定します。
|
78 | 75 | - **(computer scienceの人はこの手順を飛ばしてstep8に進んでも構いません)**
|
79 |
| - - `computer science` なら `cs` などそれぞれに名前がついています。以下の手順で確認します。 |
80 | 76 | - 手順
|
81 |
| - 1. [arxiv.org](https://arxiv.org)にアクセス |
82 |
| - 2. 通知させたい領域の**resent**と書かれた部分をクリック。 |
83 |
| -
|
84 |
| - <img src='./data/images/02.png' width='400'> |
85 |
| - |
86 |
| - 3. 遷移後のページのurlを見て、`list/`と`/recent`に囲われている文字列を使います。 |
87 |
| -
|
88 |
| - - computer scienceの例: `https://arxiv.org/list/cs/recent` |
89 |
| - - この場合、`cs` をこの後利用する。 |
90 |
| - |
91 |
| - 4. `config.yaml` 内の、`subject` を3で取得した文字列に変更します。(デフォルトでは`cs`になっています。) |
92 |
| -
|
| 77 | + 1. 以下の表から通知を受け取りたいsubjectを選択して、urlをクリックしてください。 |
| 78 | +
|
| 79 | + | subject | category | url | |
| 80 | + | ------------------------------------------ | -------- | ----------------------------------------- | |
| 81 | + | Astrophysics | astro-ph | [url](https://arxiv.org/archive/astro-ph) | |
| 82 | + | Condensed Matter | cond-mat | [url](https://arxiv.org/archive/cond-mat) | |
| 83 | + | Physics | physics | [url](https://arxiv.org/archive/physics) | |
| 84 | + | Mathematics | math | [url](https://arxiv.org/archive/math) | |
| 85 | + | Nonlinear Sciences | nlin | [url](https://arxiv.org/archive/nlin) | |
| 86 | + | Computer Science | cs | [url](https://arxiv.org/archive/cs) | |
| 87 | + | Quantitative Biology | q-bio | [url](https://arxiv.org/archive/q-bio) | |
| 88 | + | Quantitative Finance | q-fin | [url](https://arxiv.org/archive/q-fin) | |
| 89 | + | Statistics | stat | [url](https://arxiv.org/archive/stat) | |
| 90 | + | Electrical Engineering and Systems Science | eess | [url](https://arxiv.org/archive/eess) | |
| 91 | + | Economics | econ | [url](https://arxiv.org/archive/econ) | |
| 92 | +
|
| 93 | + 2. さらに細かい分類を確認します |
| 94 | + - 以下の例は、subject = `cs` をクリックした場合です。`cs.AI` や `cs.CL` などが細かな分類になります。 |
| 95 | +
|
| 96 | + <img src='./data/images/10.png' width='600'> |
| 97 | +
|
| 98 | + 3. `config.yaml` 内の、`subject` を2で確認した文字列に変更します。 |
| 99 | + - デフォルトでは`cat:cs.*`になっています。これは、cs以下の小分類すべてを通知するという設定になります。 |
| 100 | + - **複数領域指定** |
| 101 | + - 複数領域指定も可能です。以下のよう `OR` でつなぎます。 |
| 102 | + - ex1) `cat:cs.AI OR cat:cs.CV` |
| 103 | + - ex2) `cat:physics.* OR cat:cs.*` |
| 104 | + - ex3) `cat:physics.space-ph OR cat:cs.AI OR cat:q-bio.BM` |
93 | 105 |
|
94 | 106 |
|
95 | 107 | 6. **キーワードの設定**
|
|
119 | 131 | - ここまでの変更がmasterブランチに反映されていれば、これですべての設定が完了したことになります。次の通知タイミングでslackに通知されます。
|
120 | 132 |
|
121 | 133 | 9. **test**
|
122 |
| - - 試しに動かしてみたい場合は、`master` ブランチから `test-send-to-slack` ブランチを作成してください。`test-send-to-slack` ブランチが作られるとgithub actionsが走って問題なければ通知されるはずです。 |
123 |
| - - Actionsタブで様子を確認できます。 |
| 134 | + - github actions の `workflow_dispatch` を使って通知タイミングを待たずにいつでも実行することができます。 |
| 135 | + - Actionsタブでから、`Run workflow` をクリックすることでいつでも実行可能です。 |
| 136 | +
|
| 137 | + <img src='./data/images/11.png' width='800'> |
124 | 138 |
|
125 |
| - <img src='./data/images/08.png' width='800'> |
| 139 | +## その他の設定 |
| 140 | +- **score threshold** |
| 141 | + 通知するスコアに閾値を設定することができます。`score >= scrore_threshold` を満たす論文のみ通知させることができま |
| 142 | + す。 `config.yaml` 内の、`score_threshold` で設定できます(デフォルトは0になっています)。 |
126 | 143 |
|
127 | 144 |
|
128 | 145 | ## Thanks
|
129 |
| -- [hppさん](https://github.com/hppRC)のお力をお借りして、v2.0.0から `github` だけで動作するようになりました。ご協力ありがとうございました。 |
| 146 | +- [hppさん](https://github.com/hppRC)のPRにより、github actionsを使うことにより `github` だけで動作するようになりました。 |
| 147 | +
|
| 148 | +- [wakamezakeさん](https://github.com/wakamezake)のPRにより、arxiv-apiを導入しました。 |
| 149 | +
|
| 150 | +- [amagaeruさん](https://github.com/amagaeru1113)のPRにより、LINE通知機能を実装しました。 |
0 commit comments