Skip to content

Commit

Permalink
fix: 漏提交
Browse files Browse the repository at this point in the history
  • Loading branch information
buxianshan committed Jan 8, 2023
1 parent f8dc2df commit b719c50
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import requests
from lxml import etree
from loguru import logger

HEADERS = {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 '
Expand Down Expand Up @@ -67,12 +68,4 @@ def get_website_home_page(url):


if __name__ == '__main__':
# test
# print(get_icon("https://esxi.bxs.ink:8043"))
# woc 这个得写 https://esxi.bxs.ink:8043/ui/favicon.svg
# 这咋办,首页不是/ 而是 /ui
# https://esxi.bxs.ink:8043/ui/#/host
# https://help.fanruan.com/finebi/doc-view-263.html
# a = "https://esxi.bxs.ink:8043/ui/".split("/")
# print(a)
print(get_icon("https://img.alicdn.com/tfs/TB1_ZXuNcfpK1RjSZFOXXa6nFXa-32-32.ico"))
print(get_icon("https://bxs.ink"))

0 comments on commit b719c50

Please sign in to comment.