Skip to content

Instantly share code, notes, and snippets.

@fwenzel
Forked from jbalogh/meeting.py
Created October 20, 2009 18:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save fwenzel/214479 to your computer and use it in GitHub Desktop.
Save fwenzel/214479 to your computer and use it in GitHub Desktop.
Spit out an almost random order for the Mozilla webdev meeting
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