Spaces:
Sleeping
Sleeping
ayoni02
commited on
Commit
·
340eedc
1
Parent(s):
d45b0b7
edit for sites
Browse files
mainn.py
CHANGED
@@ -35,8 +35,7 @@ def dark_web_links(text):
|
|
35 |
# catch adult content links
|
36 |
def adult_content_sites(text):
|
37 |
# Regular expression pattern to match common adult content websites
|
38 |
-
adult_content_pattern = r"(https?://)?(?:www\.)?(pornhub
|
39 |
-
|
40 |
# Search for adult content sites in the text
|
41 |
matches = re.findall(adult_content_pattern, text)
|
42 |
|
|
|
35 |
# catch adult content links
|
36 |
def adult_content_sites(text):
|
37 |
# Regular expression pattern to match common adult content websites
|
38 |
+
adult_content_pattern = r"(?i)\b(?:https?://)?(?:www\.)?(?:xvideos|pornhub|redtube|xnxx|youporn|spankbang|xhamster|xxnx|xnx|tube8|sex)\b"
|
|
|
39 |
# Search for adult content sites in the text
|
40 |
matches = re.findall(adult_content_pattern, text)
|
41 |
|