Create redirect url's with click monitoring from multiple providers
Project description
ClickCounter
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:
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.4.tar.gz
(5.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file clickcounter-1.0.4.tar.gz.
File metadata
- Download URL: clickcounter-1.0.4.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.5 CPython/3.8.6 Darwin/19.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e423d3e448d641bfac509e5a3348178898a88976c07a6d50dd1237b809ed594
|
|
| MD5 |
cc871924de925c43ebf5da246d0d3601
|
|
| BLAKE2b-256 |
2093d61c8fb3187feab4cf75c83af7195ebcf61f81d0ee7e7ea39f3716a0b84a
|
File details
Details for the file clickcounter-1.0.4-py3-none-any.whl.
File metadata
- Download URL: clickcounter-1.0.4-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d141f647b516762182c2c69c78b01126a7750ae4f570d74098aaa9fabe4c664d
|
|
| MD5 |
88fa8cfc2e335ff96223f06145be4389
|
|
| BLAKE2b-256 |
bcd3a7394ecf2b426d13c2e059537b4eb697e409285a3216db7de8994285c5ac
|