[refactor] icon engines: add new icon category (#4817)

Icons category makes sense because it allows to quickly search for free SVG
icons to use for websites / other designs with a quick `!icons` query

Icons don't seem to fit into the normal images category that well because icons
are quite a special type of images
This commit is contained in:
Bnyro 2025-05-21 14:52:16 +02:00 committed by GitHub
parent 7420706a50
commit 8bff73c9b6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 8 additions and 9 deletions

View file

@ -1,5 +1,5 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
"""Svgrepo (images)
"""Svgrepo (icons)
"""
from lxml import html
@ -14,7 +14,7 @@ about = {
}
paging = True
categories = ['images']
categories = ['images', 'icons']
base_url = "https://www.svgrepo.com"
results_xpath = "//div[@class='style_nodeListing__7Nmro']/div"