Giter VIP home page Giter VIP logo

pywikibot_tests's Introduction

Pywikibot_tests

Getting familiar with pywikibot api, for outreachy 2021 wikidata project.

Task 2

In the myscript_task2.py the following tasks are implemented:

  • Log in to a Wikimedia account.
  • Connect to an already existing site and print it out (the one created for Task 1).
  • Append new lines of text at the end of the page and save the changes.
  • Load a Wikidata item (Sandbox) and print parts of its content.
  • Add a new Property-Value pair to the Sandbox item.

The output is appended to the log.txt file.

Task 3

In the myscript_task3.py the following tasks are implemented:

  • Parse a wikipedia article and print a list of statements (if available), indicated by the user.
  • Print the corresponding statements from wikidata.
  • Repeat the process for a series of articles that share the same infobox template.
  • Print the structure of the article (section headers).

Task 5

In the myscript_task5.py the following tasks are implemented:

  • A function that makes a request to the MediaWiki API, based a given search key.
  • A function that collects the results of the previous request, prints the description of each item retrieved and returns the QID value.

Built with

  • pywikibot
  • wikitextparser
  • myparserfromhell

pywikibot_tests's People

Contributors

ninasiam 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.