https://github.com/toddbirchard/lambda-metadata-scraper
🟩 🌐 Netlify Lambda function to scrape metadata from a target URL.
https://github.com/toddbirchard/lambda-metadata-scraper
go golang lambda lambda-functions netlify scrape scraper serverless
Last synced: 7 months ago
JSON representation
🟩 🌐 Netlify Lambda function to scrape metadata from a target URL.
- Host: GitHub
- URL: https://github.com/toddbirchard/lambda-metadata-scraper
- Owner: toddbirchard
- License: mit
- Created: 2020-07-03T21:08:39.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-01-19T14:26:58.000Z (almost 4 years ago)
- Last Synced: 2025-03-27T23:11:22.584Z (7 months ago)
- Topics: go, golang, lambda, lambda-functions, netlify, scrape, scraper, serverless
- Language: Go
- Homepage:
- Size: 10.6 MB
- Stars: 4
- Watchers: 1
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Lambda Metadata Scraper




[](https://github.com/toddbirchard/lambda-metadata-scraper/issues)
[](https://github.com/toddbirchard/lambda-metadata-scraper/stargazers)
[](https://github.com/toddbirchard/lambda-metadata-scraper/network)
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]`
```bash
$ curl https://hackersandslackers.com/.netlify/functions/scrape?url=https://toddbirchard.com \
-H "Content-Type: application/json"
```
**Response:**
```json
{
"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"
}
```