Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

The simplest way to build Amazon Affiliate links, in Python.

Project description

# python-amazonify

The simplest way to build Amazon Affiliate links, in Python.


## Install

To install ``python-amazonify``, simply run
``pip install amazonify`` and you'll get the latest version installed

## Usage

Using ``amazonify`` is really easy. All you do is pass it the Amazon URL you'd
like to make into an affiliate link, and your Amazon affiliate tag.

``` python
>>> from amazonify import amazonify
>>> # Your Amazon affiliate tag:
>>> affiliate_tag = 'rdegges-20'
>>> # Some non-affiliate Amazon URLs:
>>> urls = [
... '',
... '',
... '',
... '',
... '',
... ]
>>> affiliate_urls = [amazonify(u, tag) for u in urls]
>>> affiliate_urls

**NOTE**: If the URL you try to ``amazonify`` is invalid, ``amazonify`` will return ``None``.

## Confused?

Have no idea what I'm talking about? See
[Amazon's Affiliate Program](


[Shop on Amazon!](

## Tests

[![Build Status](](

Want to run the tests? No problem:

``` bash
$ git clone git://
$ cd python-amazonify
$ python develop
$ pip install -r requirements.txt # Install test dependencies.
$ nosetests
Ran 13 tests in 0.166s


## Changelog

v0.1: 5-16-2012

- Initial release!

Project details

Release history Release notifications | RSS feed

This version


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for amazonify, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size amazonify-0.1.tar.gz (88.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page