wkoffel Posted February 24, 2014 Posted February 24, 2014 (edited) Alfred 2 Amazon Affiliate Links Workflow Quick Start: Download Here 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 <your-affiliate-tag> will set a new affiliate code, which all subsequent calls to alink will use. Generating Links The keyword trigger alink <an-amazon-product-url> 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, or visit the repository for the full source code I'm happy to take feedback on the installation process. 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 addressable", and that should suffice. This has been tested on OS X 10.13 High Sierra and above, and may work on earlier versions of macOS. It requires Alfred 3+ Credits Thanks to Bryan McKelvey for the simple Alfredo Ruby Gem (no longer used directly, but code inspired by) Thanks to phyllisstein for Alleyoop Release Notes v1.0 (Feb 24, 2014) - Initial release v1.1 (Mar 24, 2018) - Alfred 3 and High Sierra 10.13 support v1.2 (Oct 27, 2019) - Update for Alfred preferred JSON format, support for macOS 10.15 Catalina Feedback Wanted: I'd love to hear feedback. Are you using this workflow? How? What improvements would you like? Edited October 27, 2019 by wkoffel DJay 1
wkoffel Posted October 12, 2019 Author Posted October 12, 2019 It's been reported that this workflow is broken on the recently released macOS Catalina. Watch for a fix here in the next couple weeks as I get my own machines upgraded.
MacWorks Posted October 15, 2019 Posted October 15, 2019 Will, Provide us a way to throw you a couple of bucks for your efforts. Would love a bit.ly add-on for my custom bit.ly address, as well. Thanks!
wkoffel Posted October 27, 2019 Author Posted October 27, 2019 On 10/15/2019 at 4:28 PM, MacWorks said: Will, Provide us a way to throw you a couple of bucks for your efforts. Would love a bit.ly add-on for my custom bit.ly address, as well. Thanks! Thanks @MacWorks, please see my latest post, I've updated the workflow, should be fully supported on OS 10.15 now. No need for bucks, but happy to take some love on Twitter @wkoffel or wherever else. I never bother to remind others of my workflows outside these forums, but probably should!
wkoffel Posted October 27, 2019 Author Posted October 27, 2019 New version released and available for download. * v1.2 (Oct 27, 2019) - Update for Alfred preferred JSON format, support for macOS 10.15 Catalina
MacWorks Posted October 27, 2019 Posted October 27, 2019 Thank you, so much @wkoffel! Highly appreciate!!
MacWorks Posted October 27, 2019 Posted October 27, 2019 Can anyone provide guidance on how I can add this: to @wkoffel workflow? I only need to use Bit.ly. Anyway to make this into one process? That would be amazing!
Auino Posted February 8, 2022 Posted February 8, 2022 FYI, as the original Workflow is not working anymore, I've published a new working Workflow: Amazon Affiliate Link Generator. You can find it here: https://www.packal.org/workflow/amazon-affiliate-link-generator jenz 1
jenz Posted February 11, 2023 Posted February 11, 2023 On 2/9/2022 at 7:10 AM, Auino said: FYI, as the original Workflow is not working anymore, I've published a new working Workflow: Amazon Affiliate Link Generator. You can find it here: https://www.packal.org/workflow/amazon-affiliate-link-generator Thank you.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now