Merge pull request #463 from ranlo/patch-1

Update email.py
This commit is contained in:
mxrch
2025-05-17 18:23:37 +02:00
committed by GitHub

View File

@@ -70,7 +70,10 @@ async def hunt(as_client: httpx.AsyncClient, email_address: str, json_file: Path
# await ia.detect_face(vision_api, as_client, target.coverPhotos[container].url) # await ia.detect_face(vision_api, as_client, target.coverPhotos[container].url)
print() print()
print(f"Last profile edit : {target.sourceIds[container].lastUpdated.strftime('%Y/%m/%d %H:%M:%S (UTC)')}\n") if target.sourceIds[container].lastUpdated:
print(f"Last profile edit : {target.sourceIds[container].lastUpdated.strftime('%Y/%m/%d %H:%M:%S (UTC)')}\n")
else:
gb.rc.print(f"Last profile edit : [italic]Not found.[/italic]\n")
if container in target.emails: if container in target.emails:
print(f"Email : {target.emails[container].value}") print(f"Email : {target.emails[container].value}")
@@ -164,4 +167,4 @@ async def hunt(as_client: httpx.AsyncClient, email_address: str, json_file: Path
f.write(json.dumps(json_results, cls=GHuntEncoder, indent=4)) f.write(json.dumps(json_results, cls=GHuntEncoder, indent=4))
gb.rc.print(f"\n[+] JSON output wrote to {json_file} !", style="italic") gb.rc.print(f"\n[+] JSON output wrote to {json_file} !", style="italic")
await as_client.aclose() await as_client.aclose()