Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
勤怠入力のためにブラウザを開きたくない!
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Takegata
January 15, 2021
Programming
0
240
勤怠入力のためにブラウザを開きたくない!
下記イベントでの発表内容です。
[オンライン開催] お正月にやったこと勉強したことLT会
https://ncdc-dev.connpass.com/event/201001/
Takegata
January 15, 2021
Tweet
Share
More Decks by Takegata
See All by Takegata
PRを小さくする勉強会
ratmie
0
23
安全なログ記録を始めよう
ratmie
0
59
プロジェクト炎上を予防するためにメンバーひとりひとりができること
ratmie
0
2.2k
プロダクト開発のトラブルを予防するために どうして「大丈夫です」と報告されるのに スケジュールは遅れるのか
ratmie
0
16
銀の弾丸?AWS App Runnerとは
ratmie
0
27
AWS re/Invent 2023 所感とサービス
ratmie
0
10
Other Decks in Programming
See All in Programming
Migration to Signals, Signal Forms, Resource API, and NgRx Signal Store @Angular Days 03/2026 Munich
manfredsteyer
PRO
0
100
maplibre-gl-layers - 地図に移動体たくさん表示したい
kekyo
PRO
0
300
S3ストレージクラスの「見える」「ある」「使える」は全部違う ─ 体験から見た、仕様の深淵を覗く
ya_ma23
0
760
The free-lunch guide to idea circularity
hollycummins
0
270
安いハードウェアでVulkan
fadis
0
540
What Spring Developers Should Know About Jakarta EE
ivargrimstad
0
440
Ruby and LLM Ecosystem 2nd
koic
1
1k
ふつうの Rubyist、ちいさなデバイス、大きな一年
bash0c7
0
1.1k
技術検証結果の整理と解析をAIに任せよう!
keisukeikeda
0
130
Fundamentals of Software Engineering In the Age of AI
therealdanvega
2
260
モダンOBSプラグイン開発
umireon
0
160
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
770
Featured
See All Featured
Designing Powerful Visuals for Engaging Learning
tmiket
0
290
Tell your own story through comics
letsgokoyo
1
850
Discover your Explorer Soul
emna__ayadi
2
1.1k
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
1
490
What's in a price? How to price your products and services
michaelherold
247
13k
Side Projects
sachag
455
43k
Building a Scalable Design System with Sketch
lauravandoore
463
34k
Balancing Empowerment & Direction
lara
5
950
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
220
For a Future-Friendly Web
brad_frost
183
10k
Building Adaptive Systems
keathley
44
3k
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
270
Transcript
勤怠⼊⼒のためにブラウザを開きたく ない! 1
誰? https://github.com/ratmie NCDC 2 年⽬エンジニア この⼀年間業務で書いたのはTypeScript/JavaScript アクションゲームが下⼿なのに格ゲーを始めた トレーニングモードばかりしている 2
勤怠⼊⼒がめんどくさい 3
ブラウザを開く 当該ページを開く ボタンを押す → これを出勤時、昼休憩開始時、昼休憩終了時、退勤時に⾏う 4
忘れる 5
他のやり⽅はないか? 6
CLI で操作できるようにしたら他サービスとの 連携できて便利なのでは? 7
Python か Node でぱぱっとやる 8
いや、待てよ 9
どうせだし Golang 使ってみるか 10
動機 Python/Node の実⾏環境がいらないので社内配布が便利そう 速くなる? 趣味なんだから普段の業務で使ってないことやりたい 11
課題 弊社が使⽤している勤怠サービス(CloudLog) はWeb API 公開していな い 12
WebDriver でヘッドレスブラウザ操作する 13
WebDriver って? Web ブラウザ操作の標準 ブラウザに対して中⽴ ⾔語に対して中⽴ 14
今回⽤いたのは Chrome Driver: Google Chrome のためのWeb Driver agouti: Go でWeb
Driver を扱うためのライブラリ 15
引っかかったこと インストールされているChrome と同じバージョンのChrome Driver を ⼊れないとエラーになる → 実際にブラウザを駆動しているため 16
まとめ 楽するために⾯倒なことをするのは楽しい API 公開されていなくてもWeb サービスであればブラウザ操作でな んとかなる Go のよさみ、つらみ(また別途) 17