mirror of
https://github.com/benbusby/whoogle-search
synced 2024-10-30 09:20:50 +00:00
parent
f8dfc78539
commit
e5d1f6a292
@ -62,4 +62,7 @@ COPY run .
|
||||
|
||||
EXPOSE $EXPOSE_PORT
|
||||
|
||||
HEALTHCHECK --interval=5m --timeout=5s \
|
||||
CMD wget --no-verbose --tries=1 http://localhost:${EXPOSE_PORT}/ || exit 1
|
||||
|
||||
CMD config/tor/start-tor.sh & ./run
|
||||
|
@ -38,8 +38,8 @@ def has_ad_content(element: str) -> bool:
|
||||
bool: True/False for the element containing an ad
|
||||
|
||||
"""
|
||||
return element.upper() in (value.upper() for value in BLACKLIST) \
|
||||
or 'ⓘ' in element
|
||||
return (element.upper() in (value.upper() for value in BLACKLIST)
|
||||
or 'ⓘ' in element)
|
||||
|
||||
|
||||
def get_first_link(soup: BeautifulSoup) -> str:
|
||||
|
Loading…
Reference in New Issue
Block a user