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
280
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
110
IO Extended doubleS - Day2 Keynote
gdg
0
86
일어나세요 용사님 Keynote
gdg
0
240
GDG DevFest Suwon 2019 Keynote
gdg
0
150
GDG DevFest Suwon 2019 조은
gdg
0
150
GDG DevFest Suwon 2019 - 이용이
gdg
0
450
GDG DevFest Suwon 2019 - 신해나라
gdg
0
240
GDG DevFest Suwon 2019 - 배재용
gdg
0
190
IO19 Extended Suwon Keynote
gdg
1
160
Other Decks in Technology
See All in Technology
Kiroと学ぶコンテキストエンジニアリング
oikon48
6
9.9k
MCPで変わる Amebaデザインシステム「Spindle」の開発
spindle
PRO
3
3.2k
開発者を支える Internal Developer Portal のイマとコレカラ / To-day and To-morrow of Internal Developer Portals: Supporting Developers
aoto
PRO
1
440
ハードウェアとソフトウェアをつなぐ全てを内製している企業の E2E テストの作り方 / How to create E2E tests for a company that builds everything connecting hardware and software in-house
bitkey
PRO
1
120
Flutterでキャッチしないエラーはどこに行く
taiju59
0
230
企業の生成AIガバナンスにおけるエージェントとセキュリティ
lycorptech_jp
PRO
2
160
サンドボックス技術でAI利活用を促進する
koh_naga
0
200
Codeful Serverless / 一人運用でもやり抜く力
_kensh
7
380
なぜスクラムはこうなったのか?歴史が教えてくれたこと/Shall we explore the roots of Scrum
sanogemaru
5
1.6k
20250903_1つのAWSアカウントに複数システムがある環境におけるアクセス制御をABACで実現.pdf
yhana
3
540
落ちる 落ちるよ サーバーは落ちる
suehiromasatoshi
0
150
Autonomous Database - Dedicated 技術詳細 / adb-d_technical_detail_jp
oracle4engineer
PRO
4
10k
Featured
See All Featured
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
16k
The Art of Programming - Codeland 2020
erikaheidi
55
13k
Thoughts on Productivity
jonyablonski
70
4.8k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
23
1.4k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
18
1.1k
Optimizing for Happiness
mojombo
379
70k
The World Runs on Bad Software
bkeepers
PRO
70
11k
Typedesign – Prime Four
hannesfritz
42
2.8k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
31
2.2k
What's in a price? How to price your products and services
michaelherold
246
12k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
1.5k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
126
53k
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/