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
F#でスクレイピングをしてみた!(F# SCRAPING)
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
callmekohei
July 02, 2016
Programming
960
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
F#でスクレイピングをしてみた!(F# SCRAPING)
2016/07/03開催のF#談話室(23)の発表資料です。
callmekohei
July 02, 2016
Other Decks in Programming
See All in Programming
Vite+ Unified Toolchain for the Web
naokihaba
0
300
エージェンティックRAGにAWSで入門しよう!
har1101
8
1.5k
代数的データ型って何が嬉しいの? #frontend_phpcon_do
kajitack
8
3.7k
Developing with AI Agents — Codex, Claude Code & Cowork Practical Guide
x5gtrn
PRO
0
1.3k
コンテキストの使い捨てをやめる — ビジネスルール駆動開発と miko —
ioki
0
200
Make SRE Operations Easier with Azure SRE Agent
kkamegawa
0
6k
Contextとはなにか
chiroruxx
1
320
Skillsは効率化、Agentsは"自分の拡張"——Builder時代のエージェント編成(CC Night 2026)
wemra
1
130
「AIで開発し、AIを届ける」をEvalでつなぐ 〜AIネイティブに始めるプロダクト開発の実践〜 / Connecting "Develop with AI, deliver AI" with Eval
rkaga
4
5.1k
AI 時代のソフトウェア設計の学び方
masuda220
PRO
29
12k
作って学ぶ、 JSX (TSX) ランタイムの基本
syumai
7
1.6k
ふつうのFeature Flag実践入門
irof
7
3.9k
Featured
See All Featured
Done Done
chrislema
186
16k
Leo the Paperboy
mayatellez
7
1.8k
Designing for humans not robots
tammielis
254
26k
brightonSEO & MeasureFest 2025 - Christian Goodrich - Winning strategies for Black Friday CRO & PPC
cargoodrich
3
730
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.5k
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
840
Large-scale JavaScript Application Architecture
addyosmani
515
110k
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
2.1k
How to train your dragon (web standard)
notwaldorf
97
6.7k
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
250
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
Transcript
F# SCRAPING F#ͰεΫϨΠϐϯάΛͯ͠Έͨʂ callmekohei 2016/07/03 Sun
Overview • ࣗݾհ • εΫϨΠϐϯάͷ͖͔͚ͬ • HTMLͷ2ͭͷऔಘํ๏ • HTML͔ΒσʔλʔΛͱΓͩͯ͠ΈΔ
callmkohei VBA 3 years F# 9 months ͷ໊લ ϨΦɻ ΑΖ͘͠Ͷʂ
εΫϨΠϐϯάͷ͖͔͚ͬ
͜Μͳײ͡Ͱ ϩτ̓ͷ༧ଌΛ ͍ͨ͠
ϩτ̓ͷબ൪߸Λ ϗʔϜϖʔδΑΓ ೖख͍ͨ͠
None
ϗʔϜϖʔδ HTMLιʔεͰ Ͱ͖͍ͯΔ
None
ϗʔϜϖʔδͷσʔλʔΛ औಘ͢Δʹ HTMLιʔε͕ඞཁ
Ͳ͏ͬͯ HTMLιʔεΛ औಘ͢Δ͔
HTMLιʔεΛऔಘ͢Δ̎ͭͷํ๏
ͦͷ̍ System.NetΛ͔ͭ͏
ͦͷ̎ PhantomJS Λ͔ͭ͏
جຊతʹ System.NetͷΈͰ େৎʢͩͱࢥ;ɻɻɻʣ ͜͜ ߟ͑Ͳ͜Ζ
Ͳ͏্ͯ͠ख͘ औಘͰ͖ͳ͍߹ PhantomJSΛͬͯΈΔ
ͨͩ PhantomJS ͍ͷͰ͢
αʔόʔͷଓൺֱ System.Net: 2s PhantomJS: 7s ࣮ߦ࣌ؒࢀߟ
͜͜Ͱ ࣮ࡍʹαʔόʔʹ ͭͳ͛ͯΈΔ demo
HTMLιʔε͔Β σʔλʔΛ ͱΓͩͯ͠ΈΔ
͜͜Ͱ ศརͳ ϥΠϒϥϦ FSharp.Data
FSharp Data ͱʁ The F# Data library implements everything you
need to access data in your F# applications and scripts. CSV, HTML, JSON and XML ʹରͯ͠ͷศརϥΠϒϥϦ http://fsharp.github.io/FSharp.Data/
a tag
͜͜Ͱ a tag Λ ͱΓͩͯ͠ΈΔ demo
table tag
͜͜Ͱ table tag Λ ͱΓͩͯ͠ΈΔ demo
εΫϨΠϐϯά͢Δͱ͖ʹ ศརͩͱࢥ͏ؔΛ ·ͱΊͯΈͨ
SCRAPINGfs https://github.com/callmekohei/SCRAPINGfs
͞Βʹɺɺ
FSharp.Data HtmlDocument.Load ͍͚ͯͳ͍ͱࢥͬͯΔͱ͜Ζ
ϒϥβʔ͡Όͳ͍ͱ͔͡ΕΔ จࣈίʔυ͕͏·͘ॲཧ͞Εͳ͍ Http Utilities Λ͏͜ͱͰղܾʂ
Formॲཧ͕Ͱ͖ͳ͍
Formॲཧ͕Ͱ͖ͳ͍ Http Utilities Λ͏͜ͱͰͪΐͬͱղܾʂ
Formॲཧ͕Ͱ͖ͳ͍ System.Net Λ͏͜ͱͰղܾʂ
؆୯ͳൺֱද
͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