Skip to content

A serverless project that can fetch the open graph tags of a given URL.

Notifications You must be signed in to change notification settings

s-faisal/serverless-open-graph-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

serverless-open-graph-parser

A serverless project that can fetch the raw open graph tags of a given URL.

Modules Used

  • open-graph-scraper
  • cheerio

You can install following libraries and other dev dependencies using below command.

npm install

Usage

Run the serverless project locally.

serverless offline

OR

sls offline

It will generate a POST URL for you. Something like this.

http://localhost:3000/dev/fetchMetadata 

You can use below request to test the API.

{
    url: "https://npmjs.com/package/str2bin"
}

Output

{ 
    title: 'str2bin',
    description: 'This will convert string to binary code and vice-versa.',
    images:[ 
        'https://static.npmjs.com/338e4905a2684ca96e08c7780fc68412.png' 
    ] 
}

Contribute

Found a bug, please create an issue

How can I support developers?

  • Star our GitHub repo 🌟
  • Create pull requests, submit bugs, suggest new features or documentation updates 🔧

We're always happy to receive your feedback!

About

A serverless project that can fetch the open graph tags of a given URL.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published