A web backend to scrape metadata.
Metadata Parser is a Node Js application.
git clone https://github.com/dpk07/metadata-parser.git
cd metadata-parser
npm install
npm start
The following items should be installed in your system:
- Node 10 or newer.
- git command line tool (https://help.github.com/articles/set-up-git)
-
On the command line
git clone https://github.com/dpk07/metadata-parser.git
-
Inside VS Code
File -> Open Folder -> metadata-parser
Run the application by running
npm start
in the console.
- On the command line
npm run test
- On the command line
npm run coverage
Important files | Link |
---|---|
The App.js File | app |
Dependencies | package.json |
Unit Tests | Tests |
Supported Tags | tags.js |
-
Open Postman
-
Do a post request to
http://localhost:3000/scrape
-
Pass a json object in the body with the following structure. For example:
{url:"https://ogp.me"}
-
Response will have all the scraped tags.
{ "title": "Open Graph protocol", "type": "website", "url": "https://ogp.me/", "description": "The Open Graph protocol enables any web page to become a rich object in a social graph.", "image": { "type": "image/png", "width": "300", "height": "300", "alt": "The Open Graph logo", "url": "https://ogp.me/logo.png" } }