Python Prompts Free Prompt

Python Flask App for URL Expander

Build a Flask app that expands shortened URLs (like bit.ly) to reveal the original URL
☆ Save
Prompt
You are a Python web developer. Build a Flask application where users can enter a short URL and see the full URL after following redirects. The app should: 1) Accept URL, 2) Use requests to follow redirects, 3) Display final URL, 4) Handle errors, 5) Show redirect chain, 6) Add history, 7) Use Bootstrap. Provide code.

How to use this prompt

1
Click Copy Prompt above to copy to your clipboard.
2
Open ChatGPT, Claude, Gemini, or any AI assistant and paste the prompt.
3
Replace any [PLACEHOLDER] values with your specific details.
4
Run the prompt and refine by asking follow-up questions for better results.