[ Due: 5/23 Fri. ]
本次作業會讓大家練習如何爬網頁。只需要用簡單的 node.js script 就可以了,不需要用非常複雜的工具。
複習一下 JSON 是什麼,長什麼樣子,如何用 JSON 儲存資料
http://ccsp.ntumobile.org/webdev/js.html#/9/5
複習一下 2014/4/24 Kirby 講師的課程投影片
https://speakerdeck.com/tkirby/data-parsing-and-visualization
不會檢查,但是對本作業會有幫助。
[
{
"category":"動物",
"news_count": 2,
"news":[
{
"title":"新聞1標題",
"url":"新聞1網址",
"time":"新聞1刊登時間",
"video": true
},
{
"title":"新聞2標題",
"url":"新聞2網址",
"time":"新聞2刊登時間",
"video": false
}
]
},
{
"category":"FUN",
"news_count": 1,
"news":[
{
"title":"新聞3標題",
"url":"新聞3網址",
"time":"新聞3刊登時間",
"video": false
}
]
}
]