{"library":"micawber","title":"micawber","description":"micawber is a small Python library for extracting rich content (like videos, images, or summaries) from URLs using the oEmbed specification. It includes a set of pre-configured providers for common services like YouTube, Vimeo, and Flickr. The latest version is 0.6.2, released in 2017, and it appears to be in maintenance mode, stable but not actively developed.","language":"python","status":"maintenance","last_verified":"Fri Apr 17","install":{"commands":["pip install micawber"],"cli":null},"imports":["from micawber import bootstrap_basic","from micawber import Micawber","from micawber.providers import bootstrap_basic"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import micawber\nfrom micawber.cache import Cache\n\n# Configure Micawber with default providers and an in-memory cache\nm = micawber.bootstrap_basic(cache=Cache())\n\n# Example URL (using a real OEmbed example, this is usually a video)\nyoutube_url = 'https://www.youtube.com/watch?v=dQw4w9WgXcQ'\n\n# Request OEmbed data for a URL\ntry:\n    response = m.request(youtube_url)\n    print(f\"Title: {response.get('title')}\")\n    print(f\"Type: {response.get('type')}\")\n    print(f\"HTML: {response.get('html', 'No HTML provided')[:50]}...\")\nexcept Exception as e:\n    print(f\"Error requesting OEmbed data: {e}\")\n\n# Alternatively, parse text containing URLs and replace them with rich content\ntext_with_url = f'Check out this video: {youtube_url} and some other stuff.'\nhtml_output = m.parse_text(text_with_url)\nprint(\"\\n--- Parsed Text HTML Output ---\")\nprint(html_output[:200] + '...') # Print first 200 chars for brevity\n","lang":"python","description":"Initialize micawber with default OEmbed providers and an in-memory cache. Then, use `m.request()` to fetch OEmbed data for a specific URL or `m.parse_text()` to automatically find URLs within text and replace them with embedded content.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}