micawber
a small library for extracting rich content from urls
What it is and what it does
Micawber is a small library for fetching and embedding rich media metadata from URLs. It wraps the oEmbed standard, allowing you to query URLs (especially video and image links) and receive structured metadata like title, author, thumbnail, and embed HTML. The library ships with built-in provider rules for common platforms and can parse blocks of text or HTML, automatically replacing bare links with embedded content.
You typically use it by bootstrapping a provider registry, then either requesting metadata for a single URL or parsing a larger text block to replace all recognized links with embeds. It depends only on beautifulsoup4 for HTML parsing and requires Python 3.8+.
Use it for:
- Fetch metadata (title, thumbnail, embed code) for a YouTube or Flickr link in a blog or content management system.
- Parse a user-submitted text block and automatically replace bare video URLs with embedded players.
- Build a link preview feature that shows rich metadata (author, title, image) before a user clicks.
- Extract structured data from media URLs for indexing or display in a feed or gallery.
- Convert raw HTML containing media links into HTML with embedded content widgets.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Extracts rich metadata (title, author, thumbnail, embed HTML) from URLs to videos, images, and other media, and replaces links in text or HTML with embedded content.
Yes. The package is actively maintained, has low install friction, no known vulnerabilities, and solves a real problem—extracting and embedding media metadata—with a minimal dependency footprint. The only caveat is that its license is not clearly documented; verify it in the repository before use in proprietary projects.
Install
micawber on PyPI
pip
pip install micawberuv
uv add micawberpoetry
poetry add micawberInstalling micawber
Before you install
Low friction: pure Python wheel with a single runtime dependency (beautifulsoup4). Actively maintained as of 2026-07-05, with recent commits and 680 repository stars.
License in practice
License status is unclear—no SPDX identifier or raw license text is recorded. Verify the actual license in the repository before using in proprietary or copyleft-sensitive projects.
Quickstart
pip install micawber
import micawber
providers = micawber.bootstrap_basic()
result = providers.request('http://www.youtube.com/watch?v=54XHDUOHuzU')
print(result['title'], result['thumbnail_url'])
Requires Python 3.8 or later.
Verify before relying
- Which providers (YouTube, Flickr, etc.) are included in bootstrap_basic() and whether additional providers can be registered.
- Whether the library handles rate limiting or caching for repeated requests to the same URL.
- How the library behaves when a URL is unreachable or does not return oEmbed metadata.
Package facts
| License | not declared (unclear) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — beautifulsoup4 |
| Maintenance | actively maintained — 40 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 205,590/month — #9,587 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: micawber-0.7.0-py3-none-any.whl
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
django-embed-videoProvides Django template tags and model fields…
permissive · top 15,000 on PyPI
mkdocs-videoA MkDocs plugin that embeds videos in…
permissive · top 15,000 on PyPI
goose3Extracts article text, metadata, images, and…
permissive · top 15,000 on PyPI
sphinxcontrib-youtubeAdds Sphinx directives to embed YouTube, Vimeo,…
permissive · top 15,000 on PyPI
pytubefixDownloads YouTube videos, playlists, and…
permissive · top 15,000 on PyPI
sphinxcontrib-videoA Sphinx extension that embeds HTML5 videos…
permissive · top 15,000 on PyPI
youtube_dlCommand-line tool to download videos from…
permissive · top 15,000 on PyPI
shortzyShortzy wraps the Adlinkfly API and alternative…
permissive · top 15,000 on PyPI
hbreaderOpens and reads files, URLs, and text strings…
permissive · top 15,000 on PyPI
ubi-readerExtracts files and analyzes the structure of…
copyleft · top 15,000 on PyPI