Re: [Mediawiki-api] write API "edit conflict"

2009-07-17 Thread Betacommand
Could you be passing an improper timestamp in the post request? On Fri, Jul 17, 2009 at 4:49 PM, Jim Tittsler wrote: > On 17/07/09 16:18, Dan Collins wrote: > > On Thu, Jul 16, 2009 at 11:20 PM, Jim Tittsler wrote: > >> I have a bot (using mwclient 0.6.2) that nightly updates some status > >>

Re: [Mediawiki-api] json mime output change.

2009-08-15 Thread Betacommand
So request the API query in a different format that is text. jsonfm is a good example On Sat, Aug 15, 2009 at 6:24 AM, Michael Dale wrote: > Would anyone object to changing the output mime type of > ApiFormatJson.php from "application/json" to 'text/javascript' ? > committed in r55084 > > This i

Re: [Mediawiki-api] API, POST size

2010-03-11 Thread Betacommand
I suspect that he is not giving a useragent which is causing the problem. On Thu, Mar 11, 2010 at 3:34 PM, Krenar Qehaja wrote: > On Thursday 11 March 2010 21:28:56 Roan Kattouw wrote: > > From that code, I can't really see what's wrong. Could you intercept > > the raw HTTP request and respons

Re: [Mediawiki-api] Max nb or frequency of api.php requests

2010-04-28 Thread Betacommand
what are you trying to do? John On Wed, Apr 28, 2010 at 1:40 PM, Behzad Behrouzi wrote: > Im almost positive they will block your IP. This is happened with us. > > -Original Message- > From: mediawiki-api-boun...@lists.wikimedia.org > [mailto:mediawiki-api-boun...@lists.wikimedia.org] On

Re: [Mediawiki-api] Issue with loading specific page

2010-11-22 Thread Betacommand
Can you define "garbled" On Mon, Nov 22, 2010 at 5:17 PM, Anand Ramanathan wrote: > Hi, > > I am not sure this is the right place for this issue, so please redirect me > if there is a better forum. > > I have been loading the wikipedia page for > Indiaprogram

Re: [Mediawiki-api] What is the Full URL of the images returned by a wikipedia query...

2011-01-24 Thread Betacommand
use http://en.wikipedia.org/w/api.php?action=query&list=allimages&ailimit=10&aifrom=New_Jersey_Devils&aiprop=dimensions|mime|url On Mon, Jan 24, 2011 at 10:22 AM, A O wrote: > If I run the following URL, I receive the following xml in return. > > My question is... The xml returned is meant to

Re: [Mediawiki-api] Error: badtoken, Info: Invalid token

2012-06-15 Thread Betacommand
escape the + \+ possibly and leave the \ alone On Fri, Jun 15, 2012 at 11:12 AM, Suryajith Chillara < suryajith1...@gmail.com> wrote: > > You're probably double-encoding the token here, I'll bet that whatever >> library you're using will transmit this as "a25ac2%252B%252C". So >> try using a

Re: [Mediawiki-api] Error: badtoken, Info: Invalid token

2012-06-15 Thread Betacommand
when passing parameters "+" is often treated as " " (a space) try passing "\+" instead of "+" or what ever the equivalent escape is On Fri, Jun 15, 2012 at 11:16 AM, Suryajith Chillara < suryajith1...@gmail.com> wrote: > On 06/16/2012 02:15 AM,

Re: [Mediawiki-api] Parse action - number of characters limit

2012-09-27 Thread Betacommand
what are you trying to parse? On Thu, Sep 27, 2012 at 8:33 AM, Łukasz Czyż wrote: > Hello > > I want to parse some variable-length wiki texts using 'parse' action. > My problem is that API returns error if wiki text length exceeds some > value, say 1000 characters. In such a case API returns well

Re: [Mediawiki-api] List of broken image links?

