Gutza wrote:
Speaking of which (don't want to start a new thread for this), is there any way to retrieve only the status of a page? Meaning, "0" if it doesn't exist, "1" if it does or an URL if it's a redirect -- I guess that would be the logical way to do it. I think it would be nice to have for automated quick searches.
Well, if you try this with a non-existent page:
http://en.wikipedia.org/w/wiki.phtml?title=Nonexistantpage&action=raw&am...
you get "<html><body></body></html>". Not the most professional of ways of saying "this page doesn't exist", but since it's unlikely to be the body of a real article, I suppose you can use this.
Redirects are ridiculously easy to parse with a regular expression.
Timwi