diff --git a/61/ShubhamAshish/URLShortner.py b/61/ShubhamAshish/URLShortner.py new file mode 100644 index 000000000..9d07cc0a1 --- /dev/null +++ b/61/ShubhamAshish/URLShortner.py @@ -0,0 +1,15 @@ +import streamlit as st +import pyperclip +import pyshorteners + + + +st.title("URL Shortner") +st.write("Enter the URL to shorten") +url = st.text_input("URL") +if st.button("Shorten"): + shortener = pyshorteners.Shortener() + x = shortener.tinyurl.short(url) + st.write(x) + pyperclip.copy(x) + st.success('Copied to clipboard') diff --git a/61/ShubhamAshish/requirements.txt b/61/ShubhamAshish/requirements.txt new file mode 100644 index 000000000..babb76591 --- /dev/null +++ b/61/ShubhamAshish/requirements.txt @@ -0,0 +1,3 @@ +streamlit +pyperclip +pyshorteners \ No newline at end of file