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
GDG Suwon
November 05, 2019
Technology
0
300
GDG Suwon DevFest 2019 - 황병렬 님
이 책을 빌릴 수 있을 까? - 황병렬 (Javascript 개발자)
GDG Suwon
November 05, 2019
Tweet
Share
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
270
GDG DevFest Suwon 2019 Keynote
gdg
0
160
GDG DevFest Suwon 2019 조은
gdg
0
160
GDG DevFest Suwon 2019 - 이용이
gdg
0
460
GDG DevFest Suwon 2019 - 신해나라
gdg
0
260
GDG DevFest Suwon 2019 - 배재용
gdg
0
210
IO19 Extended Suwon Keynote
gdg
1
180
Other Decks in Technology
See All in Technology
Introduction to Sansan for Engineers / エンジニア向け会社紹介
sansan33
PRO
6
68k
Agile Leadership Summit Keynote 2026
m_seki
1
650
Cosmos World Foundation Model Platform for Physical AI
takmin
0
960
Context Engineeringが企業で不可欠になる理由
hirosatogamo
PRO
3
630
Bill One 開発エンジニア 紹介資料
sansan33
PRO
5
17k
usermode linux without MMU - fosdem2026 kernel devroom
thehajime
0
240
AzureでのIaC - Bicep? Terraform? それ早く言ってよ会議
torumakabe
1
590
Context Engineeringの取り組み
nutslove
0
370
AIと新時代を切り拓く。これからのSREとメルカリIBISの挑戦
0gm
2
3k
Claude_CodeでSEOを最適化する_AI_Ops_Community_Vol.2__マーケティングx_AIはここまで進化した.pdf
riku_423
2
610
We Built for Predictability; The Workloads Didn’t Care
stahnma
0
140
Webhook best practices for rock solid and resilient deployments
glaforge
2
300
Featured
See All Featured
The Art of Programming - Codeland 2020
erikaheidi
57
14k
Documentation Writing (for coders)
carmenintech
77
5.3k
Navigating Team Friction
lara
192
16k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.6k
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
0
140
GraphQLの誤解/rethinking-graphql
sonatard
74
11k
Designing Experiences People Love
moore
144
24k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.3k
Deep Space Network (abreviated)
tonyrice
0
64
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
430
A Tale of Four Properties
chriscoyier
162
24k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.6k
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/