qmetrics.net

Wikipedia

Python client for the MediaWiki API

Wikipedia screenshot

This package wraps the MediaWiki API so Python code can search Wikipedia, fetch summaries, and read page content and links without hand-rolling HTTP calls.

Overview

The Wikipedia library is a Python package for reading data from Wikipedia through the MediaWiki API. It focuses on everyday tasks such as searching titles, pulling short summaries, loading full article text, and accessing metadata like URLs and outbound links.

Callers can change the active language, resolve pages by exact title, and work with page objects that expose title, content, and related fields. The wrapper handles HTTPS, connection pooling, timeouts, limited retries, and short-lived caching so repeated reads do not hammer the API.

Wikimedia asks clients to set a descriptive user agent with contact information; the library documents how to do that. Optional rate limiting can insert a minimum delay between requests for polite bulk use.

The authors position it for simple scripts and learning, and note that heavy scraping or automation should use a more full-featured MediaWiki client instead. Install it with pip for use in Python application code.

Key features

  • Article search and summaries
  • Full page content access
  • MediaWiki API wrapper
  • HTTPS with timeouts and retries
  • Language selection
  • Request caching
  • Configurable user agent
  • Optional rate limiting

Use cases

  • Scripts that fetch article text
  • Quick Wikipedia lookups in Python
  • Building tools on encyclopedia data
  • Prototyping MediaWiki integrations
  • Teaching API usage patterns

Similar software

Firecrawl

Web scrape crawl and search infrastructure for AI agents

Firecrawl turns websites into LLM-ready markdown and structured data via API, CLI, and MCP. It supports scrape, crawl, map, batch jobs, optional cloud scale, and self-hosted server deployment.

★ 211.5k⟳ todayAGPL-3.0
Open Source Alternative to:TavilyZyte

Sherlock Project

Username search across many social networks

Sherlock checks a username against hundreds of social sites and writes matches to per-user text files. It runs from the command line, with Docker and community packages on several Linux distributions.

★ 118.5k⟳ 26 days agoMIT

Agent Reach

CLI toolkit for AI agents to search and read many web platforms

Agent Reach installs platform connectors so AI agents can search and read sites such as GitHub, YouTube, Reddit, Bilibili, and Xiaohongshu from one command line, without relying on paid APIs for default channels.

★ 115.3k⟳ 3 days agoMIT

Scrapling

Python framework for fetching and crawling the web

Scrapling combines HTTP and browser fetchers, parsing, concurrent spiders, exports, and an MCP server for AI agents. It targets static pages, JavaScript sites, stealthy sessions, and full-site crawls from one library.

★ 106.3k⟳ 3 days agoBSD-3-Clause

Puppeteer

JavaScript library for automating Chrome and Firefox

Puppeteer exposes a high-level JavaScript API to drive Chrome or Firefox through the DevTools Protocol or WebDriver BiDi. It defaults to headless browser control for scripts and tests.

★ 95.9k⟳ yesterdayApache-2.0

PaddleOCR

OCR toolkit for documents and scene text

PaddleOCR parses PDFs and images into structured Markdown or JSON with multilingual text and layout models.

★ 93.4k⟳ 2 months agoApache-2.0