Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
勤怠入力のためにブラウザを開きたくない!
Search
Takegata
January 15, 2021
Programming
260
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
39
安全なログ記録を始めよう
ratmie
0
87
プロジェクト炎上を予防するためにメンバーひとりひとりができること
ratmie
0
2.5k
プロダクト開発のトラブルを予防するために どうして「大丈夫です」と報告されるのに スケジュールは遅れるのか
ratmie
0
32
銀の弾丸?AWS App Runnerとは
ratmie
0
42
AWS re/Invent 2023 所感とサービス
ratmie
0
22
Other Decks in Programming
See All in Programming
PumaからFalconに移行したRailsアプリケーションでの実践
falcon8823
0
110
難しいけど、読めた。- OSSの入口に立った話。
sts11142
0
150
Simple Storage Service(S3) is not simple
iwatsukayura
0
280
コーディング自動化の次へ。人の介入をゼロにするファクトリーとサポートAIによる実践
timakin
2
1.8k
Unity6 URPによる海底をテーマにしたVJシステムの解説 | Unity Shader 完全に理解した 勉強会
gam0022
0
360
SREの越境 / SRE Collaboration
y0hgi
2
310
Vue Fes Japan の “作る側”に関わってみて
naokihaba
0
150
Everything will be SERVERLESS — 信じて運用した10年の経験値 / Everything Will be Serverless — Lessons Learned from 10 Years of Operational Experience
seike460
PRO
1
1k
動作中のプログラムの中身をリアルタイムに覗く / Realtime Debugger for CSharp with Roslyn
prota
1
1.9k
AI が書く Go コードの品質を劇的に向上させる Linter: “declscope”
mpyw
0
490
Are APIs Still Relevant in the AI Era?
soyuka
0
460
気持ちぃ〜角丸 Squircle
ryu1013
0
290
Featured
See All Featured
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
2.2k
Art, The Web, and Tiny UX
lynnandtonic
304
22k
Designing Powerful Visuals for Engaging Learning
tmiket
1
600
How to Think Like a Performance Engineer
csswizardry
28
2.9k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.6k
My Coaching Mixtape
mlcsv
0
350
Site-Speed That Sticks
csswizardry
13
1.6k
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
560
HDC tutorial
michielstock
2
960
Claude Code のすすめ
schroneko
67
230k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
6.1k
The Cult of Friendly URLs
andyhume
79
7k
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