-
-
Save fwenzel/214479 to your computer and use it in GitHub Desktop.
Spit out an almost random order for the Mozilla webdev meeting
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 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