# downutils **Repository Path**: catmes/downutils ## Basic Information - **Project Name**: downutils - **Description**: DownloadUtils: 爬虫下载小工具,包含从Excel批量下载图片或其他文件等功能。 - **Primary Language**: Go - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-05-27 - **Last Updated**: 2025-11-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 简介 DownUtils: 爬虫下载小工具,从Excel文件读取某一列数据,批量下载图片或其他文件的功能。 - 可设置User-Agent, Cookie, Referer, Http代理等参数,应付大部分反爬虫场景。 ## UI界面 - 图片(文件)批量下载工具: ![UI界面](https://raw.githubusercontent.com/iotames/downutils/master/screenshot_down.png) ## 构建应用 ### Go语言原生构建 ```golang go build -o downutils.exe . ``` ### Fyne构建 ```shell # 下载安装fyne命令工具(老版本) # NOTE: This tool is deprecated and has migrated to fyne.io/tools/cmd/fyne. # 新版本完全不兼容老版本,可能会无法打包,老项目请谨慎升级。 # 新版本的fyne命令工具 go install fyne.io/tools/cmd/fyne@latest go install fyne.io/fyne/v2/cmd/fyne@latest # 使用fyne打包命令 fyne package -os windows -icon resource/images/logo.png ``` 默认读取 `FyneApp.toml` 配置文件打包。命令行参数覆盖配置文件参数。 - `-os` 参数值: `darwin` `linux` `windows` - `-icon` 应用程序图标路径 ## 其他问题 ### 开发依赖 - Go(v1.19+)语言工具(略) - C编译器(用于连接系统图形驱动) - 系统图形驱动程序 #### Linux Debian: gcc, 图形库头文件(graphics library header files) ```shell sudo apt-get install gcc libgl1-mesa-dev xorg-dev ``` #### Windows - 下载并安装TDM-GCC(gcc编译器): https://github.com/jmeubank/tdm-gcc/releases/download/v10.3.0-tdm64-2/tdm64-gcc-10.3.0-2.exe 其他操作系统请参看官方文档: https://docs.fyne.io/started/ ### 生成应用图标 打包后的应用任务栏和窗口左上角图标都是空的。必须打包图片静态资源到应用程序中。 测试发现 `powershell` 命令生成的 `bundled.go` 文件为 `UTF-16` 编码,无法使用。 打开 git-cli 使用 `Bash` 命令模式生成 `bundled.go` 则正常。 fyne bundle ./resource/images/logo.png >> bundled.go app := app.New() // app.SetIcon(theme.FyneLogo()) app.SetIcon(StaticResource) > https://blog.csdn.net/raoxiaoya/article/details/121626549 ### 中文字体支持 > https://github.com/lusingander/fyne-font-example 由于思源字体是 `OTF` 格式,有人已转换成了 `TTF` 格式,感谢无私分享的网友们: - https://github.com/be5invis/source-han-sans-ttf/releases - https://github.com/junmer/source-han-serif-ttf - https://github.com/Pal3love/Source-Han-TrueType