Skip to content

weiran/image-fetcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Fetches and returns a 301 redirect to an image in a web page

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published