API:Client code/ru
From MediaWiki.org
| Эта страница является частью документации по MediaWiki API. |
| Язык: | English • 日本語 • Русский |
|---|
- Руководство по быстрому старту
- ЧаВО (FAQ)
- Форматы
- Ошибки и предупреждения
- Ограничение использования
- Аутентификация
- Матрица проектов
- Запросы
- Развёртка шаблонов
- Очистка кэша страниц
- Информация о параметрах
- Редактирование
- Расширения с расширенным API
- Внутреннее использование
- Другое
- Разработка
- Клиентский код
- Примеры реализации
Contents |
[edit] Библиотеки, поддерживающие API
Замечание для разработчиков ботов
- Please use GZip compression when making API calls (
Accept-Encoding: gzip).
- Bots eat up a lot of bandwidth, which is not free.
- You must set a descriptive User Agent header (
User-Agent: User name/email)
- Please include your username and wiki or email address.
- Login has changed (April 2010)
- See bugzilla:23076
[edit] Python
- PyWikipediaBot Framework - собрание скриптов на ru:Python (IRC, вики, документация)
- mwclient - a Python library that makes most of the API functions accessible. (SVN: https://mwclient.svn.sourceforge.net/svnroot/mwclient/trunk/mwclient)
- wikitools - Provides several layers of abstraction around the API.
[edit] Java
- Bliki Engine - Java Wikipedia API - not very complete, but has basic functionality. Can convert wikicode to HTML, DocBook or PDF.
- JavaWikiBotFramework - a Java library that makes almost all API functions accessible.
[edit] Javascript
- JsMwApi A convenience wrapper around raw requests, with some helpers for editing and parsing.
- mwapilib - A kind of crappy layer overtop of the requests. Make JS gadgets easier.
- Luasóg - A framework of standard requests (e.g. log in, log out, read, edit, etc.) as well as a general wrapper method. Includes some helpful stuff like throttling. Project includes a rudimentary IDE for off-site development and execution.
[edit] .NET
- AutoWikiBrowser's WikiFunctions library has classes for editing and getting lists of pages via the API. See ApiEdit
- WikiAccess - a C#-library that makes some API functions accessible, has write API.
- DotNetWikiBot Framework - written in C#, based on Microsoft® .NET Framework 2.0 (Tutorial)
[edit] Perl
- MediaWiki::API - A Perl module for interfacing with the MediaWiki API with file upload/download and editing support.
- MediaWiki::Bot - A higher-level Perl module allowing use of both the MediaWiki::API interface and a number of functions allowing both read and write operations.
- Perl MediaWiki API - An open source Perl module wrapping many of the MediaWiki API functions.
[edit] Ruby
- RWikiBot - a Ruby framework using the API as released with the most current version of MediaWiki.
- rbmediawiki - Another Ruby framework that uses the API.
[edit] PHP
There are many PHP frameworks for the api, see here for a full list and comparison of frameworks.
- SxWiki - a lightweight, simple MediaWiki bot framework.
[edit] См. также
- Коллекия в Википедии программных библиотек для ботов, некоторые из которых используют API.