Closed jayasahan closed 9 months ago
This is the example URL shortener
from appwrite import Client
client = Client(
"YOUR_API_ENDPOINT",
"YOUR_API_KEY"
)
long_url = "https://example.com"
short_url = shorten_url(long_url)
print("Shortened URL:", short_url)
And my instrutions
To run this script, you will need to replace YOUR_API_ENDPOINT and YOUR_API_KEY with your own Appwrite project settings. You can then run the script from the command line:
python shorten_url.py
This will print the shortened URL to the console. You can then use this short URL to access the original long URL.
What does this PR do?
I have made a template of a URL shorter with Python using Appwrite functions
Test Plan
After this, I would make a basic URL shortener and add it to this.
Have you read the Contributing Guidelines on issues?
Yes