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)
- 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.
[edit] Assumptions
The following is assumed by the script:
- URL: Featured articles for a specific day, say April 2, 2006, can be found at Wikipedia:Today's featured article/April 2, 2006, and Picture of the Day articles can be found at Wikipedia:Picture of the day/April 2, 2006.
- 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: added support for selected anniversaries — could be made prettier...
- 0.7: added support for picture of the day
- 0.6: initial version
[edit] See also
- Wikipedia:Syndication for other RSS feeds