Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leocornus/gotmw
MediaWiki client on top of Got.js and many others
https://github.com/leocornus/gotmw
Last synced: 5 days ago
JSON representation
MediaWiki client on top of Got.js and many others
- Host: GitHub
- URL: https://github.com/leocornus/gotmw
- Owner: leocornus
- License: gpl-2.0
- Created: 2021-03-24T21:16:56.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-10-06T03:41:19.000Z (about 3 years ago)
- Last Synced: 2024-10-10T15:52:09.561Z (about 1 month ago)
- Language: JavaScript
- Size: 2.57 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gotmw.js
Node.js MediaWiki client on top of Got.js and many others.Try our wiki-agent to see how it works.
```bash
# git clone to local
cd gotmw
npm install
node sample/wiki-agent.js
```Here is a quick demo:
![wiki agent demo](/docs/wiki-agent-demo.gif)
By default, all examples is load from file **sample/action-examples.json**.
You could prepare your own examples and store it in your local.
Then using the command **loadexamples** to load your own examples.Here is a simple query action to wikipedia.org:
```json
{
"description":"Example to show how to get a login token",
"action": "query",
"meta": "tokens",
"type": "login"
},
```