Skip to content

Instantly share code, notes, and snippets.

@lyoshenka
Created February 23, 2013 17:45
Show Gist options
  • Save lyoshenka/5020630 to your computer and use it in GitHub Desktop.
Save lyoshenka/5020630 to your computer and use it in GitHub Desktop.
#!/bin/bash
if [ -z "$1" ]; then
echo "Usage: $0 HASHTAG";
exit 1;
fi
curl -s 'http://search.twitter.com/search.json?q=%23'"$1"'&result_type=recent&rpp=100&include_entities=1' | grep -o 'expanded_url":"[^"]\+"' | cut -d'"' -f3 | sed 's|\\\/|/|g' | sort | uniq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment