Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

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

This version
History Node


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
amazonify-0.1.tar.gz (88.3 kB) Copy SHA256 hash SHA256 Source None May 17, 2012

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page