On 2010-06-22 08:03, Eric Sun wrote:
> I'm trying to run action=query in Python with a POST request, but for some
> reason it only works with a GET.
[...]
> This doesn't work (POST):
>>>> req = urllib2.Request('http://en.wikipedia.org/w/api.php',
> 'action=query&titles=The_Matrix&export&format=txt')Giving the export key a value will work: 'action=query&titles=The_Matrix&export=1&format=txt' -- Jim Tittsler http://www.OnNZ.net/ GPG: 0x01159DB6 Python Starship http://Starship.Python.net/crew/jwt/ Mailman IRC irc://irc.freenode.net/#mailman _______________________________________________ Wikitech-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikitech-l
