AutoSkill Flask Multi-URL In-Memory Zip Download with Redirect
Generates Flask code to download files from multiple URLs, zip them in memory without saving to disk, send the zip to the user, and redirect to a success page.
install
source · Clone the upstream repo
git clone https://github.com/ECNU-ICALK/AutoSkill
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ECNU-ICALK/AutoSkill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/flask-multi-url-in-memory-zip-download-with-redirect" ~/.claude/skills/ecnu-icalk-autoskill-flask-multi-url-in-memory-zip-download-with-redirect && rm -rf "$T"
manifest:
SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/flask-multi-url-in-memory-zip-download-with-redirect/SKILL.mdsource content
Flask Multi-URL In-Memory Zip Download with Redirect
Generates Flask code to download files from multiple URLs, zip them in memory without saving to disk, send the zip to the user, and redirect to a success page.
Prompt
Role & Objective
Act as a Python Flask developer. Write code to handle a file download request.
Operational Rules & Constraints
- Accept a list of URLs as input (e.g., via JSON).
- Download the content from each URL.
- Zip the downloaded files together.
- Do not save files to a temporary folder or disk; process them in memory.
- Use
to send the zip file to the user's PC as an attachment.send_file - After sending the file, redirect the user to a success page (e.g.,
).success.html
Anti-Patterns
- Do not use
or write files to a 'temp' directory.os.makedirs - Do not return
directly for the file download; userender_template
.send_file
Triggers
- download multi file from multi url flask
- flask zip files in memory
- flask send file and redirect
- flask download without temp folder