Hello,
Wiki fragments returned by the API (in JSON or XML) format contain HTML
markup. When converting the wiki markup to XHTML, is it safe to *not*
escape characters '<' and '>'? Does that apply to other characters, i.e.
all five predefined XML entities or more?
Cheers,
Manos
When the backlinks module was introduced, it used the following syntax:
api.php?action=query&list=backlinks&titles=Foo
In July 2007, this was changed [1] to:
api.php?action=query&list=backlinks&bltitle=Foo
The first version was still supported for backwards compatibility, but
threw a warning saying support would be removed soon. The 'soon' part
wasn't exactly true (the warning was introduced 10 months ago), but it's
really gonna happen now: titles= support for backlinks, embeddedin and
imageusage has been discontinued as of r34518 [2]. This revision will go
live on Wikimedia wikis some time in the next few days, and will be part
of 1.13 and all later versions. Any client programs still relying on the
old behavior should've been fixed a long time ago.
Roan Kattouw (Catrope)
[1] http://svn.wikimedia.org/viewvc/mediawiki?view=rev&revision=23774
[2] http://svn.wikimedia.org/viewvc/mediawiki?view=rev&revision=34518
Hi folks --
I'm building a proof-of-concept application that does some work on the
Wikipedia data set. I was excited to see the announcement of the new
API since it would much simplify things for me.
However, as one recent poster pointed out, what is and isn't acceptable
usage isn't particularly clear. I'd expect once I put up announce the
demo that things might hit (complete guesstimation) in the ballpark of
10k hits per day for a couple days and then probably dropping off to a
few hundred a day. Given that Wikipedia averages 30-50k requests per
second, it seems that such usage would probably be rounding error
compared to Wikipedia's load. I'd cache requests that had already come
across on my server for speed / load reasons.
But what I'd like to avoid is building this nifty demo, announcing it a
few places and then getting the plug pulled on it. In the case of you
know it accidentally becoming The Next Big Thing, I'd naturally move
over to a DB dump hosted elsewhere. For clarity, my project doesn't
have the goal of being a Wikipedia mirror, the demo is just to show how
the software works on a big data set.
What would even be fine from my side would be just a heads up from
somebody at WP if we're pissing them off, so that we could rework things
within a couple days to use a dump.
Is there a policy on acceptable usage anywhere? I get the feeling from
a similar question this week that this may be a frequent question.
Cheers,
- [[User:Scott.wheeler|Scott]]