Last active
November 23, 2017 12:25
-
-
Save specious/397de168f783bbdb7d5e to your computer and use it in GitHub Desktop.
Get short url for meetup event
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Example usage: | |
# $0 http://www.meetup.com/diningout-792/events/226401363/ | |
if [ $# -lt 1 ] | |
then | |
echo "Usage: $0 <url>" | |
exit 1 | |
fi | |
echo -e "https://$(curl -sL $1 | egrep -o 'meetu.ps/[0-9a-zA-Z]+')" |
Don't work more in new meetup interface. :-(
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Install on Linux / OS X with:
curl -Ls http://bit.ly/1HppQks > /usr/local/bin/meetup && chmod +x /usr/local/bin/meetup