Skip to content

Latest commit

 

History

History
58 lines (44 loc) · 1.1 KB

README.md

File metadata and controls

58 lines (44 loc) · 1.1 KB

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!