| 13905 | return carrier_name |
| 13906 | |
| 13907 | def _phone_score(self, info): |
| 13908 | score = 0 |
| 13909 | if info.get("Validation") == "Possibile": |
| 13910 | score += 30 |
| 13911 | if info.get("Validità") == "Valido": |
| 13912 | score += 35 |
| 13913 | if info.get("09. Paese"): |
| 13914 | score += 5 |
| 13915 | if info.get("Carrier"): |
| 13916 | score += 10 |
| 13917 | if info.get("Timezone"): |
| 13918 | score += 10 |
| 13919 | if info.get("02. Input Normalizzato") and info.get("03. Formato E164 (solo cifre)"): |
| 13920 | score += 10 |
| 13921 | if info.get("NumVerify") == "Numero validato": |
| 13922 | score += 15 |
| 13923 | if info.get("15. Coerenza formato") == "OK" or info.get("Coerenza formato") == "OK": |
| 13924 | score += 5 |
| 13925 | if info.get("Portabilità/Carrier") and "Sì" in str(info.get("Portabilità/Carrier")): |
| 13926 | score += 10 |
| 13927 | if info.get("Tipo numero") and "mobile" in str(info.get("Tipo numero")).lower(): |
| 13928 | score += 5 |
| 13929 | return min(100, score) |
| 13930 | |
| 13931 | async def analyze_phone(self, target): |
| 13932 | info = {"00. Input": target} |