Skip to main content

amazon_affiliate_url

Project description

amazon_affiliate_url

Install

pip install amazon_affiliate_url
or
pip3 install amazon_affiliate_url

Usage

from amazon_affiliate_url import AmazonAffiliateUrl, Country

ASIN = 'SOME_ASIN'
TAG =  'YOUR_AFFILIATE_TAG'
BITLY_TOKEN = 'YOUR_BITLY_TOKEN'

print(
    AmazonAffiliateUrl.url_cls(
        asin_or_url=ASIN,
        affiliate_tag=TAG,
        # bitly_token=BITLY_TOKEN,
        # shorten_url=True,
        country=Country.Netherlands
    )
)

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

amazon_affiliate_url-0.1.4.tar.gz (3.0 kB view hashes)

Uploaded source

Built Distribution

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