https://github.com/chomelc/urlshortener
A script to shorten a long URL and copy the shortened link to the clipboard.
https://github.com/chomelc/urlshortener
python shell-scripts
Last synced: about 2 months ago
JSON representation
A script to shorten a long URL and copy the shortened link to the clipboard.
- Host: GitHub
- URL: https://github.com/chomelc/urlshortener
- Owner: chomelc
- Created: 2020-09-10T16:28:23.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-10T16:39:45.000Z (almost 6 years ago)
- Last Synced: 2025-03-29T07:42:50.369Z (over 1 year ago)
- Topics: python, shell-scripts
- Language: Python
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# URLshortener v1.0
A script to shorten a long URL and copy the shortened link to the clipboard.
## Prerequesites
- Install [pyshorteners](https://pypi.org/project/pyshorteners/).
```
$ pip3 install pyshorteners
```
- Install [pyperclip](https://pypi.org/project/pyperclip/).
```
$ pip3 install pyperclip
```
## How-to
First, add the following line to your `.bashrc` file:
```shell
source ~//.url_command.sh
```
Then, you will be able to use the `surl` command : `surl ` will shorten the `URL` and copy the result to the clipboard.