ayoni02 commited on
Commit
340eedc
·
1 Parent(s): d45b0b7

edit for sites

Browse files
Files changed (1) hide show
  1. mainn.py +1 -2
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\.com|xnxx\.com|youporn\.com|redtube\.com|etc)\b"
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