princemaxp commited on
Commit
cdb486e
·
verified ·
1 Parent(s): 86cb7f3

Update parse_email.py

Browse files
Files changed (1) hide show
  1. parse_email.py +0 -3
parse_email.py CHANGED
@@ -35,11 +35,8 @@ def parse_email(file_path):
35
 
36
  # --- 3. Extract URLs ---
37
  urls = set()
38
-
39
- # From plain text
40
  urls.update(re.findall(r"https?://[^\s]+", body))
41
 
42
- # From HTML parts
43
  for part in msg.walk():
44
  if part.get_content_type() == "text/html":
45
  try:
 
35
 
36
  # --- 3. Extract URLs ---
37
  urls = set()
 
 
38
  urls.update(re.findall(r"https?://[^\s]+", body))
39
 
 
40
  for part in msg.walk():
41
  if part.get_content_type() == "text/html":
42
  try: