Skip to main content

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.

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.

Release files for brocket 1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for brocket 1.2
File Size Uploaded
brocket-1.2.tar.gz 4.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for brocket 1.2
File Interpreter ABI Platform
brocket-1.2-py3-none-any.whl Python 3 none any Details

Total release size: 8.5 kB

Release files / brocket-1.2.tar.gz

Download URL brocket-1.2.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
270f427480a835fdecb3cb87c5923c807f8d6c339c086eb3588297b4c2d698c2
BLAKE2b-256 checksum
How to use checksums
4c8ae9843df10298ca4bb49a7599c51f110a10edcf91abe1d443c309e373a829
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / brocket-1.2-py3-none-any.whl

Download URL brocket-1.2-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e97ffe0759fae349ed94c2557d25f4f04e76b45ecfbecf60905d7b5fb8e0ea8b
BLAKE2b-256 checksum
How to use checksums
b8ddb028d594409d6d91af0ed4441bc62c4a23fa94ed7e816dd0a607c89c2d74
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.2 This release

2 release files

1.1

1 release file

1.0

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page