{ "info": { "author": "Randall Degges", "author_email": "rdegges@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "# python-amazonify\n\nThe simplest way to build Amazon Affiliate links, in Python.\n\n\n![amazonify](https://github.com/rdegges/python-amazonify/raw/master/assets/amazonify.jpg)\n\n\n## Install\n\nTo install ``python-amazonify``, simply run\n``pip install amazonify`` and you'll get the latest version installed\nautomatically.\n\n\n## Usage\n\nUsing ``amazonify`` is really easy. All you do is pass it the Amazon URL you'd\nlike to make into an affiliate link, and your Amazon affiliate tag.\n\n``` python\n>>> from amazonify import amazonify\n>>>\n>>> # Your Amazon affiliate tag:\n>>> affiliate_tag = 'rdegges-20'\n>>>\n>>> # Some non-affiliate Amazon URLs:\n>>> urls = [\n... 'http://www.amazon.com/Canon-21-1MP-Frame-Digital-Camera/dp/B001G5ZTLS/ref=sr_1_1?ie=UTF8&qid=1337148615&sr=8-1',\n... 'http://www.amazon.com/Transcend-Compact-Flash-Card-400X/dp/B002WE4H8I/ref=pd_bxgy_p_img_b',\n... 'http://www.amazon.com/Canon-LP-E6-Battery-Digital-Cameras/dp/B001KELVS0/ref=pd_bxgy_e_img_b',\n... 'http://www.amazon.com/Canon-50mm-1-8-Camera-Lens/dp/B00007E7JU/ref=sr_1_1?ie=UTF8&qid=1337148688&sr=8-1',\n... 'http://www.amazon.com/Canon-70-300mm-4-5-6-Lens-Cameras/dp/B0007Y794O/ref=sr_1_3?ie=UTF8&qid=1337148688&sr=8-3',\n... ]\n>>> affiliate_urls = [amazonify(u, tag) for u in urls]\n>>> affiliate_urls\n[\n 'http://www.amazon.com/Canon-21-1MP-Frame-Digital-Camera/dp/B001G5ZTLS/ref=sr_1_1?tag=rdegges-20',\n 'http://www.amazon.com/Transcend-Compact-Flash-Card-400X/dp/B002WE4H8I/ref=pd_bxgy_p_img_b?tag=rdegges-20',\n 'http://www.amazon.com/Canon-LP-E6-Battery-Digital-Cameras/dp/B001KELVS0/ref=pd_bxgy_e_img_b?tag=rdegges-20',\n 'http://www.amazon.com/Canon-50mm-1-8-Camera-Lens/dp/B00007E7JU/ref=sr_1_1?tag=rdegges-20',\n 'http://www.amazon.com/Canon-70-300mm-4-5-6-Lens-Cameras/dp/B0007Y794O/ref=sr_1_3?tag=rdegges-20'\n]\n```\n\n**NOTE**: If the URL you try to ``amazonify`` is invalid, ``amazonify`` will return ``None``.\n\n\n## Confused?\n\nHave no idea what I'm talking about? See\n[Amazon's Affiliate Program](https://affiliate-program.amazon.com/gp/associates/network/main.html).\n\nOr...\n\n[Shop on Amazon!](http://www.amazon.com/?_encoding=UTF8&tag=rdegges-20&linkCode=ur2&camp=1789&creative=390957)\n\n\n## Tests\n\n[![Build Status](https://secure.travis-ci.org/rdegges/python-amazonify.png?branch=master)](http://travis-ci.org/rdegges/python-amazonify)\n\nWant to run the tests? No problem:\n\n``` bash\n$ git clone git://github.com/rdegges/python-amazonify.git\n$ cd python-amazonify\n$ python setup.py develop\n...\n$ pip install -r requirements.txt # Install test dependencies.\n$ nosetests\n.............\n----------------------------------------------------------------------\nRan 13 tests in 0.166s\n\nOK\n```\n\n\n## Changelog\n\nv0.1: 5-16-2012\n\n - Initial release!", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/rdegges/amazonify", "keywords": "amazon affiliate web", "license": "UNLICENSE", "maintainer": null, "maintainer_email": null, "name": "amazonify", "package_url": "https://pypi.org/project/amazonify/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/amazonify/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/rdegges/amazonify" }, "release_url": "https://pypi.org/project/amazonify/0.1/", "requires_dist": null, "requires_python": null, "summary": "The simplest way to build Amazon Affiliate links, in Python.", "version": "0.1" }, "last_serial": 786251, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "794c7ba729d79e7b5c9b4653a3373076", "sha256": "34d1e36180d15da5373327b01d25e21d98db13536491021b5c530053cf2669e3" }, "downloads": -1, "filename": "amazonify-0.1.tar.gz", "has_sig": false, "md5_digest": "794c7ba729d79e7b5c9b4653a3373076", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 88329, "upload_time": "2012-05-17T05:09:37", "url": "https://files.pythonhosted.org/packages/5f/76/516761996cd103debec5090f14426838ebbee9eb747ded1e9fab7e3d6d61/amazonify-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "794c7ba729d79e7b5c9b4653a3373076", "sha256": "34d1e36180d15da5373327b01d25e21d98db13536491021b5c530053cf2669e3" }, "downloads": -1, "filename": "amazonify-0.1.tar.gz", "has_sig": false, "md5_digest": "794c7ba729d79e7b5c9b4653a3373076", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 88329, "upload_time": "2012-05-17T05:09:37", "url": "https://files.pythonhosted.org/packages/5f/76/516761996cd103debec5090f14426838ebbee9eb747ded1e9fab7e3d6d61/amazonify-0.1.tar.gz" } ] }