Skip to content
Fetches and returns a 301 redirect to an image in a web page
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.eslintrc.js
.gitignore
.travis.yml
README.md
index.js
now.json
package-lock.json
package.json

README.md

Image Extractor

A node app that transforms a URL into a redirect to the main image from the web page.

Usage

There is a single endpoint at the root which accepts a GET request with a URL parameter named url. This will return either:

  • 301 redirect to the target image
  • 404 if:
    • no image was found
    • the URL didn't return HTML
    • the URL couldn't be resolved

Hackers

Built for and used in Hackers.


By Weiran Zhang
Website | Twitter | GitHub

You can’t perform that action at this time.