Skip to main content

API Wrapper for Kur.ac.

Project description

What is kur.ac?

Kur.ac is a free to use URL shortener offering various custom subdomains. A user can paste their URL, select a subdomain and get a shorter link.

The following subdomains are offered: koji mali oces veliki volim

Repository

This repository hosts an API wrapper made for this service.

The wrapper was made using only the requests Python library. It works by sending a POST request to http://www.kur.ac/_generate.

Installation and usage

In order to start shortening URLs using this package, you must first install it by running pip install kurac.

After the installation is complete, you may import the package by typing import kurac into your Python console or adding it to your script. You may also import it by using from kurac import kurac.

Finally, you may run the kurac function to generate a shortened URL. This function takes two arguments: url and prefix. The url argument is where you specify the link you'd like to shorten, and the prefix argument specifies the prefix to be appended. If left blank, the kur.ac service will automatically generate one.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kurac-1.0.2.tar.gz (2.3 kB view hashes)

Uploaded Source

Built Distribution

kurac-1.0.2-py3-none-any.whl (2.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page