Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kkristof200/amazon_affiliate_url


https://github.com/kkristof200/amazon_affiliate_url

Last synced: 10 days ago
JSON representation

Awesome Lists containing this project

README

        

# amazon_affiliate_url

## Install

~~~~shell
pip install amazon_affiliate_url
or
pip3 install amazon_affiliate_url
~~~~

## Usage

~~~~python
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
)
)
~~~~