Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python example question #3

Open
joeyoropesa-dev opened this issue Nov 20, 2024 · 0 comments
Open

Python example question #3

joeyoropesa-dev opened this issue Nov 20, 2024 · 0 comments

Comments

@joeyoropesa-dev
Copy link

Is there any equivalent of the command mccmnc -cc for python script so that by script we can use to find specific country by country number. I've tried to use this but failed - it seems that this function for cc is called differently.

            try:
                matches = mccmnc.find_matches(cc=CC, mnc=II)  # Use cc instead of user_mcc
                if matches:
                    country_name = matches[0].country_name
                    network_name = matches[0].network_name
                    debug_output.append(f"4. CC/MNC found: Carrier={network_name}, Country={country_name}")
                else:
                    debug_output.append("4. No match found for CC/MNC.")
                    return "Invalid", debug_output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant