{"id":13449355,"url":"https://github.com/rdegges/python-amazonify","last_synced_at":"2025-07-24T03:05:02.277Z","repository":{"id":3302290,"uuid":"4344025","full_name":"rdegges/python-amazonify","owner":"rdegges","description":"The simplest way to build Amazon Affiliate links, in Python.","archived":false,"fork":false,"pushed_at":"2021-08-26T11:12:09.000Z","size":97,"stargazers_count":104,"open_issues_count":4,"forks_count":19,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-11T00:55:35.126Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"tzapu/WiFiManager","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rdegges.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-05-16T06:04:19.000Z","updated_at":"2024-09-23T14:29:40.000Z","dependencies_parsed_at":"2022-09-16T04:40:52.708Z","dependency_job_id":null,"html_url":"https://github.com/rdegges/python-amazonify","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/rdegges/python-amazonify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdegges%2Fpython-amazonify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdegges%2Fpython-amazonify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdegges%2Fpython-amazonify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdegges%2Fpython-amazonify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rdegges","download_url":"https://codeload.github.com/rdegges/python-amazonify/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdegges%2Fpython-amazonify/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266786798,"owners_count":23983871,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-24T02:00:09.469Z","response_time":99,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T06:00:36.259Z","updated_at":"2025-07-24T03:05:02.243Z","avatar_url":"https://github.com/rdegges.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# 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\u003e\u003e\u003e from amazonify import amazonify\n\u003e\u003e\u003e\n\u003e\u003e\u003e # Your Amazon affiliate tag:\n\u003e\u003e\u003e affiliate_tag = 'rdegges-20'\n\u003e\u003e\u003e\n\u003e\u003e\u003e # Some non-affiliate Amazon URLs:\n\u003e\u003e\u003e urls = [\n...     'http://www.amazon.com/Canon-21-1MP-Frame-Digital-Camera/dp/B001G5ZTLS/ref=sr_1_1?ie=UTF8\u0026qid=1337148615\u0026sr=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\u0026qid=1337148688\u0026sr=8-1',\n...     'http://www.amazon.com/Canon-70-300mm-4-5-6-Lens-Cameras/dp/B0007Y794O/ref=sr_1_3?ie=UTF8\u0026qid=1337148688\u0026sr=8-3',\n... ]\n\u003e\u003e\u003e affiliate_urls = [amazonify(u, affiliate_tag) for u in urls]\n\u003e\u003e\u003e 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\u0026tag=rdegges-20\u0026linkCode=ur2\u0026camp=1789\u0026creative=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!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frdegges%2Fpython-amazonify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frdegges%2Fpython-amazonify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frdegges%2Fpython-amazonify/lists"}