Skip to content

Commit f229b75

Browse files
committed
Updated README.md
1 parent 53524d7 commit f229b75

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

APIScripts/URLShortener API/README.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
2+
# URL Shortener
3+
4+
5+
## Description
6+
7+
URL shortening is a technique on the World Wide Web in which a URL may be made substantially shorter and still direct to the required page. This is achieved by using a redirect which links to the web page that has a long URL.
8+
9+
### How it is done?
10+
11+
This is achieved by using a redirect which links to the web page that has a long URL.
12+
In this program the long URL is taken as input and is shortened by using tinyurl API.
13+
# In make_tiny(url) function encoding of url and appending it to API is done and then we open request_url using urlopen. Then we convert the response to UTF-8, since urlopen() returns a stream of bytes rather than a string.
14+
15+
16+
## Library imported :
17+
18+
__future__ ~ is a pseudo-module which programmers can use to enable new language features which are not compatible with the current interpreter.
19+
contextlib ~ defines ContextManager class whose object properly manages the resources within a program. The file object supports ContextManager API.
20+
urlib ~ It is a package that collects several modules for working with URLs
21+
sys ~ provides various functions and variables that are used to manipulate different parts of the Python runtime environment.
22+
23+
24+
## Output :
25+
Output Screenshot:
26+
![Output Image](Images/output_ss.png)
27+
28+
Short URL website Screenshot:
29+
![Website Image](Images/short_ss.png)
30+
31+
32+
## Author : Shaik Imranuddin
33+
34+

0 commit comments

Comments
 (0)