2012-11-04 Thread Betacommand
what version of mediawiki are you running? On Sat, Nov 3, 2012 at 11:58 PM, Jani Patokallio wrote: > Greetings, > > Is there a sensible way to find all broken (red) image links in a MediaWiki > installation? That is, without having to do this: > > for all pages in wiki (list=allpages) > for al

Re: [Mediawiki-api] List of broken image links?

2012-11-04 Thread Betacommand
, Nov 4, 2012 at 7:20 AM, Jani Patokallio wrote: > On 11/4/12 11:00 PM, mediawiki-api-requ...@lists.wikimedia.org wrote: >> >> Date: Sun, 4 Nov 2012 05:56:31 -0500 >> From: Betacommand >> Subject: Re: [Mediawiki-api] List of broken image links? >> >> >&

Re: [Mediawiki-api] [WARNING] Don't use dumpgenerator.py with API

2012-11-09 Thread Betacommand
Question why dont you use Pywikipedia framework? I can see about 90% of your code becomes obsolete If you just use the existing framework and it handles the differences in MediaWiki versions automatically. (and can even fall back to screen scraping on sites that either have a ancient or missing API

Re: [Mediawiki-api] Problem with generating email tokens

2013-04-07 Thread Betacommand
How about you dont send unsolicited email via wikipedia? On Mon, Apr 8, 2013 at 2:20 AM, Prabhavathi Matta wrote: > Hi, > > I am working on an UC Berkeley research project to analyze wikipedia > users' behaviour. As a part of the project, I am developing an application > which sends a survey to a

Re: [Mediawiki-api] Problem with generating email tokens

2013-04-07 Thread Betacommand
Wikipedia users rarely care why you want to send spam, (which this is) and really dislike getting spammed. My suggestion would be to find a different research topic or a way to do it without spamming users emails. On Mon, Apr 8, 2013 at 2:52 AM, Prabhavathi Matta wrote: > I understand what you ar

Re: [Mediawiki-api] Bad or Invalid Token in Extension

2014-04-27 Thread Betacommand
you should be using the move token not the edit token On Sun, Apr 27, 2014 at 12:28 PM, Justin Maldonado wrote: > I'm trying to make a simple extension that moves a page on my mediawiki > site, but whether using curl or FauxRequest, I always get bad token > response. Tried urlencoding, not encodi

Re: [Mediawiki-api] Revision / version number of a wikipedia page / title

2014-12-12 Thread Betacommand
http://en.wikipedia.org/w/api.php?format=xml&action=query&prop=revisions&rvprop=content|ids&pageids=10&format=jsonfm See the API documentation on rvprop On Fri, Dec 12, 2014 at 6:15 PM, practikalmind wrote: > > Hi, > >Using the mediaWiki API, is it possible to get the revision >

Re: [Mediawiki-api] API JSONFM format

2014-12-12 Thread Betacommand
Im not sure who you polled, but the red/blue disaster that that is the current format is about 100x harder for me to read than the old version. If reverting isnt an option can we get something like jsontxt added where we can get the un-prettifed version? Adding coloring may help for some users, but

Re: [Mediawiki-api] API JSONFM format

2014-12-13 Thread Betacommand
ich makes testing API much easier than using format=jsonfm. > > On Sat, Dec 13, 2014 at 3:24 AM, Betacommand > wrote: >> >> Im not sure who you polled, but the red/blue disaster that that is the >> current format is about 100x harder for me to read than the old versi

Re: [Mediawiki-api] API JSONFM format

2014-12-13 Thread Betacommand
at is the current version. On Sat, Dec 13, 2014 at 4:50 PM, Brad Jorsch (Anomie) wrote: > > On Fri, Dec 12, 2014 at 7:24 PM, Betacommand > wrote: >> >> can we get something like jsontxt added where we can get the un-prettifed >> version? >> > > On Sat, Dec

Re: [Mediawiki-api] Results from API in json format returns * as one of the properties

2014-12-15 Thread Betacommand
What JSON library are you using? Any decent library will handle it. On Mon, Dec 15, 2014 at 1:52 PM, practikalmind wrote: > > Hi, > >When I submit the API > http://en.wikipedia.org/w/api.php?format=json&action=query&prop=revisions&rvprop=content|ids&pageids=7412236 > I get the bel

Re: [Mediawiki-api] Description of wiki page (everything before the References section of wiki page)

2015-01-26 Thread Betacommand
What kind of tool/project are you working on? On Mon, Jan 26, 2015 at 12:16 PM, practikalmind wrote: > Hi, > > Is there a way to get the description of the wiki page with everything > “BEFORE” the “References” section? > > For example, http://en.wikipedia.org/wiki/Steve_Jobs I would need in the

Re: [Mediawiki-api] Fwd: Api new user

2015-03-18 Thread Betacommand
Depends on how you define page creator. If you are talking about the fist person to edit a page, you can use prop=revisions with a the sort direction oldest first. On Wed, Mar 18, 2015 at 6:13 PM, ArtGiray . wrote: > http://en.wikipedia.org/w/api.php > > is it possible a single query that return

Re: [Mediawiki-api] Wikipedi api

2015-04-18 Thread Betacommand
You would need to look at the logs for the user On Sat, Apr 18, 2015 at 3:55 PM, ArtGiray . wrote: > https://en.wikipedia.org/w/api.php > How can i find the "SYSOP" user given right date from api? > I want the date of SYSOP user's SYSOP date? > > ___

[Mediawiki-api] Wikipedi api

2015-04-18 Thread Betacommand
rights/rights&leuser=Amalthea > > but it is not response current user "Amalthea" ' s given SYSOP right date? > > could anyone write a single query like me? > > 2015-04-18 23:06 GMT+03:00 Betacommand >: > >> You would need to look at the logs

Re: [Mediawiki-api] Fwd: Check for banning

2016-06-24 Thread Betacommand
We received your email, how are you connecting, what User Agent are you using? and what error message are you getting? On Fri, Jun 24, 2016 at 3:19 PM, Luca Libonati wrote: > > -- JUST A SECOND TENTATIVE TO UNDERSTAND IF YOU HAVE RECEIVED THIS EMAIL -- > -- I DON'T KNOW IF I NEED TO WAIT FOR AN

Re: [Mediawiki-api] Action login doesn't return a lgtoken anymore

2016-10-18 Thread Betacommand
Primary issue is that the login token has been moved to the cookies and not an actual token that needs to be re-used. hopefully that helps. On Tue, Oct 18, 2016 at 7:40 AM, Dennis Roczek wrote: > > > I'm too lazy to search for the archive links: here are the three > relevant links which do belo

Re: [Mediawiki-api] parse feature inconsistency

2017-01-27 Thread Betacommand
That would be because of capitalization see https://en.wikipedia.org/w/api.php?action=parse&prop=sections&page=Set_theory On Fri, Jan 27, 2017 at 8:06 AM, Max Vlasov wrote: > Hi, > > Trying to find a way to extract links from a wikipedia see also section, > noticed a stackoverflow answer ( http:

Re: [Mediawiki-api] Invalid Token

2017-02-19 Thread Betacommand
Don't strip the last \ its part of a legacy validity check. Always pass whatever you get back the way you for it. On Sun, Feb 19, 2017 at 1:49 AM Michael wrote: > Sorry, if it turns out as a stupid mistake, but I am at the end of my own > knowledge to solve this issue on my MediaWiki 1.28 instal

Re: [Mediawiki-api] REL1_28 issue

2017-04-11 Thread Betacommand
Figured it was something like that, any ETA on when that fix will go live? On Tue, Apr 11, 2017 at 12:10 PM, Chad wrote: > Slightly less scary subject: the extension meta repo is busted because it > contains > a submodule that doesn't exist. Easily fixed. > > Meta note: this is why deleting exte

Re: [Mediawiki-api] REL1_28 issue

2017-04-11 Thread Betacommand
super simple. >> >> I mean, anyone can fix this (ideally the people who delete repos should >> do it) >> >> -Chad >> >> >> On Tue, Apr 11, 2017 at 10:38 AM Betacommand >> wrote: >> >> Figured it was something like that, any ETA

Re: [Mediawiki-api] Issuing 2 API requests in same session?

2017-07-14 Thread Betacommand
Most frameworks have a cookie jar session handling as part of the language. I dont program PHP myself, but it should have the generic cookie handling you're looking for. On Fri, Jul 14, 2017 at 12:13 PM, Daniel Barrett wrote: > I'm trying to log into a MediaWiki 1.28 site using the API and a > s

Re: [Mediawiki-api] Random Articles Generator - Articles Order

2018-03-18 Thread Betacommand
If I recall correctly the "randomness" is predetermined and you are always going to pull from the same list order but in random location on said list. This is from memory so take it with a grain of salt On Sun, Mar 18, 2018 at 4:55 PM Tal Barda <412tal...@gmail.com> wrote: > Hi! > I have a questi

Re: [Mediawiki-api] API Help - allpages endpoint

2018-12-20 Thread Betacommand
What are you trying to do? On Thu, Dec 20, 2018 at 10:12 AM Czuma, Marek < marek.cz...@contractors.roche.com> wrote: > I was thinking about it. But unfortunately, it will search for only this > namespace. And it wont show me next point (apcontinue) > > On Thu, Dec 20, 2018 at 4:02 PM bawolff wro

Re: [Mediawiki-api] API Help - allpages endpoint

2018-12-20 Thread Betacommand
l apcontinue == null. > That's all. If i get page with namespace, I cant go and take only from > this namespace, cause I wont have next apcontinue. > > On Thu, Dec 20, 2018 at 6:54 PM Betacommand wrote: > >> What are you trying to do? >> >> On Thu, Dec 20, 201

Re: [Mediawiki-api] API Help - allpages endpoint

2018-12-20 Thread Betacommand
ns 0 has probably everything. I fetched (now) some data > with 0 namespace and I can see also pages with namespaces > > On Thu, Dec 20, 2018 at 7:48 PM Betacommand wrote: > >> If I recall correctly by default it pulls from ns0 only. If you want a >> list of all pages all namesp

Re: [Mediawiki-api] Recommendations for accessing multiple languages

2019-05-08 Thread Betacommand
Why are you making so queries? Have you tried batching pages together? What kind of project needs a real-time copy of a large data set? On Wed, May 8, 2019 at 2:49 PM Aadithya C Udupa wrote: > Thank you for the quick response, Michael. > I was making close to 10 requests per second previously.

Re: [Mediawiki-api] So 0 is only regular page right?

2020-01-31 Thread Betacommand
Look up mediawiki namespaces. That’s a fairly wide statement On Fri, Jan 31, 2020 at 7:28 AM Furkan Gözükara wrote: > If is other than 0, it means it is some other special page like > category talk etc right? > > Are there any documentation for this? > > > __

Re: [Mediawiki-api] So 0 is only regular page right?

2020-01-31 Thread Betacommand
spaces. 0 (Main) "Real" content articles.[1] > > On Fri, Jan 31, 2020 at 3:54 PM Betacommand wrote: > >> >> Look up mediawiki namespaces. That’s a fairly wide statement >> >> On Fri, Jan 31, 2020 at 7:28 AM Furkan Gözükara >> wrote: >> >>>

Re: [Mediawiki-api] Fetch swimmer data

2020-06-08 Thread Betacommand
That wiki has almost zero content. The API is functioning like it should be. On Mon, Jun 8, 2020 at 12:10 PM Vladimir Dabic wrote: > Hi, > > I'm having some trouble when I try to fetch data for swimmers. > > When I do allpages request ( > https://wiki.swimrankings.net/api.php?action=query&list=