Last active
August 29, 2015 14:15
-
-
Save galvanic/1811b31deb346b4b290d to your computer and use it in GitHub Desktop.
Meetup.com RSVPs (includes +1s)
This file contains hidden or 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
| 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) |
This file contains hidden or 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
| $ 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