Oscar's Blog

賴奎元的部落格

0%

貓貓熱潮!

最近推特上POPCAT很紅,在疫情的狀態下大家嫌到發慌,各國紛紛獻出自己的手指,想為國爭光(?)。身為一個資訊專業的菜鳥,同時又是一名騙吃騙喝的程式老師,這點東西還是拿的出手啦。

用什麼寫?

F12打開加一行onclick,結束。你說怎麼可能這麼簡單?就這樣啊。
但我想用python啊!可以嗎?當然可以

確定思路

既然選擇python,那來個Selenium+ChromeDriver的組合吧!最後再以Pyinstaller打包成exe檔,拿去分發給親朋好友(我就是這麼無聊)。

前置作業

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

Quick Start

Create a new post

1
$ hexo new "My New Post"

More info: Writing

Run server

1
$ hexo server

More info: Server

Generate static files

1
$ hexo generate

More info: Generating

Deploy to remote sites

1
$ hexo deploy

More info: Deployment