突然有這個需求,是因為我想把爬蟲的資料存下來,並且讓APP讀取。
因此我希望可以有一個平臺可以免費提供
因為mac已經內建python2.7
又爬文說mac很多東西都會吃python2.7…
可是我又用到python3的語言(beautifulSoup我用3的版本)
上篇Google Sheet With Python是用Python寫,這篇用Swift
且此篇附上使用JSON / API 取得資料(google版本為V4)
JSON
參考網站
演算法筆記
作業請參考:網址
當時是寫csv檔,還要多import csv才能使用
如果只是讀txt檔,並不用再多import其它libray