Code Monkey home page Code Monkey logo

wikia-python-wrapper-rewritten's Introduction

Wikia

Wikia is a Python library that makes it easy to access and parse data from any wikia website <https://www.wikia.com>

Search a wikia, get article summaries, get data like links and images from a page, and more. Wikipedia wraps the Wikia API <http://api.wikia.com/wiki/Wikia_API_Wiki>__ so you can focus on using wikia data, not getting it.

Was rewritten as the original wrapper didn't work for a project.

  from wikia import wikia
  print(wikia.summary("dancingline", "The_Time"))
  # The Time is the 1st normal mode level in Dancing Line.

  wikia.search("Runescape", "Forest")
  # returns a list of the search word
  time = wikia.page("dancingline", "The_Time")
  time.title
  # u'The Time'
  time.url
  # u'http://dancingline.wikia.com/wiki/The_Time'
  time.content
  # u'The Time is the 1st normal mode level in Dancing Line.'...

  wikia.set_lang("en") # English
  wikia.summary("Runescape", "Runes", sentences=1)
  # returns first sentence of the summery

Note: this library was designed for ease of use and simplicity, not for advanced use.

Installation

Place the wikia folder in your project and follow the example above. see wikitest.py for example.

wikia-python-wrapper-rewritten's People

Contributors

notthatsiri avatar polarislo avatar

Watchers

 avatar

Forkers

polarislo

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.