Coder Social home page Coder Social logo

zd123 / pywikibot-core Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wikimedia/pywikibot

0.0 1.0 0.0 14.85 MB

Github mirror of "pywikibot/core" - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing

License: Other

pywikibot-core's Introduction

Pywikibot Framework

Build Status

The pywikibot framework is a Python library that interfaces with the MediaWiki API. Also included are various general function scripts that can be adapted for different tasks.

Quick start

git clone https://gerrit.wikimedia.org/r/pywikibot/core.git
cd core
git submodule update --init
python pwb.py script_name

Our installation guide has more details for advanced usage.

Usage

If you wish to write your own script it's very easy to get started:

import pywikibot
site = pywikibot.Site('en', 'wikipedia')  # The site we want to run our bot on
page = pywikibot.Page(site, 'Wikipedia:Sandbox')
text = page.get()  # The current text on the page
text = text.replace('foo', 'bar')
page.put(text, 'Replacing "foo" with "bar"')  # Saves the page

Contributing

Our code is maintained on Wikimedia's Gerrit installation, learn how to get started.

pywikibot-core's People

Contributors

valhallasw avatar xqt avatar legoktm avatar pyfisch avatar drtrigon avatar ladsgroup avatar translatewiki avatar h4ck3rm1k3 avatar mineo avatar geofbot avatar guoguo12 avatar aaron1011 avatar hashar avatar shardulc avatar nullzero avatar ricordisamoa avatar strainu avatar jeroendedauw avatar whym avatar beta16lr avatar mayankmadan avatar vrandezo avatar hazardsj avatar m4tx avatar notconfusing avatar theopolisme avatar multichill avatar eranroz avatar toto-azero avatar brainwane avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.