Skip to content

Instantly share code, notes, and snippets.

@galvanic
Last active August 29, 2015 14:15
Show Gist options
  • Select an option

  • Save galvanic/1811b31deb346b4b290d to your computer and use it in GitHub Desktop.

Select an option

Save galvanic/1811b31deb346b4b290d to your computer and use it in GitHub Desktop.
Meetup.com RSVPs (includes +1s)
from bs4 import BeautifulSoup
import sys
with open(sys.argv[1], 'r') as ifile:
text = ifile.read()
soup = BeautifulSoup(text)
rsvp = soup.find('ul', {'id': 'rsvp-list'})
names = rsvp.find_all('h5')
names = [name.text.encode('utf-8').strip().replace('\n', ' ') for name in names]
print '\n'.join(names)
$ mv Meetup_Name.xls guestlist.tsv
$ cat guestlist.tsv | awk -F '\t' '{ print $1 }' | sed '1d' | pbcopy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment