Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't dump biografias.bcn.cl #314

Closed
pichilemino opened this issue May 17, 2018 · 8 comments
Closed

Can't dump biografias.bcn.cl #314

pichilemino opened this issue May 17, 2018 · 8 comments

Comments

@pichilemino
Copy link

I'm having real trouble trying to dump http://biografias.bcn.cl/api.php
They're using Mediawiki 1.17.0 and not even the older versions of dumpgenerator.py will work with this!
I've tried dumping other wikis and they work, this one won't
If someone could help me, it would be much appreciated for sure!

C:\Python27>python "C:\Users\diego\Desktop\Diccionario\wikiteam-master\dumpgenerator.py" --api=http://biografias.bcn.cl/api.php --xml --images
Please install the wikitools 1.3+ module if you want to use --xmlrevisions.
Checking API... http://biografias.bcn.cl/api.php
u'\n\n\n\t<title>MediaWiki API</title>\n\n\n

\n<?xml version="1.0"?>\n<api servedby="mediawiki">\n  <error code="help" info="" xml:space="preserve">\n  \n  \n  \n                                                                                        \n                This is an auto-generated MediaWiki API documentation page              \n                                                                                        \n                              Documentation and Examples:                               \n  **                         http://www.mediawiki.org/wiki/API                            \n                                                                                        \n  \n  \n  Status:                All features shown on this page should be working, but the API\n                         is still in active development, and  may change at any time.\n                         Make sure to monitor our mailing list for any updates\n  \n  Documentation:         http://www.mediawiki.org/wiki/API\n  Mailing list:          http://lists.wikimedia.org/mailman/listinfo/mediawiki-api\n  Api Announcements:     http://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce\n  Bugs & Requests:       http://bugzilla.wikimedia.org/buglist.cgi?component=API&amp;bug_status=NEW&amp;bug_status=ASSIGNED&amp;bug_status=REOPENED&amp;order=bugs.delta_ts\n  \n  \n  \n  \n  \nParameters:\n  format         - The format of the output\n                   One value: json, jsonfm, php, phpfm, wddx, wddxfm, xml, xmlfm, yaml, yamlfm, rawfm, txt, txtfm, dbg, dbgfm, dump, dumpfm\n                   Default: xmlfm\n  action         - What action you would like to perform. See below for module help\n                   One value: login, logout, query, expandtemplates, parse, opensearch, feedwatchlist, help, paraminfo, rsd, purge, rollback, delete, undelete, protect, block, unblock, move, edit, upload, emailuser, watch, patrol, import, userrights\n                   Default: help\n  version        - When showing help, include version for each module\n  maxlag         - Maximum lag\n  smaxage        - Set the s-maxage header to this many seconds. Errors are never cached\n                   Default: 0\n  maxage         - Set the max-age header to this many seconds. Errors are never cached\n                   Default: 0\n  requestid      - Request ID to distinguish requests. This will just be output back to you\n  servedby       - Include the hostname that served the request in the results. Unconditionally shown on error\n\n\n* *** *** *** *** *** *** *** *** ***  Modules  *** *** *** *** *** *** *** *** ***  \n\n action=login (lg) \n  This module is used to login and get the authentication tokens. \n  In the event of a successful log-in, a cookie will be attached\n  to your session. In the event of a failed log-in, you will not \n  be able to attempt another log-in through this method for 5 seconds.\n  This is to prevent password guessing by automated password crackers\n\nThis module only accepts POST requests\nParameters:\n  lgname         - User Name\n  lgpassword     - Password\n  lgdomain       - Domain (optional)\n  lgtoken        - Login token obtained in first request\nExample:\n  api.php?action=login&lgname=user&lgpassword=password\n\n action=logout \n  This module is used to logout and clear session data\nExample:\n  api.php?action=logout\n\n action=query \n  Query API module allows applications to get needed pieces of data from the MediaWiki databases,\n  and is loosely based on the old query.php interface.\n  All data modifications will first have to use query to acquire a token to prevent abuse from malicious sites\n\nThis module requires read rights\nParameters:\n  titles         - A list of titles to work on\n  pageids        - A list of page IDs to work on\n                   Maximum number of values 50 (500 for bots)\n  revids         - A list of revision IDs to work on\n                   Maximum number of values 50 (500 for bots)\n  prop           - Which properties to get for the titles/revisions/pageids. Module help is available below\n                   Values (separate with '|'): info, revisions, links, iwlinks, langlinks, images, imageinfo, stashimageinfo, templates, categories, extlinks, categoryinfo, duplicatefiles, pageprops\n  list           - Which lists to get. Module help is available below\n                   Values (separate with '|'): allimages, allpages, alllinks, allcategories, allusers, backlinks, blocks, categorymembers, deletedrevs, embeddedin, filearchive, imageusage, iwbacklinks, logevents, recentchanges, search, tags, usercontribs, watchlist, watchlistraw, exturlusage, users, random, protectedtitles\n  meta           - Which metadata to get about the site. Module help is available below\n                   Values (separate with '|'): siteinfo, userinfo, allmessages\n  generator      - Use the output of a list as the input for other prop/list/meta items\n                   NOTE: generator parameter names must be prefixed with a 'g', see examples\n                   One value: links, images, templates, categories, duplicatefiles, allimages, allpages, alllinks, allcategories, backlinks, categorymembers, embeddedin, imageusage, iwbacklinks, search, watchlist, watchlistraw, exturlusage, random, protectedtitles\n  redirects      - Automatically resolve redirects\n  converttitles  - Convert titles to other variants if necessary. Only works if the wiki's content language supports variant conversion.\n                   Languages that support variant conversion include kk, ku, gan, tg, sr, zh\n  indexpageids   - Include an additional pageids section listing all returned page IDs\n  export         - Export the current revisions of all given or generated pages\n  exportnowrap   - Return the export XML without wrapping it in an XML result (same format as Special:Export). Can only be used with export\nExamples:\n  api.php?action=query&prop=revisions&meta=siteinfo&titles=Main%20Page&rvprop=user|comment\n  api.php?action=query&generator=allpages&gapprefix=API/&prop=revisions\n\n--- --- --- --- --- --- --- ---  Query: Prop  --- --- --- --- --- --- --- --- \n\n prop=info (in) \n  Get basic page information such as namespace, title, last touched date, ...\n\nThis module requires read rights\nParameters:\n  inprop         - Which additional properties to get:\n                    protection   - List the protection level of each page\n                    talkid       - The page ID of the talk page for each non-talk page\n                    watched      - List the watched status of each page\n                    subjectid    - The page ID of the parent page for each talk page\n                    url          - Gives a full URL to the page, and also an edit URL\n                    readable     - Whether the user can read this page\n                    preload      - Gives the text returned by EditFormPreloadText\n                    displaytitle - Gives the way the page title is actually displayed\n                   Values (separate with '|'): protection, talkid, watched, subjectid, url, readable, preload, displaytitle\n  intoken        - Request a token to perform a data-modifying action on a page\n                   Values (separate with '|'): edit, delete, protect, move, block, unblock, email, import\n  incontinue     - When more results are available, use this to continue\nExamples:\n  api.php?action=query&prop=info&titles=Main%20Page\n  api.php?action=query&prop=info&inprop=protection&titles=Main%20Page\n\n prop=revisions (rv) \n  Get revision information\n  This module may be used in several ways:\n   1) Get data about a set of pages (last revision), by setting titles or pageids parameter\n   2) Get revisions for one given page, by using titles/pageids with start/end/limit params\n   3) Get data about a set of revisions by setting their IDs with revids parameter\n  All parameters marked as (enum) may only be used with a single page (#2)\n\nThis module requires read rights\nParameters:\n  rvprop         - Which properties to get for each revision:\n                    ids            - The ID of the revision\n                    flags          - Revision flags (minor)\n                    timestamp      - The timestamp of the revision\n                    user           - User that made the revision\n                    userid         - User id of revision creator\n                    size           - Length of the revision\n                    comment        - Comment by the user for revision\n                    parsedcomment  - Parsed comment by the user for the revision\n                    content        - Text of the revision\n                    tags           - Tags for the revision\n                   Values (separate with '|'): ids, flags, timestamp, user, userid, size, comment, parsedcomment, content, tags\n                   Default: ids|timestamp|flags|comment|user\n  rvlimit        - Limit how many revisions will be returned (enum)\n                   No more than 500 (5000 for bots) allowed\n  rvstartid      - From which revision id to start enumeration (enum)\n  rvendid        - Stop revision enumeration on this revid (enum)\n  rvstart        - From which revision timestamp to start enumeration (enum)\n  rvend          - Enumerate up to this timestamp (enum)\n  rvdir          - Direction of enumeration - towards "newer" or "older" revisions (enum)\n                   One value: newer, older\n                   Default: older\n  rvuser         - Only include revisions made by user\n  rvexcludeuser  - Exclude revisions made by user\n  rvtag          - Only list revisions tagged with this tag\n  rvexpandtemplates - Expand templates in revision content\n  rvgeneratexml  - Generate XML parse tree for revision content\n  rvparse        - Parse revision content. For performance reasons if this option is used, rvlimit is enforced to 1.\n  rvsection      - Only retrieve the content of this section number\n  rvtoken        - Which tokens to obtain for each revision\n                   Values (separate with '|'): rollback\n  rvcontinue     - When more results are available, use this to continue\n  rvdiffto       - Revision ID to diff each revision to.\n                   Use "prev", "next" and "cur" for the previous, next and current revision respectively\n  rvdifftotext   - Text to diff each revision to. Only diffs a limited number of revisions.\n                   Overrides rvdiffto. If rvsection is set, only that section will be diffed against this text\nExamples:\n  Get data with content for the last revision of titles "API" and "Main Page":\n    api.php?action=query&prop=revisions&titles=API|Main%20Page&rvprop=timestamp|user|comment|content\n  Get last 5 revisions of the "Main Page":\n    api.php?action=query&prop=revisions&titles=Main%20Page&rvlimit=5&rvprop=timestamp|user|comment\n  Get first 5 revisions of the "Main Page":\n    api.php?action=query&prop=revisions&titles=Main%20Page&rvlimit=5&rvprop=timestamp|user|comment&rvdir=newer\n  Get first 5 revisions of the "Main Page" made after 2006-05-01:\n    api.php?action=query&prop=revisions&titles=Main%20Page&rvlimit=5&rvprop=timestamp|user|comment&rvdir=newer&rvstart=20060501000000\n  Get first 5 revisions of the "Main Page" that were not made made by anonymous user "127.0.0.1"\n    api.php?action=query&prop=revisions&titles=Main%20Page&rvlimit=5&rvprop=timestamp|user|comment&rvexcludeuser=127.0.0.1\n  Get first 5 revisions of the "Main Page" that were made by the user "MediaWiki default"\n    api.php?action=query&prop=revisions&titles=Main%20Page&rvlimit=5&rvprop=timestamp|user|comment&rvuser=MediaWiki%20default\n\n prop=links (pl) \n  Returns all links from the given page(s)\n\nThis module requires read rights\nParameters:\n  plnamespace    - Show links in this namespace(s) only\n                   Values (separate with '|'): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 274, 275, 150, 152, 998\n                   Maximum number of values 50 (500 for bots)\n  pllimit        - How many links to return\n                   No more than 500 (5000 for bots) allowed\n                   Default: 10\n  plcontinue     - When more results are available, use this to continue\n  pltitles       - Only list links to these titles. Useful for checking whether a certain page links to a certain title.\nExamples:\n  Get links from the [[Main Page]]:\n    api.php?action=query&prop=links&titles=Main%20Page\n  Get information about the link pages in the [[Main Page]]:\n    api.php?action=query&generator=links&titles=Main%20Page&prop=info\n  Get links from the Main Page in the User and Template namespaces:\n    api.php?action=query&prop=links&titles=Main%20Page&plnamespace=2|10\nGenerator:\n  This module may be used as a generator\n\n prop=iwlinks (iw) \n  Returns all interwiki links from the given page(s)\n\nThis module requires read rights\nParameters:\n  iwurl          - Whether to get the full URL\n  iwlimit        - How many interwiki links to return\n                   No more than 500 (5000 for bots) allowed\n                   Default: 10\n  iwcontinue     - When more results are available, use this to continue\nExamples:\n  Get interwiki links from the [[Main Page]]:\n    api.php?action=query&prop=iwlinks&titles=Main%20Page\n\n prop=langlinks (ll) \n  Returns all interlanguage links from the given page(s)\n\nThis module requires read rights\nParameters:\n  lllimit        - How many langlinks to return\n                   No more than 500 (5000 for bots) allowed\n                   Default: 10\n  llcontinue     - When more results are available, use this to continue\n  llurl          - Whether to get the full URL\nExamples:\n  Get interlanguage links from the [[Main Page]]:\n    api.php?action=query&prop=langlinks&titles=Main%20Page&redirects=\n\n prop=images (im) \n  Returns all images contained on the given page(s)\n\nThis module requires read rights\nParameters:\n  imlimit        - How many images to return\n                   No more than 500 (5000 for bots) allowed\n                   Default: 10\n  imcontinue     - When more results are available, use this to continue\nExamples:\n  Get a list of images used in the [[Main Page]]:\n    api.php?action=query&prop=images&titles=Main%20Page\n  Get information about all images used in the [[Main Page]]:\n    api.php?action=query&generator=images&titles=Main%20Page&prop=info\nGenerator:\n  This module may be used as a generator\n\n prop=imageinfo (ii) \n  Returns image information and upload history\n\nThis module requires read rights\nParameters:\n  iiprop         - What image information to get:\n                    timestamp     - Adds timestamp for the uploaded version\n                    user          - Adds the user who uploaded the image version\n                    userid        - Add the user id that uploaded the image version\n                    comment       - Comment on the version\n                    parsedcomment - Parse the comment on the version\n                    url           - Gives URL to the image and the description page\n                    size          - Adds the size of the image in bytes and the height and width\n                    dimensions    - Alias for size\n                    sha1          - Adds sha1 hash for the image\n                    mime          - Adds MIME of the image\n                    thumbmime     - Adss MIME of the image thumbnail (requires url)\n                    metadata      - Lists EXIF metadata for the version of the image\n                    archivename   - Adds the file name of the archive version for non-latest versions\n                    bitdepth      - Adds the bit depth of the version\n                   Values (separate with '|'): timestamp, user, userid, comment, parsedcomment, url, size, dimensions, sha1, mime, thumbmime, metadata, archivename, bitdepth\n                   Default: timestamp|user\n  iilimit        - How many image revisions to return\n                   No more than 500 (5000 for bots) allowed\n                   Default: 1\n  iistart        - Timestamp to start listing from\n  iiend          - Timestamp to stop listing at\n  iiurlwidth     - If iiprop=url is set, a URL to an image scaled to this width will be returned.\n                   Only the current version of the image can be scaled\n                   Default: -1\n  iiurlheight    - Similar to iiurlwidth. Cannot be used without iiurlwidth\n                   Default: -1\n  iicontinue     - If the query response includes a continue value, use it here to get another page of results\nExamples:\n  api.php?action=query&titles=File:Albert%20Einstein%20Head.jpg&prop=imageinfo\n  api.php?action=query&titles=File:Test.jpg&prop=imageinfo&iilimit=50&iiend=20071231235959&iiprop=timestamp|user|url\n\n prop=stashimageinfo (sii) \n  Returns image information for stashed images\n\nThis module requires read rights\nParameters:\n  siisessionkey  - Session key that identifies a previous upload that was stashed temporarily.\n                   This parameter is required\n  siiprop        - What image information to get:\n                    timestamp    - Adds timestamp for the uploaded version\n                    url          - Gives URL to the image and the description page\n                    size         - Adds the size of the image in bytes and the height and width\n                    dimensions   - Alias for size\n                    sha1         - Adds sha1 hash for the image\n                    mime         - Adds MIME of the image\n                    thumbmime    - Adss MIME of the image thumbnail (requires url)\n                    metadata     - Lists EXIF metadata for the version of the image\n                    bitdepth     - Adds the bit depth of the version\n                   Values (separate with '|'): timestamp, url, size, dimensions, sha1, mime, thumbmime, metadata, bitdepth\n                   Default: timestamp|url\n  siiurlwidth    - If siiprop=url is set, a URL to an image scaled to this width will be returned.\n                   Default: -1\n  siiurlheight   - Similar to siiurlwidth. Cannot be used without siiurlwidth\n                   Default: -1\nExamples:\n  api.php?action=query&prop=stashimageinfo&siisessionkey=124sd34rsdf567\n  api.php?action=query&prop=stashimageinfo&siisessionkey=b34edoe3|bceffd4&siiurlwidth=120&siiprop=url\n\n prop=templates (tl) \n  Returns all templates from the given page(s)\n\nThis module requires read rights\nParameters:\n  tlnamespace    - Show templates in this namespace(s) only\n                   Values (separate with '|'): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 274, 275, 150, 152, 998\n                   Maximum number of values 50 (500 for bots)\n  tllimit        - How many templates to return\n                   No more than 500 (5000 for bots) allowed\n                   Default: 10\n  tlcontinue     - When more results are available, use this to continue\n  tltemplates    - Only list these templates. Useful for checking whether a certain page uses a certain template.\nExamples:\n  Get templates from the [[Main Page]]:\n    api.php?action=query&prop=templates&titles=Main%20Page\n  Get information about the template pages in the [[Main Page]]:\n    api.php?action=query&generator=templates&titles=Main%20Page&prop=info\n  Get templates from the Main Page in the User and Template namespaces:\n    api.php?action=query&prop=templates&titles=Main%20Page&tlnamespace=2|10\nGenerator:\n  This module may be used as a generator\n\n prop=categories (cl) \n  List all categories the page(s) belong to\n\nThis module requires read rights\nParameters:\n  clprop         - Which additional properties to get for each category\n                    sortkey    - Adds the sortkey (hexadecimal string) and sortkey prefix (human-readable part) for the category\n                    timestamp  - Adds timestamp of when the category was added\n                    hidden     - Tags categories that are hidden with HIDDENCAT\n                   Values (separate with '|'): sortkey, timestamp, hidden\n  clshow         - Which kind of categories to show\n                   Values (separate with '|'): hidden, !hidden\n  cllimit        - How many categories to return\n                   No more than 500 (5000 for bots) allowed\n                   Default: 10\n  clcontinue     - When more results are available, use this to continue\n  clcategories   - Only list these categories. Useful for checking whether a certain page is in a certain category\nExamples:\n  Get a list of categories [[Albert Einstein]] belongs to:\n    api.php?action=query&prop=categories&titles=Albert%20Einstein\n  Get information about all categories used in the [[Albert Einstein]]:\n    api.php?action=query&generator=categories&titles=Albert%20Einstein&prop=info\nGenerator:\n  This module may be used as a generator\n\n prop=extlinks (el) \n  Returns all external urls (not interwikies) from the given page(s)\n\nThis module requires read rights\nParameters:\n  ellimit        - How many links to return\n                   No more than 500 (5000 for bots) allowed\n                   Default: 10\n  eloffset       - When more results are available, use this to continue\nExamples:\n  Get a list of external links on the [[Main Page]]:\n    api.php?action=query&prop=extlinks&titles=Main%20Page\n\n prop=categoryinfo (ci) \n  Returns information about the given categories\n\nThis module requires read rights\nParameters:\n  cicontinue     - When more results are available, use this to continue\nExample:\n  api.php?action=query&prop=categoryinfo&titles=Category:Foo|Category:Bar\n\n prop=duplicatefiles (df) \n  List all files that are duplicates of the given file(s)\n\nThis module requires read rights\nParameters:\n  dflimit        - How many files to return\n                   No more than 500 (5000 for bots) allowed\n                   Default: 10\n  dfcontinue     - When more results are available, use this to continue\nExamples:\n  api.php?action=query&titles=File:Albert_Einstein_Head.jpg&prop=duplicatefiles\n  api.php?action=query&generator=allimages&prop=duplicatefiles\nGenerator:\n  This module may be used as a generator\n\n prop=pageprops (pp) \n  Get various properties defined in the page content\n\nThis module requires read rights\nParameters:\n  ppcontinue     - When more results are available, use this to continue\nExample:\n  api.php?action=query&prop=pageprops&titles=Category:Foo\n\n--- --- --- --- --- --- --- ---  Query: List  --- --- --- --- --- --- --- --- \n\n list=allimages (ai) \n  Enumerate all images sequentially\n\nThis module requires read rights\nParameters:\n  aifrom         - The image title to start enumerating from\n  aito           - The image title to stop enumerating at\n  aiprefix       - Search for all image titles that begin with this value\n  aiminsize      - Limit to images with at least this many bytes\n  aimaxsize      - Limit to images with at most this many bytes\n  ailimit        - How many images in total to return\n                   No more than 500 (5000 for bots) allowed\n                   Default: 10\n  aidir          - The direction in which to list\n                   One value: ascending, descending\n                   Default: ascending\n  aisha1         - SHA1 hash of image. Overrides aisha1base36\n  aisha1base36   - SHA1 hash of image in base 36 (used in MediaWiki)\n  aiprop         - Which properties to get\n                    timestamp    - Adds the timestamp when the image was upload\n                    user         - Adds the username of the last uploader\n                    userid       - Adds the user id of the last uploader\n                    comment      - Adds the comment of the last upload\n                    url          - Adds the URL of the image and its description page\n                    size         - Adds the size of the image in bytes and its height and width\n                    dimensions   - Alias of size\n                    sha1         - Adds the sha1 of the image\n                    mime         - Adds the MIME of the image\n                    thumbmime    - Adds the MIME of the tumbnail for the image\n                    archivename  - Adds the file name of the archive version for non-latest versions\n                    bitdepth     - Adds the bit depth of the version\n                   Values (separate with '|'): timestamp, user, userid, comment, parsedcomment, url, size, dimensions, sha1, mime, thumbmime, metadata, archivename, bitdepth\n                   Default: timestamp|url\nExamples:\n  Simple Use\n   Show a list of images starting at the letter "B"\n    api.php?action=query&list=allimages&aifrom=B\n  Using as Generator\n   Show info about 4 images starting at the letter "T"\n    api.php?action=query&generator=allimages&gailimit=4&gaifrom=T&prop=imageinfo\nGenerator:\n  This module may be used as a generator\n\n list=allpages (ap) \n  Enumerate all pages sequentially in a given namespace\n\nThis module requires read rights\nParameters:\n  apfrom         - The page title to start enumerating from\n  apto           - The page title to stop enumerating at\n  apprefix       - Search for all page titles that begin with this value\n  apnamespace    - The namespace to enumerate\n                   One value: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 274, 275, 150, 152, 998\n                   Default: 0\n  apfilterredir  - Which pages to list\n                   One value: all, redirects, nonredirects\n                   Default: all\n  apminsize      - Limit to pages with at least this many bytes\n  apmaxsize      - Limit to pages with at most this many bytes\n  apprtype       - Limit to protected pages only\n                   Values (separate with '|'): edit, move, upload\n  apprlevel      - The protection level (must be used with apprtype= parameter)\n                   Can be empty, or Values (separate with '|'): autoconfirmed, sysop\n  apprfiltercascade - Filter protections based on cascadingness (ignored when apprtype isn't set)\n                   One value: cascading, noncascading, all\n                   Default: all\n  aplimit        - How many total pages to return.\n                   No more than 500 (5000 for bots) allowed\n                   Default: 10\n  apdir          - The direction in which to list\n                   One value: ascending, descending\n                   Default: ascending\n  apfilterlanglinks - Filter based on whether a page has langlinks\n                   One value: withlanglinks, withoutlanglinks, all\n                   Default: all\nExamples:\n  Simple Use\n   Show a list of pages starting at the letter "B"\n    api.php?action=query&list=allpages&apfrom=B\n  Using as Generator\n   Show info about 4 pages starting at the letter "T"\n    api.php?action=query&generator=allpages&gaplimit=4&gapfrom=T&prop=info\n   Show content of first 2 non-redirect pages begining at "Re"\n    api.php?action=query&generator=allpages&gaplimit=2&gapfilterredir=nonredirects&gapfrom=Re&prop=revisions&rvprop=content\nGenerator:\n  This module may be used as a generator\n\n list=alllinks (al) \n  Enumerate all links that point to a given namespace\n\nThis module requires read rights\nParameters:\n  alcontinue     - When more results are available, use this to continue\n  alfrom         - The page title to start enumerating from\n  alto           - The page title to stop enumerating at\n  alprefix       - Search for all page titles that begin with this value\n  alunique       - Only show unique links. Cannot be used with generator or alprop=ids\n  alprop         - What pieces of information to include\n                    ids    - Adds pageid of where the link is from (Cannot be used with alunique)\n                    title  - Adds the title of the link\n                   Values (separate with '|'): ids, title\n                   Default: title\n  alnamespace    - The namespace to enumerate\n                   One value: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 274, 275, 150, 152, 998\n                   Default: 0\n  allimit        - How many total links to return\n                   No more than 500 (5000 for bots) allowed\n                   Default: 10\nExample:\n  api.php?action=query&list=alllinks&alunique=&alfrom=B\nGenerator:\n  This module may be used as a generator\n\n list=allcategories (ac) \n  Enumerate all categories\n\nThis module requires read rights\nParameters:\n  acfrom         - The category to start enumerating from\n  acto           - The category to stop enumerating at\n  acprefix       - Search for all category titles that begin with this value\n  acdir          - Direction to sort in\n                   One value: ascending, descending\n                   Default: ascending\n  aclimit        - How many categories to return\n                   No more than 500 (5000 for bots) allowed\n                   Default: 10\n  acprop         - Which properties to get\n                    size    - Adds number of pages in the category\n                    hidden  - Tags categories that are hidden with HIDDENCAT\n                   Values (separate with '|'): size, hidden\n                   Default: \nExamples:\n  api.php?action=query&list=allcategories&acprop=size\n  api.php?action=query&generator=allcategories&gacprefix=List&prop=info\nGenerator:\n  This module may be used as a generator\n\n list=allusers (au) \n  Enumerate all registered users\n\nThis module requires read rights\nParameters:\n  aufrom         - The user name to start enumerating from\n  auto           - The user name to stop enumerating at\n  auprefix       - Search for all users that begin with this value\n  augroup        - Limit users to a given group name\n                   One value: bot, sysop, bureaucrat, widgeteditor\n  auprop         - What pieces of information to include.\n                    blockinfo     - Adds the information about a current block on the user\n                    groups        - Lists groups that the user is in\n                    editcount     - Adds the edit count of the user\n                    registration  - Adds the timestamp of when the user registered\n                   groups property uses more server resources and may return fewer results than the limit\n                   Values (separate with '|'): blockinfo, groups, editcount, registration\n  aulimit        - How many total user names to return\n                   No more than 500 (5000 for bots) allowed\n                   Default: 10\n  auwitheditsonly - Only list users who have made edits\nExample:\n  api.php?action=query&list=allusers&aufrom=Y\n\n list=backlinks (bl) \n  Find all pages that link to the given page\n\nThis module requires read rights\nParameters:\n  bltitle        - Title to search\n                   This parameter is required\n  blcontinue     - When more results are available, use this to continue\n  blnamespace    - The namespace to enumerate\n                   Values (separate with '|'): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 274, 275, 150, 152, 998\n                   Maximum number of values 50 (500 for bots)\n  blfilterredir  - How to filter for redirects. If set to nonredirects when blredirect is enabled, this is only applied to the second level\n                   One value: all, redirects, nonredirects\n                   Default: all\n  bllimit        - How many total pages to return. If blredirect is enabled, limit applies to each level separately (which means you may get up to 2 * limit results).\n                   No more than 500 (5000 for bots) allowed\n                   Default: 10\n  blredirect     - If linking page is a redirect, find all pages that link to that redirect as well. Maximum limit is halved.\nExamples:\n  api.php?action=query&list=backlinks&bltitle=Main%20Page\n  api.php?action=query&generator=backlinks&gbltitle=Main%20Page&prop=info\nGenerator:\n  This module may be used as a generator\n\n list=blocks (bk) \n  List all blocked users and IP addresses\n\nThis module requires read rights\nParameters:\n  bkstart        - The timestamp to start enumerating from\n  bkend          - The timestamp to stop enumerating at\n  bkdir          - The direction in which to enumerate\n                   One value: newer, older\n                   Default: older\n  bkids          - Pipe-separated list of block IDs to list (optional)\n                   Maximum number of values 50 (500 for bots)\n  bkusers        - Pipe-separated list of users to search for (optional)\n  bkip           - Get all blocks applying to this IP or CIDR range, including range blocks.\n                   Cannot be used together with bkusers. CIDR ranges broader than /16 are not accepted\n  bklimit        - The maximum amount of blocks to list\n                   No more than 500 (5000 for bots) allowed\n                   Default: 10\n  bkprop         - Which properties to get\n                    id         - Adds the id of the block\n                    user       - Adds the username of the blocked user\n                    by         - Adds the username of the blocking admin\n                    timestamp  - Adds the timestamp of when the block was given\n                    expiry     - Adds the timestamp of when the block expires\n                    reason     - Adds the reason given for the block\n                    range      - Adds the range of IPs affected by the block\n                    flags      - Tags the ban with (autoblock, anononly, etc)\n                   Values (separate with '|'): id, user, by, timestamp, expiry, reason, range, flags\n                   Default: id|user|by|timestamp|expiry|reason|flags\nExamples:\n  api.php?action=query&list=blocks\n  api.php?action=query&list=blocks&bkusers=Alice|Bob\n\n list=categorymembers (cm) \n  List all pages in a given category\n\nThis module requires read rights\nParameters:\n  cmtitle        - Which category to enumerate (required). Must include Category: prefix\n                   This parameter is required\n  cmprop         - What pieces of information to include\n                    ids           - Adds the page ID\n                    title         - Adds the title and namespace ID of the page\n                    sortkey       - Adds the sortkey used for sorting in the category (hexadecimal string)\n                    sortkeyprefix - Adds the sortkey prefix used for sorting in the category (human-readable part of the sortkey)\n                    type          - Adds the type that the page has been categorised as (page, subcat or file)\n                    timestamp     - Adds the timestamp of when the page was included\n                   Values (separate with '|'): ids, title, sortkey, sortkeyprefix, type, timestamp\n                   Default: ids|title\n  cmnamespace    - Only include pages in these namespaces\n                   Values (separate with '|'): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 274, 275, 150, 152, 998\n                   Maximum number of values 50 (500 for bots)\n  cmtype         - What type of category members to include. Ignored when cmsort=timestamp is set\n                   Values (separate with '|'): page, subcat, file\n                   Default: page|subcat|file\n  cmcontinue     - For large categories, give the value retured from previous query\n  cmlimit        - The maximum number of pages to return.\n                   No more than 500 (5000 for bots) allowed\n                   Default: 10\n  cmsort         - Property to sort by\n                   One value: sortkey, timestamp\n                   Default: sortkey\n  cmdir          - In which direction to sort\n                   One value: asc, desc\n                   Default: asc\n  cmstart        - Timestamp to start listing from. Can only be used with cmsort=timestamp\n  cmend          - Timestamp to end listing at. Can only be used with cmsort=timestamp\n  cmstartsortkey - Sortkey to start listing from. Can only be used with cmsort=sortkey\n  cmendsortkey   - Sortkey to end listing at. Can only be used with cmsort=sortkey\nExamples:\n  Get first 10 pages in [[Category:Physics]]:\n    api.php?action=query&list=categorymembers&cmtitle=Category:Physics\n  Get page info about first 10 pages in [[Category:Physics]]:\n    api.php?action=query&generator=categorymembers&gcmtitle=Category:Physics&prop=info\nGenerator:\n  This module may be used as a generator\n\n list=deletedrevs (dr) \n  List deleted revisions.\n  This module operates in three modes:\n  1) List deleted revisions for the given title(s), sorted by timestamp\n  2) List deleted contributions for the given user, sorted by timestamp (no titles specified)\n  3) List all deleted revisions in the given namespace, sorted by title and timestamp (no titles specified, druser not set)\n  Certain parameters only apply to some modes and are ignored in others.\n  For instance, a parameter marked (1) only applies to mode 1 and is ignored in modes 2 and 3\n\nThis module requires read rights\nParameters:\n  drstart        - The timestamp to start enumerating from (1,2)\n  drend          - The timestamp to stop enumerating at (1,2)\n  drdir          - The direction in which to enumerate (1,2)\n                   One value: newer, older\n                   Default: older\n  drfrom         - Start listing at this title (3)\n  drcontinue     - When more results are available, use this to continue (3)\n  drunique       - List only one revision for each page (3)\n  druser         - Only list revisions by this user\n  drexcludeuser  - Don't list revisions by this user\n  drnamespace    - Only list pages in this namespace (3)\n                   One value: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 274, 275, 150, 152, 998\n                   Default: 0\n  drlimit        - The maximum amount of revisions to list\n                   No more than 500 (5000 for bots) allowed\n                   Default: 10\n  drprop         - Which properties to get\n                    revid          - Adds the revision id of the deleted revision\n                    user           - Adds the user who made the revision\n                    userid         - Adds the user id whom made the revision\n                    comment        - Adds the comment of the revision\n                    parsedcomment  - Adds the parsed comment of the revision\n                    minor          - Tags if the revision is minor\n                    len            - Adds the length of the revision\n                    content        - Adds the content of the revision\n                    token          - Gives the edit token\n                   Values (separate with '|'): revid, user, userid, comment, parsedcomment, minor, len, content, token\n                   Default: user|comment\nExamples:\n  List the last deleted revisions of Main Page and Talk:Main Page, with content (mode 1):\n    api.php?action=query&list=deletedrevs&titles=Main%20Page|Talk:Main%20Page&drprop=user|comment|content\n  List the last 50 deleted contributions by Bob (mode 2):\n    api.php?action=query&list=deletedrevs&druser=Bob&drlimit=50\n  List the first 50 deleted revisions in the main namespace (mode 3):\n    api.php?action=query&list=deletedrevs&drdir=newer&drlimit=50\n  List the first 50 deleted pages in the Talk namespace (mode 3):\n    api.php?action=query&list=deletedrevs&drdir=newer&drlimit=50&drnamespace=1&drunique=\n\n list=embeddedin (ei) \n  Find all pages that embed (transclude) the given title\n\nThis module requires read rights\nParameters:\n  eititle        - Title to search\n                   This parameter is required\n  eicontinue     - When more results are available, use this to continue\n  einamespace    - The namespace to enumerate\n                   Values (separate with '|'): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 274, 275, 150, 152, 998\n                   Maximum number of values 50 (500 for bots)\n  eifilterredir  - How to filter for redirects\n                   One value: all, redirects, nonredirects\n                   Default: all\n  eilimit        - How many total pages to return\n                   No more than 500 (5000 for bots) allowed\n                   Default: 10\nExamples:\n  api.php?action=query&list=embeddedin&eititle=Template:Stub\n  api.php?action=query&generator=embeddedin&geititle=Template:Stub&prop=info\nGenerator:\n  This module may be used as a generator\n\n list=filearchive (fa) \n  Enumerate all deleted files sequentially\n\nThis module requires read rights\nParameters:\n  fafrom         - The image title to start enumerating from\n  faprefix       - Search for all image titles that begin with this value\n  falimit        - How many total images to return\n                   No more than 500 (5000 for bots) allowed\n                   Default: 10\n  fadir          - The direction in which to list\n                   One value: ascending, descending\n                   Default: ascending\n  faprop         - What image information to get:\n                    sha1         - Adds sha1 hash for the image\n                    timestamp    - Adds timestamp for the uploaded version\n                    user         - Adds user who uploaded the image version\n                    size         - Adds the size of the image in bytes\n                    dimensions   - Adds the height and width of the image\n                    description  - Adds description the image version\n                    mime         - Adds MIME of the image\n                    metadata     - Lists EXIF metadata for the version of the image\n                    bitdepth     - Adds the bit depth of the version\n                   Values (separate with '|'): sha1, timestamp, user, size, dimensions, description, mime, metadata, bitdepth\n                   Default: timestamp\nExamples:\n  Simple Use\n   Show a list of all deleted files\n    api.php?action=query&list=filearchive\n\n list=imageusage (iu) \n  Find all pages that use the given image title.\n\nThis module requires read rights\nParameters:\n  iutitle        - Title to search\n                   This parameter is required\n  iucontinue     - When more results are available, use this to continue\n  iunamespace    - The namespace to enumerate\n                   Values (separate with '|'): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 274, 275, 150, 152, 998\n                   Maximum number of values 50 (500 for bots)\n  iufilterredir  - How to filter for redirects. If set to nonredirects when iuredirect is enabled, this is only applied to the second level\n                   One value: all, redirects, nonredirects\n                   Default: all\n  iulimit        - How many total pages to return. If iuredirect is enabled, limit applies to each level separately (which means you may get up to 2 * limit results).\n                   No more than 500 (5000 for bots) allowed\n                   Default: 10\n  iuredirect     - If linking page is a redirect, find all pages that link to that redirect as well. Maximum limit is halved.\nExamples:\n  api.php?action=query&list=imageusage&iutitle=File:Albert%20Einstein%20Head.jpg\n  api.php?action=query&generator=imageusage&giutitle=File:Albert%20Einstein%20Head.jpg&prop=info\nGenerator:\n  This module may be used as a generator\n\n list=iwbacklinks (iwbl) \n  Find all pages that link to the given interwiki link.\n  Can be used to find all links with a prefix, or\n  all links to a title (with a given prefix).\n  Using neither parameter is effectively "All IW Links"\n\nThis module requires read rights\nParameters:\n  iwblprefix     - Prefix for the interwiki\n  iwbltitle      - Interwiki link to search for. Must be used with iwblprefix\n  iwblcontinue   - When more results are available, use this to continue\n  iwbllimit      - How many total pages to return\n                   No more than 500 (5000 for bots) allowed\n                   Default: 10\n  iwblprop       - Which properties to get\n                    iwprefix       - Adds the prefix of the interwiki\n                    iwtitle        - Adds the title of the interwiki\n                   Values (separate with '|'): iwprefix, iwtitle\n                   Default: \nExamples:\n  api.php?action=query&list=iwbacklinks&iwbltitle=Test&iwblprefix=wikibooks\n  api.php?action=query&generator=iwbacklinks&giwbltitle=Test&iwblprefix=wikibooks&prop=info\nGenerator:\n  This module may be used as a generator\n\n list=logevents (le) \n  Get events from logs\n\nThis module requires read rights\nParameters:\n  leprop         - Which properties to get\n                    ids            - Adds the id of the log event\n                    title          - Adds the title of the page for the log event\n                    type           - Adds the type of log event\n                    user           - Adds the user responsible for the log event\n                    userid         - Adds the user id who was responsible for the log event\n                    timestamp      - Adds the timestamp for the event\n                    comment        - Adds the comment of the event\n                    parsedcomment  - Adds the parsed comment of the event\n                    details        - Lists addtional details about the event\n                    tags           - Lists tags for the event\n                   Values (separate with '|'): ids, title, type, user, userid, timestamp, comment, parsedcomment, details, tags\n                   Default: ids|title|type|user|timestamp|comment|details\n  letype         - Filter log entries to only this type(s)\n                   Can be empty, or One value: block, protect, rights, delete, upload, move, import, patrol, merge, suppress, newusers\n  leaction       - Filter log actions to only this type. Overrides letype\n                   One value: block/block, block/unblock, block/reblock, protect/protect, protect/modify, protect/unprotect, protect/move_prot, rights/rights, rights/disable, delete/delete, delete/restore, delete/revision, delete/event, upload/upload, upload/overwrite, upload/revert, move/move, move/move_redir, import/upload, import/interwiki, merge/merge, suppress/revision, suppress/file, suppress/event, suppress/delete, suppress/block, suppress/reblock, patrol/patrol, newusers/newusers, newusers/create, newusers/create2, newusers/autocreate\n  lestart        - The timestamp to start enumerating from\n  leend          - The timestamp to end enumerating\n  ledir          - In which direction to enumerate\n                   One value: newer, older\n                   Default: older\n  leuser         - Filter entries to those made by the given user\n  letitle        - Filter entries to those related to a page\n  letag          - Only list event entries tagged with this tag\n  lelimit        - How many total event entries to return\n                   No more than 500 (5000 for bots) allowed\n                   Default: 10\nExample:\n  api.php?action=query&list=logevents\n\n list=recentchanges (rc) \n  Enumerate recent changes\n\nThis module requires read rights\nParameters:\n  rcstart        - The timestamp to start enumerating from\n  rcend          - The timestamp to end enumerating\n  rcdir          - In which direction to enumerate\n                   One value: newer, older\n                   Default: older\n  rcnamespace    - Filter log entries to only this namespace(s)\n                   Values (separate with '|'): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 274, 275, 150, 152, 998\n                   Maximum number of values 50 (500 for bots)\n  rcuser         - Only list changes by this user\n  rcexcludeuser  - Don't list changes by this user\n  rctag          - Only list changes tagged with this tag\n  rcprop         - Include additional pieces of information\n                    user           - Adds the user responsible for the edit and tags if they are an IP\n                    userid         - Adds the user id responsible for the edit\n                    comment        - Adds the comment for the edit\n                    parsedcomment  - Adds the parsed comment for the edit\n                    flags          - Adds flags for the edit\n                    timestamp      - Adds timestamp of the edit\n                    title          - Adds the page title of the edit\n                    ids            - Adds the page id, recent changes id and the new and old revision id\n                    sizes          - Adds the new and old page length in bytes\n                    redirect       - Tags edit if page is a redirect\n                    patrolled      - Tags edits have have been patrolled\n                    loginfo        - Adds log information (logid, logtype, etc) to log entries\n                    tags           - Lists tags for the entry\n                   Values (separate with '|'): user, userid, comment, parsedcomment, flags, timestamp, title, ids, sizes, redirect, patrolled, loginfo, tags\n                   Default: title|timestamp|ids\n  rctoken        - Which tokens to obtain for each change\n                   Values (separate with '|'): patrol\n  rcshow         - Show only items that meet this criteria.\n                   For example, to see only minor edits done by logged-in users, set rcshow=minor|!anon\n                   Values (separate with '|'): minor, !minor, bot, !bot, anon, !anon, redirect, !redirect, patrolled, !patrolled\n  rclimit        - How many total changes to return\n                   No more than 500 (5000 for bots) allowed\n                   Default: 10\n  rctype         - Which types of changes to show\n                   Values (separate with '|'): edit, new, log\nExample:\n  api.php?action=query&list=recentchanges\n\n list=search (sr) \n  Perform a full text search\n\nThis module requires read rights\nParameters:\n  srsearch       - Search for all page titles (or content) that has this value\n                   This parameter is required\n  srnamespace    - The namespace(s) to enumerate\n                   Values (separate with '|'): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 274, 275, 150, 152, 998\n                   Maximum number of values 50 (500 for bots)\n                   Default: 0\n  srwhat         - Search inside the text or titles\n                   One value: title, text, nearmatch\n  srinfo         - What metadata to return\n                   Values (separate with '|'): totalhits, suggestion\n                   Default: totalhits|suggestion\n  srprop         - What properties to return\n                    size             - Adds the size of the page in bytes\n                    wordcount        - Adds the word count of the page\n                    timestamp        - Adds the timestamp of when the page was last edited\n                    score            - Adds the score (if any) from the search engine\n                    snippet          - Adds a parsed snippet of the page\n                    titlesnippet     - Adds a parsed snippet of the page title\n                    redirectsnippet  - Adds a parsed snippet of the redirect\n                    redirecttitle    - Adds a parsed snippet of the redirect title\n                    sectionsnippet   - Adds a parsed snippet of the matching section\n                    sectiontitle     - Adds a parsed snippet of the matching section title\n                    hasrelated       - Indicates whether a related search is available\n                   Values (separate with '|'): size, wordcount, timestamp, score, snippet, titlesnippet, redirecttitle, redirectsnippet, sectiontitle, sectionsnippet, hasrelated\n                   Default: size|wordcount|timestamp|snippet\n  srredirects    - Include redirect pages in the search\n  sroffset       - Use this value to continue paging (return by query)\n                   Default: 0\n  srlimit        - How many total pages to return\n                   No more than 50 (500 for bots) allowed\n                   Default: 10\nExamples:\n  api.php?action=query&list=search&srsearch=meaning\n  api.php?action=query&list=search&srwhat=text&srsearch=meaning\n  api.php?action=query&generator=search&gsrsearch=meaning&prop=info\nGenerator:\n  This module may be used as a generator\n\n list=tags (tg) \n  List change tags\n\nThis module requires read rights\nParameters:\n  tgcontinue     - When more results are available, use this to continue\n  tglimit        - The maximum number of tags to list\n                   No more than 500 (5000 for bots) allowed\n                   Default: 10\n  tgprop         - Which properties to get\n                    name         - Adds name of tag\n                    displayname  - Adds system messsage for the tag\n                    description  - Adds description of the tag\n                    hitcount     - Adds the amount of revisions that have this tag\n                   Values (separate with '|'): name, displayname, description, hitcount\n                   Default: name\nExample:\n  api.php?action=query&list=tags&tgprop=displayname|description|hitcount\n\n list=usercontribs (uc) \n  Get all edits by a user\n\nThis module requires read rights\nParameters:\n  uclimit        - The maximum number of contributions to return\n                   No more than 500 (5000 for bots) allowed\n                   Default: 10\n  ucstart        - The start timestamp to return from\n  ucend          - The end timestamp to return to\n  uccontinue     - When more results are available, use this to continue\n  ucuser         - The users to retrieve contributions for\n  ucuserprefix   - Retrieve contibutions for all users whose names begin with this value. Overrides ucuser\n  ucdir          - The direction to search (older or newer)\n                   One value: newer, older\n                   Default: older\n  ucnamespace    - Only list contributions in these namespaces\n                   Values (separate with '|'): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 274, 275, 150, 152, 998\n                   Maximum number of values 50 (500 for bots)\n  ucprop         - Include additional pieces of information\n                    ids            - Adds the page id and revision id\n                    title          - Adds the title and namespace id of the page\n                    timestamp      - Adds the timestamp of the edit\n                    comment        - Adds the comment of the edit\n                    parsedcomment  - Adds the parsed comment of the edit\n                    size           - Adds the size of the page\n                    flags          - Adds flags of the edit\n                    patrolled      - Tags patrolled edits\n                    tags           - Lists tags for the edit\n                   Values (separate with '|'): ids, title, timestamp, comment, parsedcomment, size, flags, patrolled, tags\n                   Default: ids|title|timestamp|comment|size|flags\n  ucshow         - Show only items that meet this criteria, e.g. non minor edits only: ucshow=!minor\n                   NOTE: if ucshow=patrolled or ucshow=!patrolled is set, revisions older than 7862400 won\'t be shown\n                   Values (separate with '|'): minor, !minor, patrolled, !patrolled\n  uctag          - Only list revisions tagged with this tag\nExamples:\n  api.php?action=query&list=usercontribs&ucuser=YurikBot\n  api.php?action=query&list=usercontribs&ucuserprefix=217.121.114.\n\n list=watchlist (wl) \n  Get all recent changes to pages in the logged in user's watchlist\n\nThis module requires read rights\nParameters:\n  wlallrev       - Include multiple revisions of the same page within given timeframe\n  wlstart        - The timestamp to start enumerating from\n  wlend          - The timestamp to end enumerating\n  wlnamespace    - Filter changes to only the given namespace(s)\n                   Values (separate with '|'): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 274, 275, 150, 152, 998\n                   Maximum number of values 50 (500 for bots)\n  wluser         - Only list changes by this user\n  wlexcludeuser  - Don't list changes by this user\n  wldir          - In which direction to enumerate pages\n                   One value: newer, older\n                   Default: older\n  wllimit        - How many total results to return per request\n                   No more than 500 (5000 for bots) allowed\n                   Default: 10\n  wlprop         - Which additional items to get (non-generator mode only).\n                    ids                    - Adds revision ids and page ids\n                    title                  - Adds title of the page\n                    flags                  - Adds flags for the edit\n                    user                   - Adds the user who made the edit\n                    userid                 - Adds user id of whom made the edit\n                    comment                - Adds comment of the edit\n                    parsedcomment          - Adds parsed comment of the edit\n                    timestamp              - Adds timestamp of the edit\n                    patrol                 - Tags edits that are patrolled\n                    size                   - Adds the old and new lengths of the page\n                    notificationtimestamp  - Adds timestamp of when the user was last notified about the edit\n                   Values (separate with '|'): ids, title, flags, user, userid, comment, parsedcomment, timestamp, patrol, sizes, notificationtimestamp\n                   Default: ids|title|flags\n  wlshow         - Show only items that meet this criteria.\n                   For example, to see only minor edits done by logged-in users, set wlshow=minor|!anon\n                   Values (separate with '|'): minor, !minor, bot, !bot, anon, !anon, patrolled, !patrolled\n  wlowner        - The name of the user whose watchlist you'd like to access\n  wltoken        - Give a security token (settable in preferences) to allow access to another user's watchlist\nExamples:\n  api.php?action=query&list=watchlist\n  api.php?action=query&list=watchlist&wlprop=ids|title|timestamp|user|comment\n  api.php?action=query&list=watchlist&wlallrev=&wlprop=ids|title|timestamp|user|comment\n  api.php?action=query&generator=watchlist&prop=info\n  api.php?action=query&generator=watchlist&gwlallrev=&prop=revisions&rvprop=timestamp|user\n  api.php?action=query&list=watchlist&wlowner=Bob_Smith&wltoken=d8d562e9725ea1512894cdab28e5ceebc7f20237\nGenerator:\n  This module may be used as a generator\n\n list=watchlistraw (wr) \n  Get all pages on the logged in user's watchlist\n\nThis module requires read rights\nParameters:\n  wrcontinue     - When more results are available, use this to continue\n  wrnamespace    - Only list pages in the given namespace(s)\n                   Values (separate with '|'): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 274, 275, 150, 152, 998\n                   Maximum number of values 50 (500 for bots)\n  wrlimit        - How many total results to return per request\n                   No more than 500 (5000 for bots) allowed\n                   Default: 10\n  wrprop         - Which additional properties to get (non-generator mode only)\n                    changed  - Adds timestamp of when the user was last notified about the edit\n                   Values (separate with '|'): changed\n  wrshow         - Only list items that meet these criteria\n                   Values (separate with '|'): changed, !changed\n  wrowner        - The name of the user whose watchlist you'd like to access\n  wrtoken        - Give a security token (settable in preferences) to allow access to another user's watchlist\nExamples:\n  api.php?action=query&list=watchlistraw\n  api.php?action=query&generator=watchlistraw&gwrshow=changed&prop=revisions\nGenerator:\n  This module may be used as a generator\n\n list=exturlusage (eu) \n  Enumerate pages that contain a given URL\n\nThis module requires read rights\nParameters:\n  euprop         - What pieces of information to include\n                    ids    - Adds the id of page\n                    title  - Adds the title and namespace id of the page\n                    url    - Adds the URL used in the page\n                   Values (separate with '|'): ids, title, url\n                   Default: ids|title|url\n  euoffset       - Used for paging. Use the value returned for "continue"\n  euprotocol     - Protocol of the url. If empty and euquery set, the protocol is http.\n                   Leave both this and euquery empty to list all external links\n                   Can be empty, or One value: http, https, ftp, irc, gopher, telnet, nntp, worldwind, mailto, news, svn, git, mms\n                   Default: \n  euquery        - Search string without protocol. See [[Special:LinkSearch]]. Leave empty to list all external links\n  eunamespace    - The page namespace(s) to enumerate.\n                   Values (separate with '|'): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 274, 275, 150, 152, 998\n                   Maximum number of values 50 (500 for bots)\n  eulimit        - How many pages to return.\n                   No more than 500 (5000 for bots) allowed\n                   Default: 10\nExample:\n  api.php?action=query&list=exturlusage&euquery=www.mediawiki.org\nGenerator:\n  This module may be used as a generator\n\n list=users (us) \n  Get information about a list of users\n\nThis module requires read rights\nParameters:\n  usprop         - What pieces of information to include\n                     blockinfo    - Tags if the user is blocked, by whom, and for what reason\n                     groups       - Lists all the groups the user(s) belongs to\n                     rights       - Lists all the rights the user(s) has\n                     editcount    - Adds the user's edit count\n                     registration - Adds the user's registration timestamp\n                     emailable    - Tags if the user can and wants to receive e-mail through [[Special:Emailuser]]\n                     gender       - Tags the gender of the user. Returns "male", "female", or "unknown"\n                   Values (separate with '|'): blockinfo, groups, editcount, registration, emailable, gender\n  ususers        - A list of users to obtain the same information for\n  ustoken        - Which tokens to obtain for each user\n                   Values (separate with '|'): userrights\nExample:\n  api.php?action=query&list=users&ususers=brion|TimStarling&usprop=groups|editcount|gender\n\n list=random (rn) \n  Get a set of random pages\n  NOTE: Pages are listed in a fixed sequence, only the starting point is random. This means that if, for example, "Main Page" is the first \n        random page on your list, "List of fictional monkeys" will always be second, "List of people on stamps of Vanuatu" third, etc\n  NOTE: If the number of pages in the namespace is lower than rnlimit, you will get fewer pages. You will not get the same page twice\n\nThis module requires read rights\nParameters:\n  rnnamespace    - Return pages in these namespaces only\n                   Values (separate with '|'): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 274, 275, 150, 152, 998\n                   Maximum number of values 50 (500 for bots)\n  rnlimit        - Limit how many random pages will be returned\n                   No more than 10 (20 for bots) allowed\n                   Default: 1\n  rnredirect     - Load a random redirect instead of a random page\nExample:\n  api.php?action=query&list=random&rnnamespace=0&rnlimit=2\nGenerator:\n  This module may be used as a generator\n\n list=protectedtitles (pt) \n  List all titles protected from creation\n\nThis module requires read rights\nParameters:\n  ptnamespace    - Only list titles in these namespaces\n                   Values (separate with '|'): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 274, 275, 150, 152, 998\n                   Maximum number of values 50 (500 for bots)\n  ptlevel        - Only list titles with these protection levels\n                   Values (separate with '|'): autoconfirmed, sysop\n  ptlimit        - How many total pages to return\n                   No more than 500 (5000 for bots) allowed\n                   Default: 10\n  ptdir          - The direction in which to list\n                   One value: older, newer\n                   Default: older\n  ptstart        - Start listing at this protection timestamp\n  ptend          - Stop listing at this protection timestamp\n  ptprop         - Which properties to get\n                    timestamp      - Adds the timestamp of when protection was added\n                    user           - Adds the user to add the protection\n                    userid         - Adds the user id to add the protection\n                    comment        - Adds the comment for the protection\n                    parsedcomment  - Adds the parsed comment for the protection\n                    expiry         - Adds the timestamp of when the protection will be lifted\n                    level          - Adds the protection level\n                   Values (separate with '|'): timestamp, user, userid, comment, parsedcomment, expiry, level\n                   Default: timestamp|level\nExample:\n  api.php?action=query&list=protectedtitles\nGenerator:\n  This module may be used as a generator\n\n--- --- --- --- --- --- --- ---  Query: Meta  --- --- --- --- --- --- --- --- \n\n meta=siteinfo (si) \n  Return general information about the site\n\nThis module requires read rights\nParameters:\n  siprop         - Which sysinfo properties to get:\n                    general               - Overall system information\n                    namespaces            - List of registered namespaces and their canonical names\n                    namespacealiases      - List of registered namespace aliases\n                    specialpagealiases    - List of special page aliases\n                    magicwords            - List of magic words and their aliases\n                    statistics            - Returns site statistics\n                    interwikimap          - Returns interwiki map (optionally filtered)\n                    dbrepllag             - Returns database server with the highest replication lag\n                    usergroups            - Returns user groups and the associated permissions\n                    extensions            - Returns extensions installed on the wiki\n                    fileextensions        - Returns list of file extensions allowed to be uploaded\n                    rightsinfo            - Returns wiki rights (license) information if available\n                    languages             - Returns a list of languages MediaWiki supports\n                   Values (separate with '|'): general, namespaces, namespacealiases, specialpagealiases, magicwords, interwikimap, dbrepllag, statistics, usergroups, extensions, fileextensions, rightsinfo, languages\n                   Default: general\n  sifilteriw     - Return only local or only nonlocal entries of the interwiki map\n                   One value: local, !local\n  sishowalldb    - List all database servers, not just the one lagging the most\n  sinumberingroup - Lists the number of users in user groups\nExamples:\n  api.php?action=query&meta=siteinfo&siprop=general|namespaces|namespacealiases|statistics\n  api.php?action=query&meta=siteinfo&siprop=interwikimap&sifilteriw=local\n  api.php?action=query&meta=siteinfo&siprop=dbrepllag&sishowalldb=\n\n meta=userinfo (ui) \n  Get information about the current user\n\nThis module requires read rights\nParameters:\n  uiprop         - What pieces of information to include\n                     blockinfo        - Tags if the current user is blocked, by whom, and for what reason\n                     hasmsg           - Adds a tag "message" if the current user has pending messages\n                     groups           - Lists all the groups the current user belongs to\n                     rights           - Lists all the rights the current user has\n                     changeablegroups - Lists the groups the current user can add to and remove from\n                     options          - Lists all preferences the current user has set\n                     editcount        - Adds the current user's edit count\n                     ratelimits       - Lists all rate limits applying to the current user\n                     email            - Adds the user's email address and email authentication date\n                     acceptlang       - Echoes the Accept-Language header sent by the client in a structured format\n                   Values (separate with '|'): blockinfo, hasmsg, groups, rights, changeablegroups, options, preferencestoken, editcount, ratelimits, email, acceptlang\nExamples:\n  api.php?action=query&meta=userinfo\n  api.php?action=query&meta=userinfo&uiprop=blockinfo|groups|rights|hasmsg\n\n meta=allmessages (am) \n  Return messages from this site\n\nThis module requires read rights\nParameters:\n  ammessages     - Which messages to output. "" means all messages\n                   Default: \n  amprop         - Which properties to get\n                   Values (separate with '|'): default\n  amenableparser - Set to enable parser, will preprocess the wikitext of message\n                   Will substitute magic words, handle templates etc.\n  amargs         - Arguments to be substituted into message\n  amfilter       - Return only messages that contain this string\n  amlang         - Return messages in this language\n  amfrom         - Return messages starting at this message\n  amto           - Return messages ending at this message\nExamples:\n  api.php?action=query&meta=allmessages&amfilter=ipb-\n  api.php?action=query&meta=allmessages&ammessages=august|mainpage&amlang=de\n\n\n *** *** *** *** *** *** *** *** ***  Modules: continuation  *** *** *** *** *** *** *** *** ***  \n\n\n action=expandtemplates \n  This module expand all templates in wikitext\n\nThis module requires read rights\nParameters:\n  title          - Title of page\n                   Default: API\n  text           - Wikitext to convert\n  generatexml    - Generate XML parse tree\nExample:\n  api.php?action=expandtemplates&text={{Project:Sandbox}}\n\n action=parse \n  This module parses wikitext and returns parser output\n\nThis module requires read rights\nParameters:\n  title          - Title of page the text belongs to\n                   Default: API\n  text           - Wikitext to parse\n  summary        - Summary to parse\n  page           - Parse the content of this page. Cannot be used together with text and title\n  pageid         - Parse the content of this page. Overrides page\n  redirects      - If the page parameter is set to a redirect, resolve it\n  oldid          - Parse the content of this revision. Overrides page and pageid\n  prop           - Which pieces of information to get\n                    text           - Gives the parsed text of the wikitext\n                    langlinks      - Gives the langlinks the parsed wikitext\n                    categories     - Gives the categories of the parsed wikitext\n                    categorieshtml - Gives the html version of the categories\n                    languageshtml  - Gives the html version of the languagelinks\n                    links          - Gives the internal links in the parsed wikitext\n                    templates      - Gives the templates in the parsed wikitext\n                    images         - Gives the images in the parsed wikitext\n                    externallinks  - Gives the external links in the parsed wikitext\n                    sections       - Gives the sections in the parsed wikitext\n                    revid          - Adds the revision id of the parsed page\n                    displaytitle   - Adds the title of the parsed wikitext\n                    headitems      - Gives items to put in the <head> of the page\n                    headhtml       - Gives parsed <head> of the page\n                    iwlinks        - Gives interwiki links in the parsed wikitext\n                    wikitext       - Gives the original wikitext that was parsed\n                   Values (separate with '|'): text, langlinks, languageshtml, categories, categorieshtml, links, templates, images, externallinks, sections, revid, displaytitle, headitems, headhtml, iwlinks, wikitext\n                   Default: text|langlinks|categories|links|templates|images|externallinks|sections|revid|displaytitle\n  pst            - Do a pre-save transform on the input before parsing it\n                   Ignored if page, pageid or oldid is used\n  onlypst        - Do a pre-save transform (PST) on the input, but don't parse it\n                   Returns the same wikitext, after a PST has been applied. Ignored if page, pageid or oldid is used\n  uselang        - Which language to parse the request in\n  section        - Only retrieve the content of this section number\n  disablepp      - Disable the PP Report from the parser output\nExample:\n  api.php?action=parse&text={{Project:Sandbox}}\n\n action=opensearch \n  This module implements OpenSearch protocol\n\nThis module requires read rights\nParameters:\n  search         - Search string\n  limit          - Maximum amount of results to return\n                   No more than 100 (100 for bots) allowed\n                   Default: 10\n  namespace      - Namespaces to search\n                   Values (separate with '|'): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 274, 275, 150, 152, 998\n                   Maximum number of values 50 (500 for bots)\n                   Default: 0\n  suggest        - Do nothing if $wgEnableOpenSearchSuggest is false\nExample:\n  api.php?action=opensearch&search=Te\n\n action=feedwatchlist \n  This module returns a watchlist feed\n\nThis module requires read rights\nParameters:\n  feedformat     - The format of the feed\n                   One value: rss, atom\n                   Default: rss\n  hours          - List pages modified within this many hours from now\n                   The value must be between 1 and 72\n                   Default: 24\n  allrev         - Include multiple revisions of the same page within given timeframe\n  wlowner        - The user whose watchlist you want (must be accompanied by token if it's not you)\n  wltoken        - Security token that requested user set in their preferences\n  linktodiffs    - Link to change differences instead of article pages\nExamples:\n  api.php?action=feedwatchlist\n  api.php?action=feedwatchlist&allrev=allrev&linktodiffs=&hours=6\n\n action=help \n  Display this help screen. Or the help screen for the specified module\nParameters:\n  modules        - List of module names (value of the action= parameter)\n  querymodules   - List of query module names (value of prop=, meta= or list= parameter)\nExamples:\n  Whole help page:\n    api.php?action=help\n  Module (action) help page:\n    api.php?action=help&modules=protect\n  Query (list) modules help page:\n    api.php?action=help&querymodules=categorymembers\n  Query (prop) modules help page:\n    api.php?action=help&querymodules=info\n  Query (meta) modules help page:\n    api.php?action=help&querymodules=siteinfo\n\n action=paraminfo \n  Obtain information about certain API parameters and errors\nParameters:\n  modules        - List of module names (value of the action= parameter)\n  querymodules   - List of query module names (value of prop=, meta= or list= parameter)\n  mainmodule     - Get information about the main (top-level) module as well\n  pagesetmodule  - Get information about the pageset module (providing titles= and friends) as well\nExample:\n  api.php?action=paraminfo&modules=parse&querymodules=allpages|siteinfo\n\n action=rsd \n  Export an RSD schema\n\nThis module requires read rights\nExample:\n  api.php?action=rsd\n\n action=purge \n  Purge the cache for the given titles.\n  This module requires a POST request if the user is not logged in.\n\nThis module requires read rights\nThis module requires write rights\nParameters:\n  titles         - A list of titles\n                   This parameter is required\nExample:\n  api.php?action=purge&titles=Main_Page|API\n\n action=rollback \n  Undo the last edit to the page. If the last user who edited the page made multiple edits in a row,\n  they will all be rolled back\n\nThis module requires read rights\nThis module requires write rights\nThis module only accepts POST requests\nParameters:\n  title          - Title of the page you want to rollback.\n                   This parameter is required\n  user           - Name of the user whose edits are to be rolled back. If set incorrectly, you'll get a badtoken error.\n                   This parameter is required\n  token          - A rollback token previously retrieved through prop=revisions\n  summary        - Custom edit summary. If not set, default summary will be used\n  markbot        - Mark the reverted edits and the revert as bot edits\n  watchlist      - Unconditionally add or remove the page from your watchlist, use preferences or do not change watch\n                   One value: watch, unwatch, preferences, nochange\n                   Default: preferences\nExamples:\n  api.php?action=rollback&title=Main%20Page&user=Catrope&token=123ABC\n  api.php?action=rollback&title=Main%20Page&user=217.121.114.116&token=123ABC&summary=Reverting%20vandalism&markbot=1\n\n action=delete \n  Delete a page\n\nThis module requires read rights\nThis module requires write rights\nThis module only accepts POST requests\nParameters:\n  title          - Title of the page you want to delete. Cannot be used together with pageid\n  pageid         - Page ID of the page you want to delete. Cannot be used together with title\n  token          - A delete token previously retrieved through prop=info\n  reason         - Reason for the deletion. If not set, an automatically generated reason will be used\n  watch          - DEPRECATED! Add the page to your watchlist\n  watchlist      - Unconditionally add or remove the page from your watchlist, use preferences or do not change watch\n                   One value: watch, unwatch, preferences, nochange\n                   Default: preferences\n  unwatch        - DEPRECATED! Remove the page from your watchlist\n  oldimage       - The name of the old image to delete as provided by iiprop=archivename\nExamples:\n  api.php?action=delete&title=Main%20Page&token=123ABC\n  api.php?action=delete&title=Main%20Page&token=123ABC&reason=Preparing%20for%20move\n\n action=undelete \n  Restore certain revisions of a deleted page. A list of deleted revisions (including timestamps) can be\n  retrieved through list=deletedrevs\n\nThis module requires read rights\nThis module requires write rights\nThis module only accepts POST requests\nParameters:\n  title          - Title of the page you want to restore\n                   This parameter is required\n  token          - An undelete token previously retrieved through list=deletedrevs\n  reason         - Reason for restoring (optional)\n                   Default: \n  timestamps     - Timestamps of the revisions to restore. If not set, all revisions will be restored.\n  watchlist      - Unconditionally add or remove the page from your watchlist, use preferences or do not change watch\n                   One value: watch, unwatch, preferences, nochange\n                   Default: preferences\nExamples:\n  api.php?action=undelete&title=Main%20Page&token=123ABC&reason=Restoring%20main%20page\n  api.php?action=undelete&title=Main%20Page&token=123ABC&timestamps=20070703220045|20070702194856\n\n action=protect \n  Change the protection level of a page\n\nThis module requires read rights\nThis module requires write rights\nThis module only accepts POST requests\nParameters:\n  title          - Title of the page you want to (un)protect\n                   This parameter is required\n  token          - A protect token previously retrieved through prop=info\n  protections    - Pipe-separated list of protection levels, formatted action=group (e.g. edit=sysop)\n                   This parameter is required\n  expiry         - Expiry timestamps. If only one timestamp is set, it'll be used for all protections.\n                   Use 'infinite', 'indefinite' or 'never', for a neverexpiring protection.\n                   Default: infinite\n  reason         - Reason for (un)protecting (optional)\n                   Default: \n  cascade        - Enable cascading protection (i.e. protect pages included in this page)\n                   Ignored if not all protection levels are 'sysop' or 'protect'\n  watch          - DEPRECATED! If set, add the page being (un)protected to your watchlist\n  watchlist      - Unconditionally add or remove the page from your watchlist, use preferences or do not change watch\n                   One value: watch, unwatch, preferences, nochange\n                   Default: preferences\nExamples:\n  api.php?action=protect&title=Main%20Page&token=123ABC&protections=edit=sysop|move=sysop&cascade=&expiry=20070901163000|never\n  api.php?action=protect&title=Main%20Page&token=123ABC&protections=edit=all|move=all&reason=Lifting%20restrictions\n\n action=block \n  Block a user\n\nThis module requires read rights\nThis module requires write rights\nThis module only accepts POST requests\nParameters:\n  user           - Username, IP address or IP range you want to block\n                   This parameter is required\n  token          - A block token previously obtained through the gettoken parameter or prop=info\n  gettoken       - If set, a block token will be returned, and no other action will be taken\n  expiry         - Relative expiry time, e.g. '5 months' or '2 weeks'. If set to 'infinite', 'indefinite' or 'never', the block will never expire.\n                   Default: never\n  reason         - Reason for block (optional)\n  anononly       - Block anonymous users only (i.e. disable anonymous edits for this IP)\n  nocreate       - Prevent account creation\n  autoblock      - Automatically block the last used IP address, and any subsequent IP addresses they try to login from\n  noemail        - Prevent user from sending e-mail through the wiki. (Requires the "blockemail" right.)\n  hidename       - Hide the username from the block log. (Requires the "hideuser" right.)\n  allowusertalk  - Allow the user to edit their own talk page (depends on $wgBlockAllowsUTEdit)\n  reblock        - If the user is already blocked, overwrite the existing block\nExamples:\n  api.php?action=block&user=123.5.5.12&expiry=3%20days&reason=First%20strike\n  api.php?action=block&user=Vandal&expiry=never&reason=Vandalism&nocreate=&autoblock=&noemail=\n\n action=unblock \n  Unblock a user\n\nThis module requires read rights\nThis module requires write rights\nThis module only accepts POST requests\nParameters:\n  id             - ID of the block you want to unblock (obtained through list=blocks). Cannot be used together with user\n  user           - Username, IP address or IP range you want to unblock. Cannot be used together with id\n  token          - An unblock token previously obtained through the gettoken parameter or prop=info\n  gettoken       - If set, an unblock token will be returned, and no other action will be taken\n  reason         - Reason for unblock (optional)\nExamples:\n  api.php?action=unblock&id=105\n  api.php?action=unblock&user=Bob&reason=Sorry%20Bob\n\n action=move \n  Move a page\n\nThis module requires read rights\nThis module requires write rights\nThis module only accepts POST requests\nParameters:\n  from           - Title of the page you want to move. Cannot be used together with fromid\n  fromid         - Page ID of the page you want to move. Cannot be used together with from\n  to             - Title you want to rename the page to\n                   This parameter is required\n  token          - A move token previously retrieved through prop=info\n  reason         - Reason for the move (optional)\n  movetalk       - Move the talk page, if it exists\n  movesubpages   - Move subpages, if applicable\n  noredirect     - Don't create a redirect\n  watch          - DEPRECATED! Add the page and the redirect to your watchlist\n  unwatch        - DEPRECATED! Remove the page and the redirect from your watchlist\n  watchlist      - Unconditionally add or remove the page from your watchlist, use preferences or do not change watch\n                   One value: watch, unwatch, preferences, nochange\n                   Default: preferences\n  ignorewarnings - Ignore any warnings\nExample:\n  api.php?action=move&from=Exampel&to=Example&token=123ABC&reason=Misspelled%20title&movetalk=&noredirect=\n\n action=edit \n  Create and edit pages.\n\nThis module requires read rights\nThis module requires write rights\nThis module only accepts POST requests\nParameters:\n  title          - Page title\n                   This parameter is required\n  section        - Section number. 0 for the top section, 'new' for a new section\n  text           - Page content\n  token          - Edit token. You can get one of these through prop=info\n  summary        - Edit summary. Also section title when section=new\n  minor          - Minor edit\n  notminor       - Non-minor edit\n  bot            - Mark this edit as bot\n  basetimestamp  - Timestamp of the base revision (gotten through prop=revisions&rvprop=timestamp).\n                   Used to detect edit conflicts; leave unset to ignore conflicts.\n  starttimestamp - Timestamp when you obtained the edit token.\n                   Used to detect edit conflicts; leave unset to ignore conflicts\n  recreate       - Override any errors about the article having been deleted in the meantime\n  createonly     - Don't edit the page if it exists already\n  nocreate       - Throw an error if the page doesn't exist\n  captchaword    - Answer to the CAPTCHA\n  captchaid      - CAPTCHA ID from previous request\n  watch          - DEPRECATED! Add the page to your watchlist\n  unwatch        - DEPRECATED! Remove the page from your watchlist\n  watchlist      - Unconditionally add or remove the page from your watchlist, use preferences or do not change watch\n                   One value: watch, unwatch, preferences, nochange\n                   Default: preferences\n  md5            - The MD5 hash of the text parameter, or the prependtext and appendtext parameters concatenated.\n                   If set, the edit won't be done unless the hash is correct\n  prependtext    - Add this text to the beginning of the page. Overrides text\n  appendtext     - Add this text to the end of the page. Overrides text\n  undo           - Undo this revision. Overrides text, prependtext and appendtext\n  undoafter      - Undo all revisions from undo to this one. If not set, just undo one revision\n  redirect       - Automatically resolve redirects\nExamples:\n  Edit a page (anonymous user):\n      api.php?action=edit&title=Test&summary=test%20summary&text=article%20content&basetimestamp=20070824123454&token=%2B\\n  Prepend NOTOC to a page (anonymous user):\n      api.php?action=edit&title=Test&summary=NOTOC&minor=&prependtext=NOTOC%0A&basetimestamp=20070824123454&token=%2B\\n  Undo r13579 through r13585 with autosummary (anonymous user):\n      api.php?action=edit&title=Test&undo=13585&undoafter=13579&basetimestamp=20070824123454&token=%2B\\n\n action=upload \n  Upload a file, or get the status of pending uploads. Several methods are available:\n   * Upload file contents directly, using the "file" parameter\n   * Have the MediaWiki server fetch a file from a URL, using the "url" parameter\n   * Complete an earlier upload that failed due to warnings, using the "sessionkey" parameter\n  Note that the HTTP POST must be done as a file upload (i.e. using multipart/form-data) when\n  sending the "file". Note also that queries using session keys must be\n  done in the same login session as the query that originally returned the key (i.e. do not\n  log out and then log back in). Also you must get and send an edit token before doing any upload stuff\n\nThis module requires read rights\nThis module requires write rights\nThis module only accepts POST requests\nParameters:\n  filename       - Target filename\n  comment        - Upload comment. Also used as the initial page text for new files if "text" is not specified\n                   Default: \n  text           - Initial page text for new files\n  token          - Edit token. You can get one of these through prop=info\n  watch          - DEPRECATED! Watch the page\n  watchlist      - Unconditionally add or remove the page from your watchlist, use preferences or do not change watch\n                   One value: watch, preferences, nochange\n                   Default: preferences\n  ignorewarnings - Ignore any warnings\n  file           - File contents\n  url            - Url to fetch the file from\n  sessionkey     - Session key that identifies a previous upload that was stashed temporarily.\n  stash          - If set, the server will not add the file to the repository and stash it temporarily.\nExamples:\n  Upload from a URL:\n      api.php?action=upload&filename=Wiki.png&url=http%3A//upload.wikimedia.org/wikipedia/en/b/bc/Wiki.png\n  Complete an upload that failed due to warnings:\n      api.php?action=upload&filename=Wiki.png&sessionkey=sessionkey&ignorewarnings=1\n\n action=emailuser \n  Email a user.\n\nThis module requires read rights\nThis module requires write rights\nThis module only accepts POST requests\nParameters:\n  target         - User to send email to\n                   This parameter is required\n  subject        - Subject header\n  text           - Mail body\n                   This parameter is required\n  token          - A token previously acquired via prop=info\n  ccme           - Send a copy of this mail to me\nExample:\n  api.php?action=emailuser&target=WikiSysop&text=Content\n\n action=watch \n  Add or remove a page from/to the current user's watchlist\n\nThis module requires read rights\nThis module requires write rights\nParameters:\n  title          - The page to (un)watch\n                   This parameter is required\n  unwatch        - If set the page will be unwatched rather than watched\nExamples:\n  api.php?action=watch&title=Main_Page\n  api.php?action=watch&title=Main_Page&unwatch=\n\n action=patrol \n  Patrol a page or revision\n\nThis module requires read rights\nThis module requires write rights\nThis module only accepts POST requests\nParameters:\n  token          - Patrol token obtained from list=recentchanges\n  rcid           - Recentchanges ID to patrol\n                   This parameter is required\nExample:\n  api.php?action=patrol&token=123abc&rcid=230672766\n\n action=import \n  Import a page from another wiki, or an XML file\n\nThis module requires read rights\nThis module requires write rights\nThis module only accepts POST requests\nParameters:\n  token          - Import token obtained through prop=info\n  summary        - Import summary\n  xml            - Uploaded XML file\n  interwikisource - For interwiki imports: wiki to import from\n                   One value: \n  interwikipage  - For interwiki imports: page to import\n  fullhistory    - For interwiki imports: import the full history, not just the current version\n  templates      - For interwiki imports: import all included templates as well\n  namespace      - For interwiki imports: import to this namespace\n                   One value: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 274, 275, 150, 152, 998\nExamples:\n  Import [[meta:Help:Parserfunctions]] to namespace 100 with full history:\n    api.php?action=import&interwikisource=meta&interwikipage=Help:ParserFunctions&namespace=100&fullhistory=&token=123ABC\n\n action=userrights \n  Add/remove a user to/from groups\n\nThis module requires read rights\nThis module requires write rights\nThis module only accepts POST requests\nParameters:\n  user           - User name\n                   This parameter is required\n  add            - Add the user to these groups\n                   Values (separate with '|'): bot, sysop, bureaucrat, widgeteditor\n  remove         - Remove the user from these groups\n                   Values (separate with '|'): bot, sysop, bureaucrat, widgeteditor\n  token          - A userrights token previously retrieved through list=users\n  reason         - Reason for the change\n                   Default: \nExample:\n  api.php?action=userrights&user=FooBot&add=bot&remove=sysop|bureaucrat&token=123ABC\n\n\n *** *** *** *** *** *** *** *** ***  Permissions *** *** *** *** *** *** *** *** ***  \n\n writeapi \n  Use of the write API\nGranted to:\n  all, user, bot\n\n apihighlimits \n  Use higher limits in API queries (Slow queries: 500 results; Fast queries: 5000 results). The limits for slow queries also apply to multivalue parameters.\nGranted to:\n  bot, sysop\n\n\n *** *** *** *** *** *** *** *** ***  Formats  *** *** *** *** *** *** *** *** ***  \n\n format=json \n  Output data in JSON format\n\nThis module requires read rights\nParameters:\n  callback       - If specified, wraps the output into a given function call. For safety, all user-specific data will be restricted.\nExample:\n  api.php?action=query&meta=siteinfo&siprop=namespaces&format=json\n\n format=jsonfm \n  Output data in JSON format (pretty-print in HTML)\n\nThis module requires read rights\nParameters:\n  callback       - If specified, wraps the output into a given function call. For safety, all user-specific data will be restricted.\nExample:\n  api.php?action=query&meta=siteinfo&siprop=namespaces&format=jsonfm\n\n format=php \n  Output data in serialized PHP format\n\nThis module requires read rights\nExample:\n  api.php?action=query&meta=siteinfo&siprop=namespaces&format=php\n\n format=phpfm \n  Output data in serialized PHP format (pretty-print in HTML)\n\nThis module requires read rights\nExample:\n  api.php?action=query&meta=siteinfo&siprop=namespaces&format=phpfm\n\n format=wddx \n  Output data in WDDX format\n\nThis module requires read rights\nExample:\n  api.php?action=query&meta=siteinfo&siprop=namespaces&format=wddx\n\n format=wddxfm \n  Output data in WDDX format (pretty-print in HTML)\n\nThis module requires read rights\nExample:\n  api.php?action=query&meta=siteinfo&siprop=namespaces&format=wddxfm\n\n format=xml \n  Output data in XML format\n\nThis module requires read rights\nParameters:\n  xmldoublequote - If specified, double quotes all attributes and content\n  xslt           - If specified, adds <xslt> as stylesheet\nExample:\n  api.php?action=query&meta=siteinfo&siprop=namespaces&format=xml\n\n format=xmlfm \n  Output data in XML format (pretty-print in HTML)\n\nThis module requires read rights\nParameters:\n  xmldoublequote - If specified, double quotes all attributes and content\n  xslt           - If specified, adds <xslt> as stylesheet\nExample:\n  api.php?action=query&meta=siteinfo&siprop=namespaces&format=xmlfm\n\n format=yaml \n  Output data in YAML format\n\nThis module requires read rights\nExample:\n  api.php?action=query&meta=siteinfo&siprop=namespaces&format=yaml\n\n format=yamlfm \n  Output data in YAML format (pretty-print in HTML)\n\nThis module requires read rights\nExample:\n  api.php?action=query&meta=siteinfo&siprop=namespaces&format=yamlfm\n\n format=rawfm \n  Output data with the debuging elements in JSON format (pretty-print in HTML)\n\nThis module requires read rights\nParameters:\n  callback       - If specified, wraps the output into a given function call. For safety, all user-specific data will be restricted.\nExample:\n  api.php?action=query&meta=siteinfo&siprop=namespaces&format=rawfm\n\n format=txt \n  Output data in PHP's print_r() format\n\nThis module requires read rights\nExample:\n  api.php?action=query&meta=siteinfo&siprop=namespaces&format=txt\n\n format=txtfm \n  Output data in PHP's print_r() format (pretty-print in HTML)\n\nThis module requires read rights\nExample:\n  api.php?action=query&meta=siteinfo&siprop=namespaces&format=txtfm\n\n format=dbg \n  Output data in PHP's var_export() format\n\nThis module requires read rights\nExample:\n  api.php?action=query&meta=siteinfo&siprop=namespaces&format=dbg\n\n format=dbgfm \n  Output data in PHP's var_export() format (pretty-print in HTML)\n\nThis module requires read rights\nExample:\n  api.php?action=query&meta=siteinfo&siprop=namespaces&format=dbgfm\n\n format=dump \n  Output data in PHP's var_dump() format\n\nThis module requires read rights\nExample:\n  api.php?action=query&meta=siteinfo&siprop=namespaces&format=dump\n\n format=dumpfm \n  Output data in PHP's var_dump() format (pretty-print in HTML)\n\nThis module requires read rights\nExample:\n  api.php?action=query&meta=siteinfo&siprop=namespaces&format=dumpfm\n\n\n Credits: ***\n   API developers:\n       Roan Kattouw <Firstname>.<Lastname>@home.nl (lead developer Sep 2007-present)\n       Victor Vasiliev - vasilvv at gee mail dot com\n       Bryan Tong Minh - bryan . tongminh @ gmail . com\n       Sam Reed - sam @ reedyboy . net\n       Yuri Astrakhan <Firstname><Lastname>@gmail.com (creator, lead developer Sep 2006-Sep 2007)\n   \n   Please send your comments, suggestions and questions to mediawiki-api@lists.wikimedia.org\n   or file a bug report at http://bugzilla.wikimedia.org/\n</error>\n</api>\n
\n\n\n'
MediaWiki API returned data we could not parse
API not available. Trying with index.php only.
Checking index.php... http://biografias.bcn.cl/index.php
Traceback (most recent call last):
File "C:\Users\diego\Desktop\Diccionario\wikiteam-master\dumpgenerator.py", line 2195, in
main()
File "C:\Users\diego\Desktop\Diccionario\wikiteam-master\dumpgenerator.py", line 2140, in main
config, other = getParameters(params=params)
File "C:\Users\diego\Desktop\Diccionario\wikiteam-master\dumpgenerator.py", line 1533, in getParameters
index = '/'.join(index.split('/')[:-1])
AttributeError: 'NoneType' object has no attribute 'split'

