Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

site-metadata-api

Website metadata API for Python — extract title, description and OpenGraph tags (og:title, og:image) from any URL. Free, stdlib-fast.

site-metadata-api pulls a page's <title>, meta description and og:* tags without a browser — pure Python, instant. For JS-rendered pages there's metadata_js(), which renders through Keiro stealth browsers first.

Install

pip install site-metadata-api
# no API key needed for the free stdlib path

Quickstart

from site_metadata_api import metadata

m = metadata("https://github.com")
print(m.get("og:title"), "|", m.get("description"))

Example output

{"og:title": "GitHub: Let's build from here",
 "description": "GitHub is where people build software...",
 "og:image": "https://github.githubassets.com/..."}

Features

  • metadata(url) — stdlib-only, zero cost, instant
  • metadata_js(url) — stealth-rendered for JS sites
  • og:title / og:image / description for link previews
  • Link-preview cards, SEO audits, bookmark managers

FAQ

How do I extract OpenGraph tags in Python?

metadata(url) — one call returns title, description and og:image. No BeautifulSoup boilerplate.

Does it work on JavaScript-rendered sites?

metadata() reads raw HTML; metadata_js() renders the page in a stealth browser first for SPAs.

Is it free?

The stdlib path is completely free. The JS path needs a Keiro key (free tier available).

What can I build with this?

Link preview cards (Slack-style), SEO title/description audits, or metadata for a million URLs in a batch.

Why not opengraph / meta-tags libraries?

They parse fine but can't render JS sites — SPAs return empty tags. site-metadata-api covers both paths in one package.

More free search tools

Part of the Keiro free-tool family — every package owns a different Google query:


Requires a Keiro API key — site-metadata-api is powered by the Keiro API, which handles the stealth searching. Grab a free key at keirolabs.cloud — 30 seconds, no credit card, free credits to start.

About

Website metadata API for Python — title, description, OpenGraph tags from any URL.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages