突然有這個需求,是因為我想把爬蟲的資料存下來,並且讓APP讀取。
因此我希望可以有一個平臺可以免費提供
使用語言: Swift4,XCode版本: 9.4,模擬器版本: iOS11
today extension是iOS8就有的東西,不過之前一直沒用到
因為mac已經內建python2.7
又爬文說mac很多東西都會吃python2.7…
可是我又用到python3的語言(beautifulSoup我用3的版本)
上篇Google Sheet With Python是用Python寫,這篇用Swift
且此篇附上使用JSON / API 取得資料(google版本為V4)
JSON
附上官方文件(傳送門)
2. 使用Selenium原因:爬蟲遇到iframe, 我要的網址藏在iframe的#Document內。
語言: Swift4;環境: Xcode9.4
These were the top 10 stories published by 碼農勤耕田; you can also dive into yearly archives: 2018, 2019, 2020, and 2021.