lambda-metadata-scraper

command module
v0.0.0-...-05aed9d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 19, 2022 License: MIT Imports: 8 Imported by: 0

README

Lambda Metadata Scraper

Go Goquery AWS Lambda GitHub Last Commit GitHub Issues GitHub Stars GitHub Forks

Lambda function which returns basic metadata for a single URL provided as a ?url querystring parameter. Intended to be deployed as an endpoint served with Netlify functions.

Example Usage
  • Request Type: GET
  • Endpoint: https://hackersandslackers.com/.netlify/functions/scrape
  • Parameter: ?url=[TARGET_URL]
$ curl https://hackersandslackers.com/.netlify/functions/scrape?url=https://toddbirchard.com \
   -H "Content-Type: application/json"

Response:

{
   "Title": "Todd Birchard: Engineering, Product, Technology.",
   "Image": "https://storage.googleapis.com/toddbirchard-cdn/2019/08/cover.jpeg",
   "Description": "Giant reptile giving technology a good name. Occasional tangents of mass destruction. Made in Silicon Alley.",
   "Favicon": "/icons/icon-48x48.png"
}

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL