Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kkristof200/amazon_affiliate_url
https://github.com/kkristof200/amazon_affiliate_url
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/kkristof200/amazon_affiliate_url
- Owner: kkristof200
- License: mit
- Created: 2020-05-19T14:55:29.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-01-31T14:03:06.000Z (almost 4 years ago)
- Last Synced: 2024-11-01T09:11:45.694Z (15 days ago)
- Language: Python
- Size: 16.6 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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, CountryASIN = '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
)
)
~~~~