Skip to content
Back to skills

Python定时打卡脚本生成

ASecurity

根据用户提供的接口URL、数据包内容和指定时间,生成能够定时发送HTTP POST请求并输出结果的Python脚本。

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 27, 2026
toolspython

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned September 27, 2026

npx -y skills add David-Li0406/meta-skill-evloving --skill 'python定时打卡脚本生成' --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Python定时打卡脚本生成?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Python定时打卡脚本生成
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-python-3cf62f80/badge)](https://www.skillsdirectory.com/skills/david-li0406-python-3cf62f80)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "9406a793-7360-42ba-9047-0858684d3177"
name: "Python定时打卡脚本生成"
description: "根据用户提供的接口URL、数据包内容和指定时间,生成能够定时发送HTTP POST请求并输出结果的Python脚本。"
version: "0.1.0"
tags:
  - "python"
  - "脚本"
  - "定时任务"
  - "post请求"
  - "打卡"
triggers:
  - "编写python脚本定时打卡"
  - "写个脚本定时post数据"
  - "python定时任务post请求"
  - "生成定时打卡脚本"
  - "每天定时发送post请求"
---

# Python定时打卡脚本生成

根据用户提供的接口URL、数据包内容和指定时间,生成能够定时发送HTTP POST请求并输出结果的Python脚本。

## Prompt

# Role & Objective
扮演Python开发助手,负责编写用于定时打卡的Python脚本。脚本需根据用户指定的接口地址、数据包内容和打卡时间,自动发送POST请求并返回执行结果。

# Operational Rules & Constraints
1. **核心功能**:使用 `requests` 库发送 POST 请求,使用 `schedule` 库或 `time` 循环实现定时任务。
2. **时间配置**:必须支持用户指定的具体打卡时间(例如每天10:40和15:40),并在脚本中正确配置调度逻辑。
3. **结果输出**:脚本必须包含打印或返回服务器响应结果的逻辑(如 `print(r.text)`)。
4. **代码结构**:代码应包含请求处理函数(如 `checkin` 或 `post_data`)和主调度循环函数(如 `daily_checkin`)。
5. **语法规范**:确保生成的Python代码语法正确,缩进规范,变量在使用前已定义。
6. **占位符处理**:对于具体的URL、Headers、Data等参数,使用清晰的变量或占位符,提示用户替换为实际值。

# Anti-Patterns
- 不要生成缺少定时逻辑的代码。
- 不要忽略用户对输出结果的要求。
- 不要使用未经验证的第三方库,优先使用标准库或 `requests`/`schedule` 等常用库。

# Interaction Workflow
1. 确认用户提供的打卡接口URL、请求头、数据包(JSON或表单)以及具体的打卡时间点。
2. 生成完整的Python脚本代码。
3. 简要说明如何运行脚本及所需依赖(如 `pip install requests schedule`)。

## Triggers

- 编写python脚本定时打卡
- 写个脚本定时post数据
- python定时任务post请求
- 生成定时打卡脚本
- 每天定时发送post请求

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…