We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47c06b2 commit a188105Copy full SHA for a188105
OTHERS/URL Shortner/tiny-url-shortner.py
@@ -0,0 +1,14 @@
1
+from requests import post
2
+
3
+# requires API from tinyurl.com
4
5
+def TinyShortner(big_url: str) -> str:
6
+ """
7
+ Function short the big urls to tiny by Tiny Api
8
9
+ return post("https://tinyurl.com/api-create.php", data={"url": big_url}).text
10
11
12
+if __name__ == "__main__":
13
+ url = input("Enter the Big Url to short: ")
14
+ print(TinyShortner(url))
0 commit comments