9
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

PythonでEvernote API

Posted at

なんか標準入力をevernoteに送るというコマンドをpythonで作った。正月に。
そのまま放置してたんだけど、せっかく作ったのに誰も使わないのが虚しいので改良して公開した。

こんな感じで使える

$ echo 'Note Content' | everstdin

$ tail -f /var/log/access_log | everstdin -t 'apache access log'

$ cat /etc/nginx/nginx.conf | everstdin --tags nginx,config --notebook linux

$ everstdin -t 'localhost hosts file' < /etc/hosts

tail -f とかシグナル送らないと終了できないものにも対応しようとして詰まってたけど、
よく考えたらfinallyに書くだけだった。。
argparseの便利さに感動した
evernote apiのデベロッパーページがわかりやすくてよかった

9
10
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
9
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?