Alfred 2 Amazon Affiliate Link Generator Workflow
An Alfred workflow for generating simple Amazon Affiliate links with your own tag. Designed for anyone who generates a lot of custom links from URLs. This workflow will clean up all the parameters from an amazon.com URL, and then append the configured tag to it.
Setting Your Affiliate Code
The keyword trigger alink code will set a new affiliate code, which all subsequent calls to alink will use.
Generating Links
The keyword trigger alink will strip extra junk from the URL (all the query params, which aren't necessary for Amazon product links), and append "tag=your-affiliate-tag" to it, copying the result to the clipboard.
You will get an error message if you haven't set an affiliate code yet (see above), or if the target link is not a valid Amazon link.
Install Notes
Download the compiled workflow directly at https://github.com/wkoffel/alfred-amazon-affiliate-links/
Visit the repository for the full source code at https://github.com/wkoffel/alfred-amazon-affiliate-links/
In theory, I've bundled all the necessary ruby gems in the workflow package proper, so it should be a simple double-click install. If you do need to install manually, please let me know. To install manual dependencies, you would run just "sudo gem install alfredo addressable", and that should suffice.
This has been tested on OS X 10.9 Mountain Lion. I didn't bundle the necessary gems for earlier ruby versions. If you need support for an earlier OS version, reach out and I can help easily.
Credits
Thanks to Bryan McKelvey for the simple Alfredo Gem Thanks to phyllisstein for Alleyoop
Release Notes
- v1.0 (Mar 1, 2014) - Initial release