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
GDG Suwon DevFest 2019 - 황병렬 님
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
GDG Suwon
November 05, 2019
Technology
300
0
Share
GDG Suwon DevFest 2019 - 황병렬 님
이 책을 빌릴 수 있을 까? - 황병렬 (Javascript 개발자)
GDG Suwon
November 05, 2019
More Decks by GDG Suwon
See All by GDG Suwon
IO Extended doubleS - Day1 Keynote
gdg
0
130
IO Extended doubleS - Day2 Keynote
gdg
0
100
일어나세요 용사님 Keynote
gdg
0
280
GDG DevFest Suwon 2019 Keynote
gdg
0
170
GDG DevFest Suwon 2019 조은
gdg
0
170
GDG DevFest Suwon 2019 - 이용이
gdg
0
470
GDG DevFest Suwon 2019 - 신해나라
gdg
0
260
GDG DevFest Suwon 2019 - 배재용
gdg
0
220
IO19 Extended Suwon Keynote
gdg
1
190
Other Decks in Technology
See All in Technology
マルチエージェント × ハーネスエンジニアリング × GitLab Duo Agent Platformで実現する「AIエージェントに仕事をさせる時代へ。」 / 20260421 GitLab Duo Agent Platform
n11sh1
0
120
Zero-Downtime Migration: Moving a Massive, Historic iOS App from CocoaPods to SPM and Tuist without Stopping Feature Delivery
kagemiku
0
240
AI駆動1on1〜AIに自分を育ててもらう〜
yoshiakiyasuda
0
110
新メンバーのために、シニアエンジニアが環境を作る時代
puku0x
0
1k
最新の脅威動向から考える、コンテナサプライチェーンのリスクと対策
kyohmizu
0
430
AI時代にデータ基盤が持つべきCapabilityを考える + Snowflake Data Superheroやっていき宣言 / Considering the Capabilities Data Platforms Should Have in the AI Era + Declaration of Commitment as a Snowflake Data Superhero
civitaspo
0
100
Azure Lifecycle with Copilot CLI
torumakabe
3
960
申請待ちゼロへ!AWS × Entra IDで実現した「権限付与」のセルフサービス化
mhrtech
2
320
みんなの「データ活用」を支えるストレージ担当から持ち込むAWS活用/コミュニティー設計TIPS 10選~「作れる」より、「続けられる」設計へ~
yoshiki0705
0
210
Bill One 開発エンジニア 紹介資料
sansan33
PRO
5
18k
60分で学ぶ最新Webフロントエンド
mizdra
PRO
33
17k
インターネットの技術 / Internet technology
ks91
PRO
0
130
Featured
See All Featured
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
110
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
2.8k
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
110
Reflections from 52 weeks, 52 projects
jeffersonlam
356
21k
Optimizing for Happiness
mojombo
378
71k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
1.8k
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
470
How STYLIGHT went responsive
nonsquared
100
6k
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
120
Heart Work Chapter 1 - Part 1
lfama
PRO
5
35k
Information Architects: The Missing Link in Design Systems
soysaucechin
0
880
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.4k
Transcript
이 책을 빌릴 수 있을까? Bob Hwang JavaScript Developer
안녕하세요 Bob 입니다. • 자바스크립트 개발자입니다. • 취미도 자바스크립트 개발입니다.
• C -> Java -> JavaScript • 나이 많음
어느날 • 제가 빌리고 싶은 책이 도서관에 없었습니다. • 이미
도서관에 왔는데 말이죠. • 이미 누군가가 빌려간 것입니다. • 음..
빌려갔는지 미리 알아보는 방법 • 리브로피아를 앱을 설치한다. (싫다) •
브라우저를 열어 각각 도서관을… (귀찮..) • 나만 사용할 것임으로 최대한 간단하게.. • 터미널에서 봐야 있어보인다.
Open API가 없다. 동네 도서관에는 공개적으로 접근할 수 있는 HTTP
API가 없습니다. (아직 찾지 못함)
브라우저 없이 웹 데이터를 읽자 • cUrl • HTTPie •
Node.js with request module
웹 데이터를 읽기 위한 데이터 • URL • CSS Selector
• 위의 두 데이터를 확인하려면 브라우저가 필요합니다.
cUrl 사용해서 데이터 읽는 법 아래 명령으로 제 블로그에서 읽은
횟수를 확인할 수 있습니다. curl -s https://agvim.com/ | hgrep -t '#blog-stats-22 > ul > li'
Node.js 사용해서 데이터 읽는 법 req.post({ url: 'http://hscitylib.or.kr/kolaseek/booksearch/plusSearchResultList.do', exist: !isRented($value.find('ul
> li > dl > dd > span').text().trim()) • Use request • Use jsdom • Use jquery
도서관마다 조금씩 다르게 찾기 미안합니다. 아직 수원도서관은 업데이트를 못했습니다.
터미널에서 사용하기 npm install dongnelibrary -g dongnelibrary -i
모듈로 사용하기. https://www.npmjs.com/package/dongn elibrary const dl = require('dongnelibrary'); dl.search({......
웹에서 사용하기 https://dlserver.herokuapp.com/app/
저는 이렇게 사용합니다. dongne() { docker run --rm frontendwordpress/dongnelibrary dongnelibrary
-l 판교,동탄,분당 -t "$@" }
감사합니다. 이 작업의 좋은 점을 물으신다면!
이런 작업의 좋은 점 • 과정이 즐겁습니다. • 남겨두면 다른
사람과 이야기 거리가 됩니다. • 피드백을 받을 수 있습니다.
깃헙 링크입니다. https://github.com/afrontend/dongnelibrary https://github.com/afrontend/dlserver https://afrontend.github.io/