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
Takegata
January 15, 2021
Programming
250
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
勤怠入力のためにブラウザを開きたくない!
下記イベントでの発表内容です。
[オンライン開催] お正月にやったこと勉強したことLT会
https://ncdc-dev.connpass.com/event/201001/
Takegata
January 15, 2021
More Decks by Takegata
See All by Takegata
PRを小さくする勉強会
ratmie
0
30
安全なログ記録を始めよう
ratmie
0
76
プロジェクト炎上を予防するためにメンバーひとりひとりができること
ratmie
0
2.4k
プロダクト開発のトラブルを予防するために どうして「大丈夫です」と報告されるのに スケジュールは遅れるのか
ratmie
0
26
銀の弾丸?AWS App Runnerとは
ratmie
0
38
AWS re/Invent 2023 所感とサービス
ratmie
0
15
Other Decks in Programming
See All in Programming
仕様書を書く前にハーネスを作る - Agent Native開発は「探索を速く、判定を固く」
gotalab555
2
650
Claude Opus 4.6以後の受託開発エンジニアの変化(Claude Code開発ノウハウ大公開スペシャルbyクラスメソッド)
iidatakuma
1
880
エンジニアにデザインハーネスを 〜デザインプロセスを規定するためのハーネス〜 / Design harness from an engineer's perspective
rkaga
2
1.8k
「正の参照」と 「負の導出」で組む ハーネスエンジニアリング
cottpan
1
150
【やさしく解説 設計編・中級 #1】一つの車に、運転手は一人 ~ある倉庫システムの事例から~
panda728
PRO
0
200
yield再入門 #phpcon
o0h
PRO
0
800
AI時代のPHPer生存戦略 ~「言語、もうなんでもよくない?」に本気で向き合う~
vivion
0
190
琵琶湖の水は止められてもNet--HTTPのリトライは止められない / You might be able to stop the water flow of Lake Biwa but you can't stop Net::HTTP retries
luccafort
PRO
0
460
えっ!!コードを読まずに開発を!?
hananouchi
0
270
AI時代、エンジニアはどう育つのか -未経験エンジニアの成長を間近で見て考えたこと-
thasu0123
0
180
メールのエイリアス機能を履き違えない
isshinfunada
0
100
型も通る、synthも通る、それでも危ない 〜AIのCDKの権限とコストを機械で検証する〜 / It Passes Type Checks, It Passes Synth Checks, but It’s Still Risky — Automatically Verifying Permissions and Costs in AI’s CDK —
seike460
PRO
1
460
Featured
See All Featured
How to build a perfect <img>
jonoalderson
1
5.8k
4 Signs Your Business is Dying
shpigford
187
22k
Abbi's Birthday
coloredviolet
3
8.8k
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
1
360
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
Done Done
chrislema
186
16k
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.6k
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
230
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
420
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
How to Talk to Developers About Accessibility
jct
2
440
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
11k
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