open-graph-scraper
Advanced tools
Changelog
6.2.0
url
property in OpenGraphScraperOptions
to be an optional property since you don't need this when using just html
Type
can optional in ImageObject
since type is not set it it's invalidcustomMetaTags
out of base of ogObject
and store them into ogObject.customMetaTags
Changelog
6.1.0
origin
header
to the request url since fetch
runs in cors mode by default.undici
for fetch
so all versions of node18 are running the same version of fetch
. Now ogs supports all versions of node18!Changelog
6.0.1
OpenGraphScraperOptions.fetchOptions
should be of type RequestInit
instead of Request
.Changelog
6.0.0 (Has breaking changes!)
GOT
with fetch!node18
or higher going forwardFetch
and OGS
options no longer being mixed together, users can now set fetch options using options.fetchOptions
downloadLimit
option has been removed in favor of just using timeouts.SuccessResult
of OGS
options.timeout
to set the fetch request timeout. (default is 10 seconds)null
values from ogImages/ogVideos/twitterImages/twitterPlayers/musicSongsoptions.allMedia
, you can just grab the first value of the array for the pervious behavioroptions.ogImageFallback
, you can set options.onlyGetOpenGraphInfo
to true
for the pervious behaviorChangelog
5.2.0
charset
lib and just use chardet
for finding the html encodingpeekSize
option since that was used by charset
charset
fallback to be more reliablearticle:published_date
and article:modified_date
meta tags