Socket
Socket
Sign inDemoInstall

brocket

Package Overview
Dependencies
2
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

brocket

Build Amazon Associates Links in the clipboard super fast.

    1.2

Maintainers
1

Readme

brocket

A command line tool for building Amazon Associates_ links with as few actions as possible.

If you have a link in the clipboard, run this script, then the link on the clipboard becomes an Amazon Associates_ link.

OS X Only

This is only for Mac OS X 10.8 or higher but it could easily be enhanced to support other operating systems.

Setup

After you pip install brocket just run brocket. It will prompt you for your tracking-id. Enter it.

Optional: Make sure it's correct by running brocket --show-tracking-id.

Once it's setup, the easiest thing to do is

  1. Browse to an Amazon URL you want an affiliate link for.
  2. Copy the URL
  3. Run the brocket command. This will tag the URL with your tracking-id and put the new URL on the clipboard.
  4. Paste the URL where ever you want it to go.

Upping Your Game

I know what you're thinking "4 steps?!? You mean I have to go to my browser and copy a URL, then run a terminal command, then go back...". Yeah yeah I hear you.

There are probably lots of ways to skin this cat but here's what I did.

Make an AppleScript called Brocket and save it in ~/Library/Scripts. It just needs to be 1 line::

do shell script "/usr/local/bin/brocket"

Then, if you haven't already install the wonderful FastScripts_. Your Brocket script should show up in the menu.

Finally assign Brocket a keyboard shortcut and you can skip switching to the Terminal to run the Brocket command.

Brocket Deer

This little utility is named for the Brocket Deer_ which lives around the Amazon river. It also sounds like Rocket, but with a 'B' and I was looking for something with a fast sounding name.

.. _Amazon Associates: https://affiliate-program.amazon.com .. _Brocket Deer: https://en.wikipedia.org/wiki/Brocket_deer .. _FastScripts: https://red-sweater.com/fastscripts/

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc