c-0 9429

Step-by-step guide to run Python script on Windows 11 PC

8 0
2026-09-13
B

Step-by-step guide to run Python script on Windows 11 PC

Step 1: Install Python

  1. Go to the official Python website:
    https://www.python.org/downloads/
  2. Click the big yellow button “Download Python 3.x.x” (the latest version is fine).
  3. Open the downloaded file (python-3.x.x-amd64.exe).
  4. Important: On the first screen, check the box that says
    ☑ Add python.exe to PATH
  5. Click Install Now.
  6. Wait until it says “Setup was successful”, then click Close.

Step 2: Open Command Prompt

  1. Press the Windows key on your keyboard.
  2. Type cmd and press Enter.
  3. A black window (Command Prompt) will open.

Step 3: Install the required packages

In the Command Prompt window, copy and paste these two commands one by one (press Enter after each):

python -m pip install --upgrade pip
python -m pip install requests beautifulsoup4

Wait until both finish (you should see “Successfully installed…”).

Step 4: Create the Python file

  1. Open Notepad (search for “Notepad” in the Start menu).
  2. Copy the entire final script I gave you (the last version that includes radical + stroke count).
  3. Paste it into Notepad.
  4. Click File → Save As.
  5. In the “Save as type” dropdown, choose All Files (*.*).
  6. Name the file exactly:
    lexlist_crawler.py
  7. Choose a easy location, for example your Desktop.
  8. Click Save.

Step 5: Run the script

  1. Open Command Prompt again (or use the same one).
  2. Go to the folder where you saved the file.
    If you saved it on the Desktop, type this and press Enter:
    cd Desktop
  3. Now run the program:
    python lexlist_crawler.py

What you will see

  • The script will start checking IDs one by one.
  • You will see lines like:
    ID 0001 → 一 | 一部 | 1 畫 | yī
  • It will take a long time (several hours) because it waits 1.2 seconds between each request to be polite to the website.
  • When it finishes, a file named lexlist_full.csv will appear on your Desktop.

You can open the .csv file with Excel or Google Sheets.

Tips

  • Do not close the Command Prompt window while it is running.
  • If you want to stop it early, press Ctrl + C.
  • If you get an error saying “python is not recognized”, it means Python was not added to PATH. Reinstall Python and make sure the “Add to PATH” box is checked.


c-1 9429






已複製到剪貼簿
網址 QR Code (Step-by-step guide to run Python script on Windows 11 PC)
本頁網址 QR Code
Menu2

E-Mail:[email protected]

www.hkcards.com

2010 - 2026

hkcards 倉頡字典
學倉頡
學倉頡16688
倉頡字母及輔助字形7136
倉頡對字的切割2854
倉頡字母「日月金木水火土」5531
倉頡練習:日月金木水火土 練習11071
倉頡字母「竹戈十大中一弓」4575
倉頡練習:竹戈十大中一弓 練習10518
倉頡字母「人心手口」2758
倉頡練習:人心手口 練習4921
倉頡字母「尸廿山女田卜」3550
倉頡練習:尸廿山女田卜 練習5133
倉頡「難」鍵1962
輸入倉頡字母所代表的字1739
倉頡字母及輔助字形練習 練習15864
鍵盤打字教學3752
倉頡盲打練習 練習27682
倉頡取碼的基本原則4140
倉頡初階練習 練習9633
連體字2184
連體字練習 練習3992
倉頡輔助字形的倉頡碼1162
分體字1775
字首1066
字身1233
分體字練習 練習3093
特別字首1203
特別字首練習 練習1567
容易錯的字首979
容易錯的字首練習 練習1932
倉頡字形 vs 香港小學字形1133
倉頡裏一些容易混淆的字形2094
複合字1391
複合字練習 練習2241
包含省略原則1516
包含省略原則練習 (1) 練習843
包含省略原則練習 (2) 練習918
難字1180
難字練習 練習1867
特殊字1939
特殊字練習 練習1494
結語744
下載倉頡字母及輔助字形表9657
三大主流作業系統的倉頡輸入法863
在 Win11 安裝「微軟倉頡」4840
在 Win11 使用「微軟倉頡」輸入中文1295
Android 的「Gboard 鍵盤」倉頡1529
iPhone, iPad & Mac 啟用原生的倉頡輸入法的方法1854
倉頡輸入法練習 練習10912
倉頡難拆字練習 練習2630