Is there a way to hide the "You are looking at the HTML representation of the ??? format." message that shows at the top of most of the *fm formats? A flag that can be used as needed in the url would be great. Hacking the source to remove it would also be acceptable, if someone would point me to the correct place.
I understand the reason for it, and the links it gives are useful for new people, but the thousandth time I've seen it, I just starts to irk me. I would accept this showing on the xmlfm format if no format were passed, and it was assuming xmlfm as the default, but it would be nice if it didnt show it if I explicitly say that format.
(sorry to the mailing gods for the accidental sending to the announce-only list. clicked the wrong bookmarked mailman page)
You must explicitly set the format parameter to a non-fm value, such as xml, json, yaml.
api.php?action=query&prop=info&titles=Main%20Page&format=xml
On Wed, May 4, 2011 at 1:51 AM, C Stafford c.stafford@gmail.com wrote:
Is there a way to hide the "You are looking at the HTML representation of the ??? format." message that shows at the top of most of the *fm formats? A flag that can be used as needed in the url would be great. Hacking the source to remove it would also be acceptable, if someone would point me to the correct place.
I understand the reason for it, and the links it gives are useful for new people, but the thousandth time I've seen it, I just starts to irk me. I would accept this showing on the xmlfm format if no format were passed, and it was assuming xmlfm as the default, but it would be nice if it didnt show it if I explicitly say that format.
(sorry to the mailing gods for the accidental sending to the announce-only list. clicked the wrong bookmarked mailman page)
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Hi All,
I am trying to download data from wiktionary for Food category. Is there an API call available through which I can achieve this functionality or if dump file is provided for the same?
Thanks for help! Param
On Wed, May 4, 2011 at 3:01 PM, Sethi, Parampreet parampreet.sethi@teamaol.com wrote:
Hi All,
I am trying to download data from wiktionary for Food category. Is there an API call available through which I can achieve this functionality or if dump file is provided for the same?
Use categorymembers as generator and ask for the revision property content:
http://en.wiktionary.org/w/api.php?action=query&generator=categorymember...
Hey Bryan,
Thanks for the quick reply.
I am just a newbie and trying to add wiktionary food data into my existing Food Dictionary data.
I am getting the required data from the url you gave, but Its only returning few records. Sorry for being naïve, how can I get the complete data?
Thanks Param
On 5/4/11 10:23 AM, "Bryan Tong Minh" bryan.tongminh@gmail.com wrote:
On Wed, May 4, 2011 at 3:01 PM, Sethi, Parampreet parampreet.sethi@teamaol.com wrote:
Hi All,
I am trying to download data from wiktionary for Food category. Is there an API call available through which I can achieve this functionality or if dump file is provided for the same?
Use categorymembers as generator and ask for the revision property content:
http://en.wiktionary.org/w/api.php?action=query&generator=categorymember... itle=Category:Foods&prop=info|revisions&rvprop=content
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
On Wed, May 4, 2011 at 5:05 PM, Sethi, Parampreet parampreet.sethi@teamaol.com wrote:
Hey Bryan,
Thanks for the quick reply.
I am just a newbie and trying to add wiktionary food data into my existing Food Dictionary data.
I am getting the required data from the url you gave, but Its only returning few records. Sorry for being naïve, how can I get the complete data?
Use the query-continue that is provided. The response contains gcmcontinue="page|217259|ALOO CHAAT". This means that you should add &gcmcontinue=page|217259|ALOO CHAAT to the query string:
http://en.wiktionary.org/w/api.php?action=query&generator=categorymember...
yes, but those give me those native formats. i WANT the pretty print html output of that format, just dont want that message at the top
On Wed, May 4, 2011 at 12:41 AM, Jim Safley jimsafley@gmail.com wrote:
You must explicitly set the format parameter to a non-fm value, such as xml, json, yaml.
api.php?action=query&prop=info&titles=Main%20Page&format=xml
On Thu, May 5, 2011 at 12:10 AM, C Stafford c.stafford@gmail.com wrote:
yes, but those give me those native formats. i WANT the pretty print html output of that format, just dont want that message at the top
So strip it out yourself if you need to. "It annoys me" is not a valid reason :)
Roan Kattouw (Catrope)
Cant strip it out, it isnt being parsed by anything. I've got a bunch of api urls in a frameset for monitoring
Thats why I explicitly asked the question I did in the original email. I wanted to know (and the simple answer of "there isnt one" would have sufficed) if there was a way to hide it by setting something in request.
On Wed, May 4, 2011 at 3:16 PM, Roan Kattouw roan.kattouw@gmail.com wrote:
So strip it out yourself if you need to. "It annoys me" is not a valid reason :)
Roan Kattouw (Catrope)
You could, for example, request format=xml and pretty print it yourself using DOM [1], Tidy [2], or any number of XML to HTML conversion utilities. [3]
[1] http://www.php.net/manual/en/class.domdocument.php#domdocument.props.formato... [2] http://www.php.net/manual/en/tidy.parsestring.php [3] http://gdatatips.blogspot.com/2008/11/xml-php-pretty-printer.html
On Wed, May 4, 2011 at 6:22 PM, C Stafford c.stafford@gmail.com wrote:
Cant strip it out, it isnt being parsed by anything. I've got a bunch of api urls in a frameset for monitoring
Thats why I explicitly asked the question I did in the original email. I wanted to know (and the simple answer of "there isnt one" would have sufficed) if there was a way to hide it by setting something in request.
On Wed, May 4, 2011 at 3:16 PM, Roan Kattouw roan.kattouw@gmail.com wrote:
So strip it out yourself if you need to. "It annoys me" is not a valid reason :)
Roan Kattouw (Catrope)
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
C Stafford wrote:
Cant strip it out, it isnt being parsed by anything. I've got a bunch of api urls in a frameset for monitoring
Thats why I explicitly asked the question I did in the original email. I wanted to know (and the simple answer of "there isnt one" would have sufficed) if there was a way to hide it by setting something in request.
You could strip it with greasemonkey (or perhaps with stylish, but it isn't well-classed).
Also a valid solution, but that would require THAT greasemonkey script being on each person's computer who is viewing it, and each person viewing it using a greasemonkey'able browser.
This is literally being used in a static html file. which means NO code is loading it. just a plain simple html frameset directly loading a url all on its own. its used by different people, in different browsers. its not even hosted on a server, its sitting on a dropbox url. its meant to monitor the monitors, so it cant be down if we're down.
I'm going to let it drop, since the thing i needed doesnt exist, any solution people give will not work for what i originally asked, or will be single view hacks (also not acceptable). i'm going to just live with it i guess ><
On Wed, May 4, 2011 at 3:46 PM, Platonides platonides@gmail.com wrote:
C Stafford wrote:
Cant strip it out, it isnt being parsed by anything. I've got a bunch of api urls in a frameset for monitoring
Thats why I explicitly asked the question I did in the original email. I wanted to know (and the simple answer of "there isnt one" would have sufficed) if there was a way to hide it by setting something in request.
You could strip it with greasemonkey (or perhaps with stylish, but it isn't well-classed).
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
C Stafford wrote:
Also a valid solution, but that would require THAT greasemonkey script being on each person's computer who is viewing it, and each person viewing it using a greasemonkey'able browser.
This is literally being used in a static html file. which means NO code is loading it. just a plain simple html frameset directly loading a url all on its own. its used by different people, in different browsers. its not even hosted on a server, its sitting on a dropbox url. its meant to monitor the monitors, so it cant be down if we're down.
I'm going to let it drop, since the thing i needed doesnt exist, any solution people give will not work for what i originally asked, or will be single view hacks (also not acceptable). i'm going to just live with it i guess ><
You said that you were bored of looking at it. Why are you showing a xmlfm format in an iframe to the public? That looks like using the wrong tool.
mediawiki-api@lists.wikimedia.org