Metagros is a tool to get OGP data from the site URL.
https://pokemon-incandescent.fandom.com/wiki/Metagross
- Node.js ESM module
- Get
og:OOO
content data from site url - Less dependenceies
- Popular Pokémon
- so cool!! cute!! intelligence!!!
Introduction The Open Graph protocol enables any web page to become a rich object in a social graph. For instance, this is used on Facebook to allow any web page to have the same functionality as any other object on Facebook.
While many different technologies and schemas exist and could be combined together, there isn't a single technology which provides enough information to richly represent any web page within the social graph. The Open Graph protocol builds on these existing technologies and gives developers one thing to implement. Developer simplicity is a key goal of the Open Graph protocol which has informed many of the technical design decisions.
- Basic Metadata
- Some Optional Metadata
- description
- site_name
Using npm
$ npm install metagros
Using yarn
$ yarn add metagros
import { getPageMetaData } from "metagros/move/cometPunch";
const url = "https://some.com";
const metadata = await getPageMetaData(url);
console.log(metadata);
// output
{
title: "Site title",
description: "Site description.This site is OO's HP ...",
image: "https://images.com/hoge",
type: "article",
siteName: undefined,
url: "https://some.com"
}
See LISENSE.