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
あの人がどんなビールを飲んでいるか観察してみよう.pdf
Search
Tadayuki Takeya
August 31, 2019
Programming
310
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
あの人がどんなビールを飲んでいるか観察してみよう.pdf
Tadayuki Takeya
August 31, 2019
More Decks by Tadayuki Takeya
See All by Tadayuki Takeya
フロントエンドエンジニアでも知っておきたいバックエンドの話
takeyat
1
680
Dockerコンテナを使った開発・ステージング環境の構築.pdf
takeyat
3
500
アプリケーションエンジニア視点で考えるDockerの次の世界の作り方.pdf
takeyat
3
450
Rancher2.1で、GitLabとの連携で お手軽にCI/CD環境を実現する方法
takeyat
0
370
Cloud Native関連Eventのご紹介
takeyat
1
360
Other Decks in Programming
See All in Programming
WebMCP Challenge に星空観察アプリで参加した話
okajun35
0
120
Omarchy Tokyo やると聞いて UMPC 買ってセットアップしてきた
mtsmfm
0
130
AIを上手に使っていこうとしたら越境せざるを得なくなった話 〜実践1年で見えた境界を越えなければならない理由と進め方〜 / Crossing borders with AI
tomoyakitaura
4
1.1k
Seeing Through Serverless: Observability for AWS Lambda with ADOT and CloudWatch Application Signals
seike460
PRO
1
130
GraphRAGのKnowledge Graphを 直接!見る/View-GraphRAG's-KnowledgeGraph-directly!
tyumugi1113
1
280
Foundry Localでエージェント開発
seosoft
0
160
不幸な GC
chencmd
0
900
Deep dive into the select statement (GopherCon UK)
jespino
0
170
標準パッケージに uuid が追加された 背景から見る Go らしい意思決定 / go_127_uuid_decision
convto
5
5.6k
Webの地図
yosuke_furukawa
PRO
4
3.8k
typoなんかねぇよ
raspython3
0
680
Vibes Containers 〜AIで変わるコンテナ設計と運用〜
tkikuc
3
520
Featured
See All Featured
30 Presentation Tips
portentint
PRO
1
390
Joys of Absence: A Defence of Solitary Play
codingconduct
1
500
Faster Mobile Websites
deanohume
310
32k
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
240
Done Done
chrislema
186
16k
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
1
890
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
370
Ethics towards AI in product and experience design
skipperchong
2
370
Abbi's Birthday
coloredviolet
3
9.9k
Automating Front-end Workflow
addyosmani
1369
210k
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1.3k
It's Worth the Effort
3n
188
29k
Transcript
͋ͷਓ͕ͲΜͳϏʔϧΛ ҿΜͰ͍Δ͔؍ͯ͠ΈΑ͏ Tadayuki Takeya ゆるWeb勉強会@札幌 #6 2019/08/31 1
(いつもの)⾃⼰紹介 • ⽵⾕忠幸(Takeya Tadayuki) • Application Engineer, Systems Architect, System
Administrator (Freelance) • SNSはほとんどFacebookとTwitter • connpass: machshev • Facebook: Tadayuki Takeya • Twitter: @takeyat1 • Rancher JP , Monaca UG, ゆるWeb勉強会@札幌などに出没中 • 趣味 • ⾃転⾞(ロードバイク・MTB) • ガンダム(MS)よりもマクロス(VF)派です 2
最初に • 今回の発表は、 ωλׂ̕ʴ8FCٕज़తཁૉׂ̍ で構成されています。 • ということなので、多くは期待しないでください。 3
本題に⼊る前に… ゆるWeb勉強会 1周年おめでとうございます‼ 4
今回のテーマ • ゆるWeb界隈でも有名な「あの⼈」がどんな頻度で どんなビールを飲んでいるのか、ゆる〜く観察してみる。 (夏休みの課題的なアレ) 5
情報収集の⼿法 • SNSから • Twitter • Facebook • Instagram •
今回はAPIが扱いやすそうな、Twitterを選択。 • 今後、⾊々改良することを前提に、⾔語はPythonを選択。 6
今回の最⼤の難関 • TwitterAPIの利⽤申請(開発者登録) • 利⽤⽬的・利⽤⽅法を具体的に書かなければならない。 • 基本的に英語で申請するのだと思っていたら、 (私はGoogle翻訳の⼒を借りて英語で申請しました。) ʮຊޠͰେৎʯ との情報も
(誰かチャレンジしてみてください) ちなみに、私は「追加情報をよこせ」のメールを1回いただきました。 7
プログラムの構成 1. Twitter APIで条件を設定して、対象となるTweetを取得。 (JSON形式で取得できる) 2. 取得したTweetデータを解析して、以下の2種類に振り分 け。 1. Twitter⾃体に画像が保存されているTweetデータ。
2. Instagramのリンクが貼ってあるTweetデータ。 3. 2-1のケースについては、⽇付データと画像ファイルを取得 し、ターゲットとなるフォルダに保存。 4. 2-2のケースについては、Instagramのリンクを抽出し、 そのリンクをゴニョゴニョして画像を取得。 (Instagramのレギュレーションのため、詳細は省略) 8
Sample Source • https://github.com/takeyat/getbier-pub (Instagram関連のコードは省略してあります) 9
今後やってみたいこと • 100件を超える分の取得ロジックの組み込み • Frameworkを利⽤したWebアプリ化 • 取得した画像を⼊⼒にした機械学習ネタ →ゆるWeb勉強会でまた発表します! 10
ご清聴ありがとうございました! 11