{"categories":[{"label":"Libraries","url":"https://skillfed.io/packages/category/software-development-libraries/9"}],"enrichment":{"capability":"Extracts preview metadata (title, description, image, site name, favicon) from web URLs by parsing OpenGraph, Twitter Card, Microdata, JSON-LD, and HTML tags.","skillfed_tags":["web-scraping","metadata-extraction","html-parsing"],"use_cases":["Generate rich link previews in a chat or messaging application by fetching title, description, and image from shared URLs.","Build a web scraper that collects structured metadata from multiple sites for indexing or comparison.","Create a social media sharing widget that displays preview cards before users post a link.","Extract favicon and site name from URLs for bookmark managers or link aggregators.","Parse and validate OpenGraph metadata on your own site to ensure social media sharing displays correctly."],"what_it_does":"linkpreview is a Python library that fetches and parses web page metadata to generate link previews. It gathers data from multiple sources\u2014OpenGraph and Twitter Card meta tags, Microdata, JSON-LD markup, generic HTML tags (h1, p, img), and URL structure\u2014then extracts and normalizes fields like title, description, image, site name, and favicon. The library can either accept pre-fetched HTML content or automatically retrieve it from a URL using requests.\n\nYou provide a URL and optionally HTML content, and get back a preview object with standardized fields. It supports custom HTTP headers, preset user-agent profiles (Firefox, Chrome, Googlebot, Twitterbot, etc.), and optional lxml parsing for better performance. The library handles relative URLs by converting them to absolute paths and works with pre-parsed BeautifulSoup objects if you already have one.","worth_installing":"Yes, if you need link preview extraction and can accept aging maintenance. The library is straightforward, has no known vulnerabilities, and handles the common metadata formats well. Install it if you're building a feature that displays rich link previews; skip it if you need active maintenance or support for cutting-edge HTML5 standards."},"id":"linkpreview","links":{"html":"https://skillfed.io/packages/linkpreview","md":"https://skillfed.io/packages/linkpreview.md","pypi":"https://pypi.org/project/linkpreview/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2025-08-15","license_spdx":null,"license_treatment":"permissive","name":"linkpreview","python_support":"unspecified","summary":"Get link (URL) preview"},"popularity":{"monthly_downloads":111983,"position":12387,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.12.1"}
