fhoehl / fetch-images-from-url

Get images from a Webpage

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fetch-images-from-url

fetch-images-from-url is a service that given an URL of a Webpage will return a list of images from that page.

๐Ÿ“ƒ โ†ฆ ๐Ÿ—พ๐ŸŒ๐ŸŒ‰

fetch-images-from-url uses Puppeteer and is packaged with Docker. Results are cached in Redis for a limited time.

Usage

docker-compose build
docker-compose up
curl "localhost:3000?url=https://fhoehl.com"

Notes

Running Chrome in Docker

I had troubles running Chrome in Docker. I'm using a Docker custom seccomp file in the docker-compose.yml provided by https://ndportmann.com/chrome-in-docker/

More tips from the Puppeteer troubleshooting page.

License

MIT license

About

Get images from a Webpage

License:MIT License


Languages

Language:JavaScript 86.5%Language:Dockerfile 10.7%Language:HTML 2.7%