# Python網路連線程式、公開資料串接 request json ###### tags: `python` [參考課程(JSON解讀)](https://www.youtube.com/watch?v=sUzR3QVBKIo&list=PL-g0fdC5RMboYEyt6QS2iLb_1m7QcgfHk&index=15) ## 載入模組 ```python= import urllib.request ``` ## 下載特定網址資料 ```python= import urllib.request as request with request.urlopen(網址) as response: data = response.read() data = response.read().decode("utf-8") #用utf-8編碼 print(data) ``` ## 公開資料 [台北市公開資料](http://data.taipei/) 確認資料格式 1. JSON 2. HTML
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up