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 hashes)
Built Distribution
Close
Hashes for clickcounter-1.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d141f647b516762182c2c69c78b01126a7750ae4f570d74098aaa9fabe4c664d |
|
MD5 | 88fa8cfc2e335ff96223f06145be4389 |
|
BLAKE2b-256 | bcd3a7394ecf2b426d13c2e059537b4eb697e409285a3216db7de8994285c5ac |