tyleruploads/devtkit

GitHub: tyleruploads/devtkit

一款 Python 编写的 DEV.to 社区数据导出工具,支持将 API 获取的关注者信息批量保存为 Markdown、CSV 和 JSON 格式。

Stars: 2 | Forks: 2

# devtkit [![GitHub 许可证](https://img.shields.io/badge/license-MIT-blue)](https://github.com/tyleruploads/devtkit/blob/main/LICENSE) [![GitHub Issues](https://img.shields.io/github/issues/tyleruploads/devtkit)](https://github.com/tyleruploads/devtkit/issues) [![Python 版本](https://img.shields.io/badge/python-3.10%2B-blue)](https://www.python.org/) [![PyPI - 版本](https://img.shields.io/pypi/v/devtkit)](https://pypi.org/project/devtkit/) [DEV Tool Kit (devtkit)](https://github.com/tyleruploads/devtkit) 是一个使用 Python 编写的开源 DEV 社区工具包,允许用户导出从 DEV.to API 获取的信息。 ## 安装说明 目前,有 2 种方法可以安装 devtkit
通用方法(Windows、Linux 和 macOS)
### 安装 pipx(如果您尚未安装) * **Windows**: ``` pip install pipx pipx ensurepath ``` * **Linux (Debian/Ubuntu):** ``` sudo apt update sudo apt install pipx pipx ensurepath ``` * **Linux (Fedora):** ``` sudo dnf install pipx pipx ensurepath ``` * **macOS(通过 [Homebrew](https://brew.sh/)):** ``` brew install pipx pipx ensurepath ``` ### 安装命令行实用工具 现在您已经安装了 `pipx`,请运行以下命令来安装 [`devtkit`](https://github.com/tyleruploads/devtkit): ``` pipx install devtkit ```
克隆代码仓库并运行脚本
如果您想运行脚本、查看源代码或做出贡献,请在本地克隆代码仓库: ``` git clone https://github.com/tyleruploads/devtkit.git cd devtkit pip install -r requirements.txt ``` **如果您使用 pipx 安装**: 运行 `devtkit` **否则:** 运行 `python3 src/main.py`
## 使用说明 要使用 devtkit,只需按照脚本给出的提示进行操作即可。 运行示例如下: ``` --- Formats --- 0. Markdown 1. CSV 2. JSON Please enter the numbers for the following formats you would like to save to: 012 --- File Save Locations --- Please enter save path for Markdown (Default: followers.md): ~/Documents/followers.md Please enter save path for Csv (Default: followers.csv): ~/Documents/followers.csv Please enter save path for Json (Default: followers.json): ~/Documents/followers.json To get an API Key, go to: DEV.to -> Settings -> Extensions, and scroll to the bottom. DEV.to API Key: (securely collected with the getpass module from the Python STL) Followers to pull in each GET request (default is 1000): A maximum of 1000 users will be pulled from each page. Page count: 1. 534 followers pulled on page 1. 534 total followers have been found so far. Page count: 2. 0 followers pulled on page 2. 534 total followers found. Saved in the Markdown file format to /home/tyler/Documents/followers.md Saved in the CSV file format to /home/tyler/Documents/followers.csv Saved in the JSON file format to /home/tyler/Documents/followers.json ``` ## 功能 devtkit 拥有大量使其在同类项目中脱颖而出的功能。 * **多格式导出**:保存为 Markdown、CSV 和 JSON 文件 * **安全的 API Key 处理**:使用 Python STL 模块 getpass 安全地收集用户的 DEV.to API Key,且仅用于与 DEV.to API 端点进行交互 * **智能速率限制**:自动处理 `429 Too Many Requests` 响应 * **精美且详细的输出**:输出一个精美且详细的 Markdown 文件、详细的 CSV 或 JSON 文件,或同时输出这三者 ## 安全性 有关报告 devtkit 安全漏洞的信息,请参阅 [SECURITY.md](SECURITY.md) ## 许可证 [MIT](https://choosealicense.com/licenses/mit/)
标签:API集成, Blue Team, Python, SOC Prime, 可观测性, 开发工具, 数据导出, 无后门, 逆向工具