(self, data)
| 19054 | pdf.cell(0, 6, self._latin1(f"© CScorza Copyright | v{APP_VERSION}"), align="C", new_x=XPos.LMARGIN, new_y=YPos.NEXT) |
| 19055 | |
| 19056 | def generate(self, data): |
| 19057 | pdf = FPDF() |
| 19058 | self._pdf_cover(pdf, "CScorza Report", "CScorza IntelOSINT") |
| 19059 | self._pdf_notes_page(pdf, "Note Tab (Pagina 2)", [ |
| 19060 | "Questo report aggrega i risultati OSINT dei tab esportabili.", |
| 19061 | "I campi interni e segnali raw vengono filtrati per leggibilita.", |
| 19062 | "Verificare manualmente i risultati ad alta sensibilita." |
| 19063 | ]) |
| 19064 | hidden_fields = { |
| 19065 | "__bm_techniques", |
| 19066 | "__bm_profile_checks", |
| 19067 | "__bm_confidence", |
| 19068 | "__bm_version", |
| 19069 | "__bm_source", |
| 19070 | "__bm_status", |
| 19071 | "__enriched_at", |
| 19072 | "__found", |
| 19073 | "statuslabel", |
| 19074 | "raw_signals", |
| 19075 | "media_assets", |
| 19076 | "tecniche bookmarklet applicate", |
| 19077 | "bookmarklet applicate", |
| 19078 | "arricchito il", |
| 19079 | "arricchito", |
| 19080 | "qualitadati", |
| 19081 | "bm_techniques", |
| 19082 | "bm_profile_checks", |
| 19083 | "bm_confidence", |
| 19084 | "bm_version", |
| 19085 | "bm_source", |
| 19086 | "enriched_at", |
| 19087 | } |
| 19088 | hidden_needles = ("rawsignals", "mediaassets", "bookmarklet", "qualitadati", "arricchito", "statuslabel", "bmtechniques", "bmprofilechecks", "bmconfidence", "bmversion", "bmsource") |
| 19089 | |
| 19090 | def _normalize(k): |
| 19091 | if k is None: |
| 19092 | return "" |
| 19093 | return ( |
| 19094 | str(k) |
| 19095 | .strip() |
| 19096 | .lower() |
| 19097 | .replace("à", "a") |
| 19098 | .replace("è", "e") |
| 19099 | .replace("é", "e") |
| 19100 | .replace("ì", "i") |
| 19101 | .replace("ò", "o") |
| 19102 | .replace("ù", "u") |
| 19103 | .replace(" ", "") |
| 19104 | .replace("_", "") |
| 19105 | ) |
| 19106 | |
| 19107 | def _is_hidden_key(k): |
| 19108 | if not isinstance(k, str): |
| 19109 | k = str(k) |
| 19110 | kn = _normalize(k) |
| 19111 | if kn in hidden_fields: |
| 19112 | return True |
| 19113 | return any(needle in kn for needle in hidden_needles) |
no test coverage detected