pypi.org Open in urlscan Pro
2a04:4e42:200::223  Public Scan

Submitted URL: https://pypi.python.org/pypi/wikipedia/
Effective URL: https://pypi.org/project/wikipedia/
Submission: On October 04 via api from US — Scanned from CA

Form analysis 3 forms found in the DOM

/search/

<form class="search-form search-form--primary" action="/search/" role="search">
  <label for="search" class="sr-only">Search PyPI</label>
  <input id="search" class="search-form__search" type="text" name="q" placeholder="Search projects" value="" autocomplete="off" autocapitalize="off" spellcheck="false" data-controller="search-focus"
    data-action="keydown@window->search-focus#focusSearchField" data-search-focus-target="searchField">
  <button type="submit" class="search-form__button">
    <i class="fa fa-search" aria-hidden="true"></i>
    <span class="sr-only">Search</span>
  </button>
</form>

/search/

<form class="search-form search-form--fullwidth" action="/search/" role="search">
  <label for="mobile-search" class="sr-only">Search PyPI</label>
  <input id="mobile-search" class="search-form__search" type="text" name="q" placeholder="Search projects" value="" autocomplete="off" autocapitalize="off" spellcheck="false">
  <button type="submit" class="search-form__button">
    <i class="fa fa-search" aria-hidden="true"></i>
    <span class="sr-only">Search</span>
  </button>
</form>

/locale/

<form action="/locale/">
  <ul>
    <li>
      <button class="language-switcher__selected" name="locale_id" value="en" type="submit"> English </button>
    </li>
    <li>
      <button name="locale_id" value="es" type="submit"> español </button>
    </li>
    <li>
      <button name="locale_id" value="fr" type="submit"> français </button>
    </li>
    <li>
      <button name="locale_id" value="ja" type="submit"> 日本語 </button>
    </li>
    <li>
      <button name="locale_id" value="pt_BR" type="submit"> português (Brasil) </button>
    </li>
    <li>
      <button name="locale_id" value="uk" type="submit"> українська </button>
    </li>
    <li>
      <button name="locale_id" value="el" type="submit"> Ελληνικά </button>
    </li>
    <li>
      <button name="locale_id" value="de" type="submit"> Deutsch </button>
    </li>
    <li>
      <button name="locale_id" value="zh_Hans" type="submit"> 中文 (简体) </button>
    </li>
    <li>
      <button name="locale_id" value="zh_Hant" type="submit"> 中文 (繁體) </button>
    </li>
    <li>
      <button name="locale_id" value="ru" type="submit"> русский </button>
    </li>
    <li>
      <button name="locale_id" value="he" type="submit"> עברית </button>
    </li>
    <li>
      <button name="locale_id" value="eo" type="submit"> Esperanto </button>
    </li>
  </ul>
</form>

Text Content

Skip to main content Switch to mobile version
Warning Some features may not work without JavaScript. Please try enabling it if
you encounter problems.



Search PyPI Search
 * Help
 * Sponsors
 * Log in
 * Register

Menu
 * Help
 * Sponsors
 * Log in
 * Register

Search PyPI Search


WIKIPEDIA 1.4.0

pip install wikipedia Copy PIP instructions

Latest version

Released: Nov 15, 2014

Wikipedia API for Python




NAVIGATION

 * Project description
 * Release history
 * Download files


VERIFIED DETAILS

These details have been verified by PyPI

MAINTAINERS

jgoldsmith


UNVERIFIED DETAILS

These details have not been verified by PyPI

PROJECT LINKS

 * Homepage

META

 * License: MIT License (MIT)
 * Author: Jonathan Goldsmith
 * Tags python, wikipedia, API

CLASSIFIERS

 * Development Status
   * 4 - Beta
 * License
   * OSI Approved :: MIT License
 * Programming Language
   * Python
   * Python :: 3
 * Topic
   * Software Development :: Libraries

Fastly is a Visionary sponsor of the Python Software Foundation.
PSF Sponsor · Served ethically

 * Project description
 * Project details
 * Release history
 * Download files


PROJECT DESCRIPTION

Wikipedia is a Python library that makes it easy to access and parse data from
Wikipedia.

Search Wikipedia, get article summaries, get data like links and images from a
page, and more. Wikipedia wraps the MediaWiki API so you can focus on using
Wikipedia data, not getting it.

>>> import wikipedia
>>> print wikipedia.summary("Wikipedia")
# Wikipedia (/ˌwɪkɨˈpiːdiə/ or /ˌwɪkiˈpiːdiə/ WIK-i-PEE-dee-ə) is a collaboratively edited, multilingual, free Internet encyclopedia supported by the non-profit Wikimedia Foundation...

>>> wikipedia.search("Barack")
# [u'Barak (given name)', u'Barack Obama', u'Barack (brandy)', u'Presidency of Barack Obama', u'Family of Barack Obama', u'First inauguration of Barack Obama', u'Barack Obama presidential campaign, 2008', u'Barack Obama, Sr.', u'Barack Obama citizenship conspiracy theories', u'Presidential transition of Barack Obama']

