P
P
pingo2015-12-19 21:45:37
Parsing
pingo, 2015-12-19 21:45:37

What tactics to choose for getting a picture of a company logo?

Tell me a good idea for getting a logo image by company name?
Now implemented the following scheme.
I parse Google output for the request "Company name" + "official site", after receiving the url, I take <head>it and look for a picture from <link rel="apple-touch-icon">there, if not, then I run in the body and look for .logo #logo and other pattern selectors. In general, the circuit is so-so, it works of course, but in ~ 25% it produces slag.
What other schemes for obtaining a logo can be? api on image Google seems to have closed. Azure didn’t work for me, apparently I have to pay, where else can I drop so that the parser beats with an accuracy of 100%?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
nirvimel, 2015-12-19
@pingo

In principle, it is impossible to solve this problem with 100% accuracy, if only because the logo may simply not be in the public domain or somewhere there is a corresponding picture that is not marked in any way.
But you can try options:

  • Wikipedia search (eng). There, in many articles about companies, the logo is given. Moreover, this image can be freely copied anywhere.
  • Google images search for <company_name>+logo. For example . You can optionally filter by size or by type .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question