Try   HackMD

Note: Make a qr-code creator with python script

Overview:

Cake 2024 職涯博覽會cake resume外商大拜拜的前一天(20240920)突發奇想:
何不把線上履歷更新之後,網址輸出成一個qr-code image呢?不僅當天可以增加印象,以後面試也可以沿用,重點是很酷(?)
想到,就要去做;於是開始著手進行
大致方向是選用python,撰寫一個簡單的轉換程式

scripting

透過python3-pip安裝支援套件(python-qrcode)

command: pip install qrcode

Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →

套件安裝完畢後直接撰寫程式即可

source code

vim qrCreator.py

Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →

額外定義url變數的用意是日後修改方便和可以透過shell script等等形式使用批次生成
雖然感覺好像沒啥用

撰寫完畢直接執行:
python qrCreator.py

result

產出圖片如下:

Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →

掃描後成功得到連結並可以使用:

Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →

Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →

Ref.

python-qrcode