Skip to content

Instantly share code, notes, and snippets.

@jbalogh
Forked from fwenzel/meeting.py
Created October 20, 2009 18:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jbalogh/214499 to your computer and use it in GitHub Desktop.
Save jbalogh/214499 to your computer and use it in GitHub Desktop.
from datetime import datetime
import random
from pyquery import PyQuery
URL = ('https://wiki.mozilla.org/Webdev:Meetings:%s-%s-%s' %
datetime.now().timetuple()[:3])
names = PyQuery(url=URL)('h2 .mw-headline').text().split()
random.shuffle(names)
names.append(names.pop(names.index('wil')))
print ', '.join(names)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment