SELECT PROJECT
๐ Project 1: Real-time Data App
PROJECT GOAL (เคเฅเคฏเคพ เคฌเคจเคพเคจเคพ เคนเฅ)
Create a CLI URL Shortener application in Python that takes a list of web links to process
automated URL shortening simulations.
Requirements
1. Inside the application, use a dictionary structure to store long URL links mapped against short unique keys.
2. The application will accept a list (url_actions) containing operational tuples like ("shorten", "https://example.com") or ("redirect", "short_key").
3. Run a for loop to process each system action and track the active URL records systematically.
4. Validation Logic :
Requirements
1. Inside the application, use a dictionary structure to store long URL links mapped against short unique keys.
2. The application will accept a list (url_actions) containing operational tuples like ("shorten", "https://example.com") or ("redirect", "short_key").
3. Run a for loop to process each system action and track the active URL records systematically.
4. Validation Logic :
1. Generate a short unique key code identifier using random choice selections
from string alphanumeric arrays.
2. Check and prevent duplicate generation entries if the same long website link is submitted
multiple times.
3. Look up stored shortcut database values and correctly return the original long
destination URL or throw an error.
CHECKLIST
main.py
OUTPUT
โถ Pyodide Console v0.26.0 Ready...
โถ Click the 'Run' button above to execute your Python code.
โถ Your program output or errors will appear here.
โถ Click the 'Run' button above to execute your Python code.
โถ Your program output or errors will appear here.