>>> ny = wikipedia.page("New York")
>>> ny.title
# u'New York'
>>> ny.url
# u'http://en.wikipedia.org/wiki/New_York'
>>> ny.content
# u'New York is a state in the Northeastern region of the United States. New York is the 27th-most exten'...
>>> ny.links[0]
# u'1790 United States Census'

>>> wikipedia.set_lang("fr")
>>> wikipedia.summary("Facebook", sentences=1)
# Facebook est un service de réseautage social en ligne sur Internet permettant d'y publier des informations (photographies, liens, textes, etc.) en contrôlant leur visibilité par différentes catégories de personnes.

Note: this library was designed for ease of use and simplicity, not for advanced
use. If you plan on doing serious scraping or automated requests, please use
Pywikipediabot (or one of the other more advanced Python MediaWiki API
wrappers), which has a larger API, rate limiting, and other features so we can
be considerate of the MediaWiki infrastructure.


INSTALLATION

To install Wikipedia, simply run:

$ pip install wikipedia

Wikipedia is compatible with Python 2.6+ (2.7+ to run unittest discover) and
Python 3.3+.


DOCUMENTATION

Read the docs at https://wikipedia.readthedocs.org/en/latest/.

 * Quickstart

 * Full API

To run tests, clone the respository on GitHub, then run:

$ pip install -r requirements.txt
$ bash runtests  # will run tests for python and python3
$ python -m unittest discover tests/ '*test.py'  # manual style

in the root project directory.

To build the documentation yourself, after installing requirements.txt, run:

$ pip install sphinx
$ cd docs/
$ make html


LICENSE

MIT licensed. See the LICENSE file for full details.


CREDITS

 * wiki-api by @richardasaurus for inspiration

 * @nmoroze and @themichaelyang for feedback and suggestions

 * The Wikimedia Foundation for giving the world free access to data


PROJECT DETAILS


VERIFIED DETAILS

These details have been verified by PyPI

MAINTAINERS

jgoldsmith


UNVERIFIED DETAILS

These details have not been verified by PyPI

PROJECT LINKS

 * Homepage

META

 * License: MIT License (MIT)
 * Author: Jonathan Goldsmith
 * Tags python, wikipedia, API

CLASSIFIERS

 * Development Status
   * 4 - Beta
 * License
   * OSI Approved :: MIT License
 * Programming Language
   * Python
   * Python :: 3
 * Topic
   * Software Development :: Libraries



RELEASE HISTORY RELEASE NOTIFICATIONS | RSS FEED

This version


1.4.0

Nov 15, 2014

1.3.1

May 31, 2014

1.3.0

May 29, 2014

1.2.1

May 19, 2014

1.2

May 15, 2014

1.1

Dec 24, 2013

1.0.3

Oct 8, 2013

1.0.2

Oct 7, 2013

1.0.1

Sep 30, 2013

1.0.0

Sep 6, 2013

0.9.8

Aug 23, 2013

0.9.7

Aug 23, 2013

0.9.6

Aug 23, 2013

0.9.5

Aug 23, 2013

0.9.5dev pre-release

Aug 23, 2013

0.9.4

Aug 22, 2013

0.9.3

Aug 22, 2013

0.9.2

Aug 22, 2013

0.9.1

Aug 22, 2013

0.9

Aug 22, 2013


DOWNLOAD FILES

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


SOURCE DISTRIBUTION

wikipedia-1.4.0.tar.gz (27.7 kB view hashes)

Uploaded Nov 15, 2014 Source

Close


HASHES FOR WIKIPEDIA-1.4.0.TAR.GZ

Hashes for wikipedia-1.4.0.tar.gz Algorithm Hash digest SHA256
db0fad1829fdd441b1852306e9856398204dc0786d2996dd2e0c8bb8e26133b2 Copy MD5
898944eb28062d898d3d0d948fdd3fec Copy BLAKE2b-256
673525e68fbc99e672127cc6fbb14b8ec1ba3dfef035bf1e4c90f78f24a80b7d Copy

Close


HELP

 * Installing packages
 * Uploading packages
 * User guide
 * Project name retention
 * FAQs


ABOUT PYPI

 * PyPI Blog
 * Infrastructure dashboard
 * Statistics
 * Logos & trademarks
 * Our sponsors


CONTRIBUTING TO PYPI

 * Bugs and feedback
 * Contribute on GitHub
 * Translate PyPI
 * Sponsor PyPI
 * Development credits


USING PYPI

 * Code of conduct
 * Report security issue
 * Privacy policy
 * Terms of Use
 * Acceptable Use Policy

--------------------------------------------------------------------------------

Status: All Systems Operational

Developed and maintained by the Python community, for the Python community.
Donate today!

"PyPI", "Python Package Index", and the blocks logos are registered trademarks
of the Python Software Foundation.


© 2024 Python Software Foundation
Site map

Switch to desktop version
 * English
 * español
 * français
 * 日本語
 * português (Brasil)
 * українська
 * Ελληνικά
 * Deutsch
 * 中文 (简体)
 * 中文 (繁體)
 * русский
 * עברית
 * Esperanto

Supported by


AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google
Download Analytics Microsoft PSF Sponsor Pingdom Monitoring Sentry Error logging
StatusPage Status page