Spaces:
Sleeping
Sleeping
Update parse_email.py
Browse files- 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:
|