Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

wikipedia-wrapper

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wikipedia-wrapper

API wrapper for wikipedia

  • 0.0.1
  • PyPI
  • Socket score

Maintainers
1

Wikipedia API Wrapper for Python

Overview

This Python library provides a comprehensive API wrapper for interacting with the Wikipedia API. It offers more than 300 functions to access various information and data from Wikipedia.

What is Wikipedia?

Wikipedia is a free online encyclopedia with articles in multiple languages, created and edited by volunteers around the world. The Wikipedia API allows developers to programmatically access and retrieve data from Wikipedia's vast collection of articles.

Examples

import wikipedia_py as wp

# Search for a specific page
results = wp.search_page("Python programming")
print(results)

# Get a summary of a page
summary = wp.get_summary("Python programming")
print(summary)

# Get the content of a page
content = wp.get_page_content("Python programming")
print(content)

# Access more than 300 functions offered by the library
...

Installation

You can install the wikipedia_py library using pip:

pip install wikipedia_py

Usage

  1. Import the library:
import wikipedia_py as wp
  1. Use the functions provided by the library to interact with the Wikipedia API:
# Example: Search for a page
results = wp.search_page("Machine learning")
print(results)

Features

  • Access to more than 300 functions for retrieving Wikipedia data
  • Search for pages, get summaries, access page content, and more
  • Easy installation and usage in Python projects

Contribution

Contributions are welcome! If you have any suggestions, improvements, or new features to add, feel free to open an issue or submit a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc