Code Monkey home page Code Monkey logo

favicongrabber.com's Introduction

Favicon Grabber license

Favicon Grabber is an online service to grab favicons from any domain.


Try Grabbing

API

Favicon Grabber API is simple and has the one endpoint. For instance, to grab favicons from digitalocean.com open https://favicongrabber.com/api/grab/digitalocean.com in your favorite browser.

Example Using

Grab icons with /apple/ mask in src property:

fetch('https://favicongrabber.com/api/grab/udemy.com')
  .then(response => response.json())
  .then(({ icons }) => icons.filter(({ src }) => /apple/.test(src)))
  .then(icons => icons.forEach(icon => console.log(icon)));

For the full description, please see Service API reference.

License

The code is available under the MIT License.

favicongrabber.com's People

Contributors

antongunov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

favicongrabber.com's Issues

Support other link selectors

Is it possible to include

  • meta itemprop=“image”
  • meta property=“og:image”

as link selectors for the images grabbed? I'm trying to grab larger favicons (not just 16x16) but a lot of websites are moving away from including larger sized favicon images in favor of these tags.
Otherwise the api is easy to use and works well, thanks!

When favicon isn't on page's sourcecode

There are sites where favicon isn't on the sourcecode

just as

/favicon.ico

in domain root

Like "rarbg.to" and many others

Can you create a rule to search for /favicon.ico by default?

Build fails

Hi,

i'm trying to build the project with yarn, but no lock so far :

# node -v
v6.14.1

yarn install v1.6.0
info No lockfile found.
[1/4] Resolving packages...
warning browser-sync > socket.io > engine.io > [email protected]: stop using this version
warning gulp-pug > [email protected]: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
warning gulp-sass > [email protected]: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
warning [email protected]: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
warning jest > jest-cli > istanbul-api > [email protected]: 1.2.0 should have been a major version bump
[2/4] Fetching packages...
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
warning Your current version of Yarn is out of date. The latest version is "1.7.0", while you're on "1.6.0".
info To upgrade, run the following command:
$ curl --compressed -o- -L https://yarnpkg.com/install.sh | bash
$ run-s build version nginx
yarn run v1.6.0
$ npm run clean && run-p build:*

> [email protected] clean /var/www/localhost/htdocs/favicongrabber.com
> rm -rf build

$ gulp default:production
$ webpack --progress --hide-modules
/var/www/localhost/htdocs/favicongrabber.com/webpack.config.js:23
  );
  ^

SyntaxError: Unexpected token )
    at createScript (vm.js:56:10)
    at Object.runInThisContext (vm.js:97:10)
    at Module._compile (module.js:549:28)
    at Object.Module._extensions..js (module.js:586:10)
    at Module.load (module.js:494:32)
    at tryModuleLoad (module.js:453:12)
    at Function.Module._load (module.js:445:3)
    at Module.require (module.js:504:17)
    at require (internal/module.js:20:19)
    at requireConfig (/var/www/localhost/htdocs/favicongrabber.com/node_modules/webpack/bin/convert-argv.js:97:18)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with signal "SIGTERM".
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
ERROR: "build:webpack" exited with 1.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
ERROR: "build" exited with 1.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

Do you have some doc/requirements somewhere ?

Thanks

HTTPS support

API must supports HTTPS for use on client side, otherwise request from HTTPS to API will be blocked by browser.

Create Dockefile to be able to easily host your own copy

This is a really useful project, however I cannot use it in production since there is absolutely no guarantee when it goes down.
A Dockerfile would make it possible to easily deploy this project in own Kubernetes cluster, for instance.

General API error

Hey ... I'm getting a General API error for most of the requests I make

Here's an example url: https://favicongrabber.com/api/grab/jahir.dev?pretty=true

Here's the response:

{
  "error": "General API error."
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.