User:Skagedal/Fafafa
From Wikipedia, the free encyclopedia
This is a Python program I made that creates RSS feeds of the latest featured articles, pictures of the day and selected anniversaries. It runs every night at 02:05 UTC, and generates feeds at:
- http://helgo.net/simon/wikipedia/fa.xml (featured articles)
- http://helgo.net/simon/wikipedia/potd.xml (picture of the day) — CURRENTLY NOT WORKING (2007-01-12)
- http://helgo.net/simon/wikipedia/sa.xml (selected anniversaries)
The code is available at /Code. Patches are welcome; just edit that page and write something on my talk page! All kinds of feedback is of course welcome too.
The program was inspired by User:Dze27's featured article feed, but shows the latest 20 articles, not just today's article.
Contents |
[edit] Assumptions
The following is assumed by the script:
- URL:
- "Featured article" for a specific day, say April 2, 2006, can be found at Wikipedia:Today's featured article/April 2, 2006
- "Selected anniversaries" for a specific day, say April 2, can be found at Wikipedia:Selected anniversaries/April 2
- "Picture of the Day" for today is found at Template:Pic of the day
- Content: Content of article is between
<!-- start content -->
and<!-- end content -->
. - Title: The following works right now, will probably have to be adjusted...
- The text inside the first bolded a-tag is the title.
- If that can't be found, the first bolded text is the title (e.g. March 21, 2006 POTD).
- If that can't be found, the first a-tag is the title (e.g. March 15, 2006 POTD).
[edit] Versions
- 0.8.1: updated for reorganization of POTD (2007-01-11)
- 0.8: added support for selected anniversaries — could be made prettier...
- 0.7: added support for picture of the day
- 0.6: initial version
[edit] To do
- Since the POTD reorganiztion, the RSS could be made better by pulling together the parts using {{POTD caption/2008-06-15}}, {{POTD credit/2008-06-15}}, {{POTD image/2008-06-15}}, and {{POTD title/2008-06-15}} (don't think we need {{POTD size/2008-06-15}}).
[edit] See also
- Wikipedia:Syndication for other RSS feeds