Z
Z
zyusifov112021-01-26 16:29:08
Python
zyusifov11, 2021-01-26 16:29:08

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

1 answer(s)
R
Roman Sarvarov, 2021-01-26
@zyusifov11

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 question

Ask a Question

731 491 924 answers to any question