On Mon, Nov 2, 2009 at 5:03 PM, Thomas Dalton <thomas.dalton(a)gmail.com> wrote:
2009/11/2 Magnus Manske
<magnusmanske(a)googlemail.com>om>:
I think a
human selected calendar would be better for actually
publishing, but that's certainly a fun script. Can you add an option
to choose a category so we can have a calendar of Britons, or French,
or mathematicians, or military people, etc.?
I could limit the articles used to a ceratin category, but IMHO that
would restrict the search too much, that is, either no or a few
possible candidates per day.
For large categories, like nationalities, it would probably work. For
smaller categories you would need to decide what to do with gaps.
One bug:
I got a graph of Imran Khan's bowling statistics rather than
his portrait...
And if you give me code to identify a person's image, I'll be happy to
implement it, as would the NSA. As it stands, I chose a random article
from e.g. [[November 2]], then chose a random picture from that.
Try the image in the infobox if there is one.
So, either a HTML parser or a new MediaWiki parser to get at the
<img>/variable. Tough choice there :-)