Hello all.
I would like to suggest a few features that would mal life easier for people who develop bots and other tools that access the wikipedia and also reduce traffic from such tools. I belive those to be fairly easy to implement.
In case some of the features already exist, I aplogize - I didn't find any information about it (to be honstest, I don't even know where to look in the first place).
The idea is to have an optionaly URL-Parameter like "format=", that would tell the software to return a page in a format different from the full-fledged HTML. I would like to suggest formats for "real" pages and special pages separately, as the requirements are different.
For articles, discussion-pages, etc, support the following formats:
* source - return the wiki-source of that page * text - return a plain text version, with all markup striped/replaced (tables, text boxes, etc do not have to be formatd nicely, but their content should be returned)
For special pages and all automatically generated lists (kategories, changes, watchlist, whatlinkshere, etc):
* csv - return the list in CSV-format * rss - return entries in the list as RSS items.
Additionally, for the normal "full html" view, provide a switch "plain" that supresses all sidebars, etc and shows just the formated text.
As to the implementation, I would suggest to map the format-name to the name of a php-class and load it on demand. That way, now formats can be supported by just placing an appropriate file in the php lib-path.
Shall I submit a feature request to the wikizilla regarding this? What do you think?
Thank you for your attention, Daniel
Hello Daniel,
Daniel Kinzler schrieb:
Shall I submit a feature request to the wikizilla regarding this? What do you think?
http://bugzilla.wikipedia.org/208
There I requested something similar, perhaps you should append your comments there.
Eckhart
--- Daniel Kinzler daniel@brightbyte.de wrote:
- source - return the wiki-source of that page
action=raw does this.
[other formats snipped]
For me, what would be most useful would simply be a way of getting the timestamp of the most recent revision. Right now, I can use a simple script to get the wiki text with action=raw, but I can't submit modifications because I don't have the edittime.
Also, would it make sense to allow a script or human to submit changes to an article and be redirected to something other than the article page? For a script, it might save resources to just return something indicating "the change was successful". For a user, it might be useful to redirect to a diff of the changes he or she submitted.
-- Wil
__________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail
On Sep 15, 2004, at 9:34 PM, Wil Mahan wrote:
For me, what would be most useful would simply be a way of getting the timestamp of the most recent revision. Right now, I can use a simple script to get the wiki text with action=raw, but I can't submit modifications because I don't have the edittime.
Use Special:Export.
-- brion vibber (brion @ pobox.com)
Brion Vibber wrote:
On Sep 15, 2004, at 9:34 PM, Wil Mahan wrote:
For me, what would be most useful would simply be a way of getting the timestamp of the most recent revision. Right now, I can use a simple script to get the wiki text with action=raw, but I can't submit modifications because I don't have the edittime.
Use Special:Export.
And that's how works the "Python Wikipedia Framework" :o)
On Thursday 16 September 2004 06:34, Wil Mahan wrote:
For me, what would be most useful would simply be a way of getting the timestamp of the most recent revision. Right now, I can use a simple script to get the wiki text with action=raw, but I can't submit modifications because I don't have the edittime.
afaik the modification time is in the last-modified header
d
wikitech-l@lists.wikimedia.org