Find the available parking in New Taipei, Taiwan.
Sometimes I want to know whether I can go to somewhere by car tomorrow. But I need to make a decision today. This will effect my time to get up. So I need history parking information to help me to make a decision.
I just write the crawler. I will add SQLite function to save history information, and use Vue.js to show these information.
func main() {
s, err := getParkInfo()
if err != nil {
fmt.Println(err)
return
}
fmt.Println(findParkInfo(s, "新北市藝文中心平面停車場"))
fmt.Println(findParkInfo(s, "板橋高中地下停車場"))
fmt.Println(findParkInfo(s, "市民廣場地下停車場"))
fmt.Println(findParkInfo(s, "寶橋立體停車場"))
}
新北市藝文中心平面停車場 28 0 107/05/22 17:48:43
板橋高中地下停車場 37 229 107/06/08 12:22:17
市民廣場地下停車場 132 841 107/06/08 12:23:00
寶橋立體停車場 114 482 107/06/08 12:21:03