# kunlun-view-script **Repository Path**: j2eelyh/kunlun-view-script ## Basic Information - **Project Name**: kunlun-view-script - **Description**: No description available - **Primary Language**: Python - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-08-15 - **Last Updated**: 2024-08-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 打包 ### win ```commandline pyinstaller --onefile --noconsole --distpath .\war\win\tools stopServer.py pyinstaller --onefile --noconsole --distpath .\war\win\tools kunLunViewServer.py ``` ### mac ```shell pip install -r requirements.txt python kunLunViewServer.py ``` ## 请求 ```commandline http://localhost:12345/getMacAddress ``` ```shell fetch('http://localhost:12345/getMacAddress', { method: 'GET', headers: { 'Content-Type': 'application/json', // 其他自定义头 } }) .then(response => { if (response.ok) { return response.json(); } else { throw new Error('Network response was not ok.'); } }) .then(data => { console.log(data); // 处理返回的数据 }) .catch(error => { console.error('There was a problem with the fetch operation:', error); }); ```