Skip to content

Instantly share code, notes, and snippets.

@derryl
Created January 22, 2016 07:24
Show Gist options
  • Save derryl/8613e31433ba43027294 to your computer and use it in GitHub Desktop.
Save derryl/8613e31433ba43027294 to your computer and use it in GitHub Desktop.
Copies the current "Top 30" Instagram hashtags to your clipboard.
#!/bin/bash
# Copies the current "Top 30" Instagram hashtags to your clipboard.
# (This is the max. amount they'll allow you to post in a comment.)
# NOTE: You must have 'pup' installed (https://github.com/ericchiang/pup)
# brew install https://raw.githubusercontent.com/EricChiang/pup/master/pup.rb
URL="top-hashtags.com/instagram/"
curl -s $URL | pup 'a.green text{}' | head -30 | tr "\n" " " | pbcopy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment