mirror of
http://git.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion/nihilist/darknet-lantern.git
synced 2025-05-16 20:26:58 +00:00
fix blacklist
This commit is contained in:
parent
fe6b826027
commit
c6518363c1
1 changed files with 2 additions and 2 deletions
|
@ -115,8 +115,8 @@ def add_urls(urls):
|
|||
html = BeautifulSoup(req.text, features="lxml")
|
||||
title = html.title.string if html.title is not None else ""
|
||||
if blacklist_file is not None:
|
||||
for word in blacklist_file.loc["blacklisted-words"]:
|
||||
if word in title:
|
||||
for row in blacklist_file.itertuples():
|
||||
if row[1] in title:
|
||||
print_colors('[+] Forbidden word found. Rejecting.')
|
||||
forbidden = True
|
||||
if forbidden:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue