差異處
這裏顯示兩個版本的差異處。
Both sides previous revision 前次修改 下次修改 | 前次修改 | ||
公開:csv與excel [2020/12/04 17:44] kent |
公開:csv與excel [2021/01/08 14:40] (目前版本) kent [爬蟲的範例程式含註解] |
||
---|---|---|---|
行 33: | 行 33: | ||
[[https://openpyxl.readthedocs.io/en/stable/charts/introduction.html|支援的圖表種類]] | [[https://openpyxl.readthedocs.io/en/stable/charts/introduction.html|支援的圖表種類]] | ||
+ | |||
+ | ====== 爬蟲的範例程式含註解 ====== | ||
+ | |||
+ | 此範例程式可以把特殊教育相關新聞的最新200則爬回來,並輸出為 Excel 檔。 | ||
+ | |||
+ | [[https://www.dropbox.com/s/t2ihrec74oz07eq/HelloCrawlGoogleNewsSearch_Demo.ipynb.zip?dl=0|範例程式]] | ||
+ | |||
+ | 使用方式: | ||
+ | - 下載後解開zip取得 ipynb 檔。 | ||
+ | - 把 ipynb 檔上傳至您 docker 的環境中。 | ||
+ | - 開啟並且執行。 | ||
+ | - 執行完畢後,會於同一個目錄中輸出 Output.xlsx 裡面會包含有爬到的新聞內容。 | ||