GithubHelp home page GithubHelp logo

jc86035 / mb2wikidatabot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from metabrainz/mb2wikidatabot

0.0 1.0 0.0 110 KB

A bot for importing data from MusicBrainz into Wikidata

Dockerfile 7.71% Python 90.27% Shell 2.02%

mb2wikidatabot's Introduction

Wikidata bot to add MBIDs

Installation

This needs both psycopg2 and pywikipediabot (core repository).

The former can be installed with

pip install -r requirements.txt

the latter with

git clone --recursive https://gerrit.wikimedia.org/r/pywikibot/core.git pywikipediabot

cd pywikipediabot

python2 setup.py install

After installation configure pywikibot so the login works non-interactively. This repository is made to work with the MineoBot user on Wikidata. Its password needs to be stored in a file called passwd with the following content:

('MineoBot', '<bot-password-here>')

Copy bot/settings.py.dist to bot/settings.py and edit the connection string settings. Their format is documented here.

The readonly_connection_string is used to connect to a MusicBrainz database to extract all the entities that have links to Wikipedia articles. The readwrite connection string is used to connect to a database with read and write access to keep a log of all already processed MBIDs.

If you want the bot to automatically edit URLs to redirect pages in Wikipedia to their target pages, do

git submodule init

git submodule update

and set the mb_user and mb_password values in bot/settings.py to your bots login data in MusicBrainz.

Please make sure that your bot does not violate the Code of Conduct for bots in MusicBrainz

The configuration of a running bot can be reloaded by sending it a HUP signal.

mb2wikidatabot's People

Contributors

mayhem avatar mineo avatar reosarevok avatar

Watchers

 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.