Hi,
I made a few attempts but didn't success to use the API with page titles containing a & in them. I tried replacing it with %26 in the request but it seems to work only for some requests...
For example, the following request seems to work: http://en.wikipedia.org/w/api.php?action=query&titles=Rollin' %26 Coastin' (In Search of America)&prop=info&inprop=protection|talkidhttp://en.wikipedia.org/w/api.php?action=query&titles=Rollin'%20%26%20Coastin'%20(In%20Search%20of%20America)&prop=info&inprop=protection|talkid I get the informations about page "Rollin' & Coastin' (In Search of America)"
But, the following request tells that the page is missing http://fr.wikipedia.org/w/api.php?rvprop=content%7Cids%7Ctimestamp&inpro...' %26 Coastin' (In Search of America) The requests says that page "Rollin' & Coastin' (In Search of America)" is missing
Am I missing something or is there a bug in the API ?
Thanks, Nico
Why FR.wikipedia in second link?)
2010/12/7 Nicolas Vervelle nvervelle@gmail.com
Hi,
I made a few attempts but didn't success to use the API with page titles containing a & in them. I tried replacing it with %26 in the request but it seems to work only for some requests...
For example, the following request seems to work: http://en.wikipedia.org/w/api.php?action=query&titles=Rollin' %26 Coastin' (In Search of America)&prop=info&inprop=protection|talkidhttp://en.wikipedia.org/w/api.php?action=query&titles=Rollin'%20%26%20Coastin'%20(In%20Search%20of%20America)&prop=info&inprop=protection%7Ctalkid I get the informations about page "Rollin' & Coastin' (In Search of America)"
But, the following request tells that the page is missing
http://fr.wikipedia.org/w/api.php?rvprop=content%7Cids%7Ctimestamp&inpro...http://fr.wikipedia.org/w/api.php?rvprop=content%7Cids%7Ctimestamp&inprop=protection&prop=revisions%7Cinfo&action=query&titles=Rollin' %26 Coastin' (In Search of America) The requests says that page "Rollin' & Coastin' (In Search of America)" is missing
Am I missing something or is there a bug in the API ?
Thanks, Nico
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Oups !
Thanks, I must be tired, I was testing things in both EN and FR and it seems I mixed up the windows.
Sorry for the stupid question :p Nico
On Tue, Dec 7, 2010 at 9:02 PM, Roman Sokhan aka AS pustomytnyk@gmail.comwrote:
Why FR.wikipedia in second link?)
2010/12/7 Nicolas Vervelle nvervelle@gmail.com
Hi,
I made a few attempts but didn't success to use the API with page titles containing a & in them. I tried replacing it with %26 in the request but it seems to work only for some requests...
For example, the following request seems to work: http://en.wikipedia.org/w/api.php?action=query&titles=Rollin' %26 Coastin' (In Search of America)&prop=info&inprop=protection|talkidhttp://en.wikipedia.org/w/api.php?action=query&titles=Rollin'%20%26%20Coastin'%20(In%20Search%20of%20America)&prop=info&inprop=protection%7Ctalkid I get the informations about page "Rollin' & Coastin' (In Search of America)"
But, the following request tells that the page is missing
http://fr.wikipedia.org/w/api.php?rvprop=content%7Cids%7Ctimestamp&inpro...http://fr.wikipedia.org/w/api.php?rvprop=content%7Cids%7Ctimestamp&inprop=protection&prop=revisions%7Cinfo&action=query&titles=Rollin' %26 Coastin' (In Search of America) The requests says that page "Rollin' & Coastin' (In Search of America)" is missing
Am I missing something or is there a bug in the API ?
Thanks, Nico
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
2010/12/7 Nicolas Vervelle nvervelle@gmail.com:
http://fr.wikipedia.org/w/api.php?rvprop=content%7Cids%7Ctimestamp&inpro...' %26 Coastin' (In Search of America) The requests says that page "Rollin' & Coastin' (In Search of America)" is missing Am I missing something or is there a bug in the API ?
You're missing that the API is really giving you a & back there, but it gets XML-encoded to & . Do the same request with &format=jsonfm or something and you'll see a plain & .
Roan Kattouw (Catrope)
Nicolas Vervelle wrote:
Hi,
I made a few attempts but didn't success to use the API with page titles containing a & in them. I tried replacing it with %26 in the request but it seems to work only for some requests...
For example, the following request seems to work: http://en.wikipedia.org/w/api.php?action=query&titles=Rollin' %26 Coastin' (In Search of America)&prop=info&inprop=protection|talkid http://en.wikipedia.org/w/api.php?action=query&titles=Rollin'%20%26%20Coastin'%20(In%20Search%20of%20America)&prop=info&inprop=protection|talkid I get the informations about page "Rollin' & Coastin' (In Search of America)"
But, the following request tells that the page is missing http://fr.wikipedia.org/w/api.php?rvprop=content%7Cids%7Ctimestamp&inpro... http://fr.wikipedia.org/w/api.php?rvprop=content|ids|timestamp&inprop=protection&prop=revisions|info&action=query&titles=Rollin' %26 Coastin' (In Search of America) The requests says that page "Rollin' & Coastin' (In Search of America)" is missing
Am I missing something or is there a bug in the API ?
Thanks, Nico
Using the same server as the previous request would help :)
http://en.wikipedia.org/w/api.php?rvprop=content%7Cids%7Ctimestamp&inpro...
mediawiki-api@lists.wikimedia.org