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
How to use Golang download YouTube video
Search
LINE Developers Taiwan
PRO
May 26, 2020
Technology
3
17k
How to use Golang download YouTube video
by Evan Lin @Golang Taipei Meetup #49
LINE Developers Taiwan
PRO
May 26, 2020
Tweet
Share
More Decks by LINE Developers Taiwan
See All by LINE Developers Taiwan
LINE 實習分享 & 國際黑客松參賽分享
line_developers_tw
PRO
0
17
在 GCP 運用 Parse 全家餐管理那堆 AI 應用的資料
line_developers_tw
PRO
0
21
40歲的我會給20歲的自己,關於軟體開發的7個建議
line_developers_tw
PRO
0
7.1k
從零到一:轉碼仔的實習攻略
line_developers_tw
PRO
0
23
如何在團隊發揮數據影響力: 以電商資料科學家為例
line_developers_tw
PRO
1
41
做Data超讚的 誰懂?
line_developers_tw
PRO
0
28
iOS Live Activity: Opportunities & Challenges
line_developers_tw
PRO
1
120
掌握 Feature Toggle 與 OpenFeature 規範
line_developers_tw
PRO
0
230
用 AI 和 LINE Bot 簡化生活:讓圖片告訴你何時該忙!-- LINE 工作坊
line_developers_tw
PRO
0
750
Other Decks in Technology
See All in Technology
レイクハウスとはなんだったのか?
akuwano
15
1.8k
SIEMによるセキュリティログの可視化と分析を通じた信頼性向上プロセスと実践
coconala_engineer
1
2.7k
ソフトウェアアーキテクトのための意思決定術: Software Architecture and Decision-Making
snoozer05
PRO
17
3.6k
MicrosoftのOSSだけでAIによるブラウザテストを構成する
ymd65536
1
250
15年入社者に聞く! これまでのCAのキャリアとこれから
kurochan
1
140
Oracle Cloud Infrastructure:2025年1月度サービス・アップデート
oracle4engineer
PRO
0
110
re:Invent Recap (January 2025)
scalefactory
0
340
ObservabilityCON on the Road Tokyoの見どころ
hamadakoji
0
160
LLM活用の現在とこれから:LayerXにおける事例とともに 2025/1 ver. / layerx-llm-202501
yuya4
3
260
脅威モデリングをやってみた
ledsue
0
100
Makuake*UPSIDER_LightningTalk
upsider_tech
0
130
Microsoft Ignite 2024 最新情報!Microsoft 365 Agents SDK 概要 / Microsoft Ignite 2024 latest news Microsoft 365 Agents SDK overview
karamem0
0
180
Featured
See All Featured
Typedesign – Prime Four
hannesfritz
40
2.5k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
44
9.4k
4 Signs Your Business is Dying
shpigford
182
22k
Large-scale JavaScript Application Architecture
addyosmani
510
110k
Producing Creativity
orderedlist
PRO
343
39k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
8
1.3k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
232
17k
Embracing the Ebb and Flow
colly
84
4.5k
Optimizing for Happiness
mojombo
376
70k
Speed Design
sergeychernyshev
25
750
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
28
4.5k
Practical Orchestrator
shlominoach
186
10k
Transcript
How to use Golang download YouTube video LINE Developer Relations
Evan Lin 2020.05 1
Evan Lin • Google Developer Expert • LINE Developer Meetup
• LINE TAIWAN TECHPULSE Organizer LINE Technology Evangelist 2
3
How to get Youtube Video Info? https://www.youtube.com/watch?v=rFejpH_tAHM https://youtube.com/get_video_info?video_id=rFejpH_tAHM 4
How to get Youtube Video Info? 5
RAW Data 6
How to parse with Query Parameter 7
Get Video Author and Title How to handle JSON value
without structure data. 8
Let’s find the video download link 9
How to process JSON data from Web Jsonlint.com à Paste
and copy on text editor à Json to Go 10
Using the file download link… 11
Using the file download link… (what?) No url??? But new
”cipher”? 12
Finally … https://stackoverflow.com /questions/60607291/you tube-video-downloader- with-php 13
Look into browser player related setting https://www.youtube.com/embed/FHpvI8oGsuQ?hl=en https://www.youtube.com/s/player/e3cd195e/player_ias.vflset/en_US/base.js 14
Make it simple … “string” EQ(“string”, 3) è c =
‘s’ è a[0] = a[2] = `r` è a[2] = `s` à “rtsing” 15
Decipher :Operation 16
Decipher : Parse Ops and Args https://github.com/kkdai/youtube/blob/master/decipher.go#L12 17
Looking for contributors 18 https://github.com/kkdai/youtube
LINE TECH FRESH https://engineering.linecorp.com/zh-hant/blog/tech-fresh-2020/ 19
20
Q&A 21