Skip to main content

Create redirect url's with click monitoring from multiple providers

Project description

ClickCounter

Latest Version PyPI - Downloads

Create redirect url's with click monitoring from multiple providers.

Features

  • Growing list of click count providers (with a common lib interface)
  • Commandline tool (CLI)
  • Simple and easy to use

Support the development ❤️

You can support the development by:

  1. Buying the maintainer a coffee
  2. Buying some Lambdarest swag

Install

Install from pypi:

$ pip install clickcounter

Usage (module)

using the default provider (shorturl.at)

import os
import time
import clickcounter

track_url = clickcounter.register_url("https://example.com")
print(track_url)
first_count = clickcounter.get_visits(track_url)
print(first_count)
clickcounter.make_visit(track_url)
time.sleep(2)
second_count = clickcounter.get_visits(track_url)
print(second_count)

# https://shorturl.at/iANR5
# 0
# 1

more examples here:

Usage (CLI)

usage: _cli.py [-h] [--provider PROVIDER] [--username USERNAME] [--password PASSWORD] [--url URL] [--trackurl TRACKURL]
               command

positional arguments:
  command              valid commands: register, get, getall

optional arguments:
  -h, --help           show this help message and exit
  --provider PROVIDER  defaults to shorturl.at
  --username USERNAME  some providers require login
  --password PASSWORD  some providers require login
  --url URL            used during register
  --trackurl TRACKURL  used during get

example:

$ clickcounter register --url https://example.com
https://shorturl.at/wABHQ

# visit the link in browser...
# and then get click count via:

$ clickcounter get --trackurl https://shorturl.at/wABHQ
1

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

clickcounter-1.0.3.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

clickcounter-1.0.3-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file clickcounter-1.0.3.tar.gz.

File metadata

  • Download URL: clickcounter-1.0.3.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.5 CPython/3.8.6 Darwin/19.6.0

File hashes

Hashes for clickcounter-1.0.3.tar.gz
Algorithm Hash digest
SHA256 3ea13e03e98c464d2a1c7a50bb120325386776db9e8df2bc72ce9a7298a345ae
MD5 94ade0fad51558c436b35730d6f914da
BLAKE2b-256 4eb8cee1d939e28ab9f4d8362b05f500073b6f0132a8b6c5463664a00fc51ffb

See more details on using hashes here.

File details

Details for the file clickcounter-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: clickcounter-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.5 CPython/3.8.6 Darwin/19.6.0

File hashes

Hashes for clickcounter-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 50d47a9b92786ffec993d5b204ca29438a8f9b5bf8c982d35bc8d9f310f36f9f
MD5 a28ed90e7d89c1460b946bf5a5554ba0
BLAKE2b-256 7f365f61035985fc01c71be866f76598bffb8c13d5515cd01504f643b40a47ba

See more details on using hashes here.

Supported by

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