Answer the question
In order to leave comments, you need to log in
Parsing a company logo?
There is a task to parse the logo from the site, no matter what site it is.
What would you advise parsing the first img or favicon, etc. suggest how you can solve this problem (of course I understand that there will be errors somewhere, but it is necessary that at least 80% be correct)
Answer the question
In order to leave comments, you need to log in
Search for element where id or class contains "logo".
Most sites, I think, will satisfy this condition.
If there is none, search for <link rel="apple-touch-icon" />
or <link rel="icon" />
.
ps, keep in mind that a lot of sites (for example, this one) design the logo as an svg object, and not just img src
.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question