C:\Python27>

@nemobis nemobis changed the title Can't dump wiki Can't dump biografias.bcn.cl May 17, 2018
nemobis added a commit that referenced this issue May 17, 2018
* http://biografias.bcn.cl/api.php does not like the data to be POSTed.
  Just use URL parameters. Some wikis had anti-spam protections which
  made us POST everything, but for most wikis this should be fine.
* If the index is not defined, don't fail.
* Use only the base api.php URL, not parameters, in domain2prefix.

#314
@nemobis
Copy link
Member

nemobis commented May 17, 2018

They have some weird webserver rule which breaks all the requests to index.php with the normal parameters: http://biografias.bcn.cl/index.php?title=Especial:Exportar&e=1 works, http://biografias.bcn.cl/index.php?title=Especial:Exportar is a 404.

We have just introduced the --xmlrevisions option for such cases. I've now made some changes to accomodate this wiki's weirdness:
754027d

However, it still fails:
alexz-enwp/wikitools#55

If you know the website maintainer, please ask them to inspect their webserver configuration. I see they're redirecting a lot of requests to some other CMS, they probably made some mistake in the middle of those rules.

@pichilemino
Copy link
Author

Hi Nemo,

It's a weird wiki setup. If you visit http://biografias.bcn.cl/wiki/Especial:Exportar, it also works. The website is mantained by employees of the Library of the National Congress of Chile; and they seem to have created another website (i.e. https://www.bcn.cl/historiapolitica/resenas_parlamentarias/wiki/Jos%C3%A9_Manuel_Isla_Hevia) which "forks" the wiki articles into another layout. I'm writing them an email but I don't think they'll make a change :(

@nemobis
Copy link
Member

nemobis commented May 17, 2018 via email

@pichilemino
Copy link
Author

Yeah, I have done that already (dumping, I mean, just haven't uploaded it to the IA). But I haven't been able to download the images

@pichilemino
Copy link
Author

pichilemino commented May 17, 2018

Nevermind, now it's downloading images! Thanks!

@pichilemino
Copy link
Author

pichilemino commented May 17, 2018

It had some trouble with file names "Abdón". Added the following at the beginning of dumpgenerator and it went smooth afterwards

# encoding=utf8
import sys
reload(sys)
sys.setdefaultencoding('utf8')

@pichilemino
Copy link
Author

biografias.bcn.cl downloadable here https://archive.org/details/BCN.7z

@nemobis
Copy link
Member

nemobis commented May 19, 2018

Ok, I don't think we can/should do that sys.setdefaultencoding: https://stackoverflow.com/a/3828742 (but we should definitely fix any Unicode issues sooner or later...).

I think we can't do much more here, reopen if this wiki has some issue shared with other wikis.

@nemobis nemobis closed this as completed May 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants