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
19k
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
台大資料分析與決策社 機器學習的商業應用_Rei
line_developers_tw
PRO
0
12
政大數據分析社 機器學習的商業應用_Rei
line_developers_tw
PRO
0
23
Gemini 2025 新功能回顧 LINE Bot 完美結合
line_developers_tw
PRO
0
470
NTUAI企業參訪
line_developers_tw
PRO
0
11k
Data TECH FRESH企業參訪- Amber
line_developers_tw
PRO
0
23k
Data Team 實習分享
line_developers_tw
PRO
0
19k
Backend Intern之旅
line_developers_tw
PRO
0
28k
清大企業參訪- Ben
line_developers_tw
PRO
0
4.4k
LLM 商品規格萃取大冒險- Vila
line_developers_tw
PRO
0
2.9k
Other Decks in Technology
See All in Technology
Amazon Qはアマコネで頑張っています〜 Amazon Q in Connectについて〜
yama3133
1
130
AIエージェント時代に必要な オペレーションマネージャーのロールとは
kentarofujii
0
110
AIエージェント×GitHubで実現するQAナレッジの資産化と業務活用 / QA Knowledge as Assets with AI Agents & GitHub
tknw_hitsuji
0
230
Phase01_AI座学_基礎
overflowinc
0
3.9k
PostgreSQL 18のNOT ENFORCEDな制約とDEFERRABLEの関係
yahonda
0
120
Datadog で実現するセキュリティ対策 ~オブザーバビリティとセキュリティを 一緒にやると何がいいのか~
a2ush
0
130
Laravelで学ぶOAuthとOpenID Connectの基礎と実装
kyoshidaxx
4
1.8k
契約書からの情報抽出を行うLLMのスループットを、バッチ処理を用いて最大40%改善した話
sansantech
PRO
2
260
Phase03_ドキュメント管理
overflowinc
0
2.5k
The Rise of Browser Automation: AI-Powered Web Interaction in 2026
marcthompson_seo
0
310
Phase08_クイックウィン実装
overflowinc
0
1.8k
Phase04_ターミナル基礎
overflowinc
0
2.3k
Featured
See All Featured
Fireside Chat
paigeccino
42
3.8k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8k
KATA
mclloyd
PRO
35
15k
The SEO Collaboration Effect
kristinabergwall1
0
400
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
280
Bash Introduction
62gerente
615
210k
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.2k
Raft: Consensus for Rubyists
vanstee
141
7.4k
Designing Experiences People Love
moore
143
24k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
For a Future-Friendly Web
brad_frost
183
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