Premay/Threat-Intelligence-Portfolio
GitHub: Premay/Threat-Intelligence-Portfolio
基于 Streamlit 的威胁情报分析师个人作品集网站模板,提供暗色主题与一键部署能力。
Stars: 0 | Forks: 0
# 威胁情报个人作品集 — Streamlit
一个为威胁情报分析师打造的个人作品集网站,基于 Streamlit 构建。
## 📁 项目结构
```
ti-portfolio/
├── app.py ← Main Streamlit application
├── styles.css ← Full custom CSS (dark TI aesthetic)
├── requirements.txt ← Python dependencies
├── .gitignore
├── .streamlit/
│ └── config.toml ← Theme + server config
└── assets/ ← Place any images here (e.g. threat-map.png)
```
## ✏️ 个性化网站
打开 `app.py` 并编辑文件顶部的变量:
```
ANALYST_NAME = "Your Name"
ANALYST_TITLE = "Threat Intelligence Analyst"
ANALYST_EMAIL = "your.email@example.com"
LINKEDIN_URL = "https://www.linkedin.com/in/yourprofile"
GITHUB_URL = "https://github.com/yourusername"
```
编辑 `STATS`、`PROJECTS`、`CAPABILITIES` 和 `TOOLS` 列表,以反映你的
实际工作、工具和指标。
## 🚀 部署到 Streamlit Cloud(分步指南)
### 步骤 1 — 推送到 GitHub
```
# 在你的终端中,从 ti-portfolio 文件夹内部:
git init
git add .
git commit -m "Initial commit — TI portfolio"
# 在 github.com 上创建一个新的 repo(例如 ti-portfolio),然后:
git remote add origin https://github.com/YOUR_USERNAME/ti-portfolio.git
git branch -M main
git push -u origin main
```
### 步骤 2 — 连接到 Streamlit Cloud
1. 前往 **https://share.streamlit.io** 并使用 GitHub 登录
2. 点击 **"New app"**
3. 选择你的代码仓库:`YOUR_USERNAME/ti-portfolio`
4. 设置 **Branch** → `main`
5. 设置 **Main file path** → `app.py`
6. 点击 **"Deploy"**
你的网站将会在以下地址上线:
`https://YOUR_USERNAME-ti-portfolio-app-XXXX.streamlit.app`
## 🖥️ 本地运行
```
pip install -r requirements.txt
streamlit run app.py
```
然后在浏览器中打开 **http://localhost:8501**。
## 🖼️ 添加威胁地图图片
将任意 PNG/JPG 图片放入 `assets/` 文件夹,并在 `app.py` 中引用它:
```
from PIL import Image
img = Image.open("assets/threat-map.png")
st.image(img, use_container_width=True)
```
## 📝 备注
- 项目过滤器(全部 / 研究 / OSINT / 检测)使用 Streamlit
`session_state` 来在重新运行时保持激活的选项。
- 所有样式都位于 `styles.css` 中 —— 无需外部 CSS 框架。
- `.streamlit/config.toml` 设置了暗色主题,因此即使在
自定义 CSS 应用之前,它也能正确加载。
标签:Kubernetes, Python, Streamlit, 个人主页, 威胁情报, 开发者工具, 无后门, 简历网站, 访问控制, 逆向工具