diff --git a/.gitignore b/.gitignore index 36b13f1..7d4ee80 100644 --- a/.gitignore +++ b/.gitignore @@ -174,3 +174,4 @@ cython_debug/ # PyPI configuration file .pypirc +auth_state.json diff --git a/app/extractor.py b/app/extractor.py index 80fe9ed..2703e91 100644 --- a/app/extractor.py +++ b/app/extractor.py @@ -87,18 +87,16 @@ async def extract_relations_for_manager(manager_email: str) -> List[WorkingWithR working_json = collected.get("workingwith") or {} manager_person = parse_person_from_organization_person(person_json) - print(manager_person) working_with_persons = parse_workingwith_entries(working_json) - print(working_with_persons) directs_emails = parse_direct_emails_from_organization(org_json) - print(directs_emails) - + relations: List[WorkingWithRelation] = [] # Manager -> WorkingWith for dest in working_with_persons: relations.append(WorkingWithRelation(source=manager_person, destination=dest)) + print("Found directs: ", len(directs_emails)) # Für alle Directs ebenfalls WorkingWith holen for direct_email in directs_emails: collected_direct = await _open_profile_and_collect(page, direct_email)