Skip to main content

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.

Source Distribution

amazonify-0.1.tar.gz (88.3 kB view hashes)

Uploaded source

Supported by

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