mirror of
https://github.com/benbusby/whoogle-search.git
synced 2026-03-11 08:54:34 +00:00
remove unused changes
This commit is contained in:
parent
8a24e4a03c
commit
0b2d523506
3 changed files with 2 additions and 5 deletions
|
|
@ -1,5 +1,4 @@
|
|||
import cssutils
|
||||
from app.utils.misc import SKIP_PREFIX
|
||||
from bs4 import BeautifulSoup
|
||||
from bs4.element import ResultSet, Tag
|
||||
from cryptography.fernet import Fernet
|
||||
|
|
|
|||
|
|
@ -11,8 +11,6 @@ from bs4 import BeautifulSoup as bsoup
|
|||
from cryptography.fernet import Fernet
|
||||
from flask import Request
|
||||
|
||||
SKIP_PREFIX = ['//www.', '//mobile.', '//m.']
|
||||
|
||||
ddg_favicon_site = 'http://icons.duckduckgo.com/ip2'
|
||||
|
||||
empty_gif = base64.b64decode(
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
from app.models.config import Config
|
||||
from app.models.endpoint import Endpoint
|
||||
from app.utils.misc import list_to_dict, SKIP_PREFIX
|
||||
from app.utils.misc import list_to_dict
|
||||
from bs4 import BeautifulSoup, NavigableString
|
||||
import copy
|
||||
from flask import current_app
|
||||
|
|
@ -12,6 +12,7 @@ import re
|
|||
import warnings
|
||||
|
||||
SKIP_ARGS = ['ref_src', 'utm']
|
||||
SKIP_PREFIX = ['//www.', '//mobile.', '//m.']
|
||||
GOOG_STATIC = 'www.gstatic.com'
|
||||
G_M_LOGO_URL = 'https://www.gstatic.com/m/images/icons/googleg.gif'
|
||||
GOOG_IMG = '/images/branding/searchlogo/1x/googlelogo'
|
||||
|
|
@ -235,7 +236,6 @@ def get_site_alt(link: str, site_alts: dict = SITE_ALTS) -> str:
|
|||
# If a scheme is specified, remove everything before the
|
||||
# first occurence of it
|
||||
link = f'{parsed_alt.scheme}{link.split(parsed_alt.scheme, 1)[-1]}'
|
||||
|
||||
break
|
||||
|
||||
return link
|
||||
|
|
|
|||
Loading…
Reference in a new issue