{"repo":"macbre/nodemw","free":true,"listed":false,"github":"https://github.com/macbre/nodemw","clone":"git clone https://github.com/macbre/nodemw.git","description":"MediaWiki API and WikiData client written in Node.js","language":"JavaScript","stars":247,"topics":["mediawiki-api","mediawiki","bot","javascript","nodejs","nodemw","fandom-wiki","wikia-api","wikidata"],"license":"BSD-2-Clause","category":"api-integrations-sdks","readme_excerpt":"nodemw MediaWiki API client written in node.js Requirements - At minimum Node.js at the maintenance version Installation Using npm Or Download the latest stable version via GitHub. Development version [!NOTE] To run integration tests against production Wikipedia and WikiData servers, you first need to reate your own bot account at . And then set the TEST BOT USERNAME and TEST BOT PASSWORD env variables when running tests. Otherwise, we're getting rate-limited (HTTP 429 responses). CI checks are already set up. Features - HTTP requests are stored in the queue and performed in parallel with limited number of \"threads\" (i.e. there's no risk of flooding the server) - articles creation / edit / move / delete - file uploads (using given content or via provided URL) - Special:Log processing - listing articles in categories - and much more - getting claims from WikiData Where it's used - Over 25k edits on Poznań Wiki as Pyrabot - scripts repository First script An example script can be found in /examples directory. You can enter debug mode by setting DEBUG enviromental variable: You can enter dry-run mode (all \"write\" operations like edits and uploads will be disabled) by setting DRY RUN environmental variable (or dryRun entry in the config): Running unit tests How to use it? Creating a bot instance Config file nodemw can use config files as well as objects directly provided to bot object constructor. Config file is a JSON-encoded object with the following fields (see /examples/confi","default_branch":null,"files":null,"tree":[],"storefront":"/r/macbre","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/macbre/nodemw/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}