Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

Wikipedia Top Finder plugin for Legobot

Project description

Wikipedia Top Finder

|Travis| |PyPI| |PyPI|

|PyPI| |PyPI| |PyPI|

Ever wish you could do an "I'm feeling lucky" search on Wikipedia right
from chat? Want to be able to pull up a wikipedia link right there in
the group and settle the debate once and for all? This module will
search the English langauge Wikipedia for the query you provide and
return the URL for the top matching page.


This lego listens for ``!wtf`` at the beginning of a message and
processes everything after it as a query.

Example: ``!wtf python`` will return


``pip3 install``

This is a Lego designed for use with
`Legobot <>`__, so you'll get Legobot
along with this. To deploy it, import the package and add it to the
active legos like so:

.. code:: python

# This is the legobot stuff
from Legobot import Lego
# This is your lego
from import WikipediaTopFinder

# Legobot stuff here
lock = threading.Lock()
baseplate = Lego.start(None, lock)
baseplate_proxy = baseplate.proxy()

# Add your lego


While you can use this one as-is, you could also add a localized version
to your Legobot deployment by grabbing ` <legos/>`__ and
deploying is as a local module. `Example of a Legobot instance with
local modules <>`__


As always, pull requests are welcome.

.. |Travis| image::
.. |PyPI| image::
.. |PyPI| image::
.. |PyPI| image::
.. |PyPI| image::
.. |PyPI| image::

Project details

Release history Release notifications

This version
History Node


History Node


History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date (2.9 kB) Copy SHA256 hash SHA256 Source None Jan 4, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page