{"id":20672222,"url":"https://github.com/hstsethi/in-mob-prefix","last_synced_at":"2025-04-19T19:04:16.198Z","repository":{"id":257189118,"uuid":"857220389","full_name":"hstsethi/in-mob-prefix","owner":"hstsethi","description":"Dataset, charts, models of 4 digit mobile number prefixes in India by state, operator name.","archived":false,"fork":false,"pushed_at":"2024-11-13T22:54:02.000Z","size":872,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-13T23:29:42.257Z","etag":null,"topics":["classification","dataset","hacktoberfest","hacktoberfest2024","india","machine-learning","mobile-number","osint","phone-number","reverse-phone-lookup"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc-by-4.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hstsethi.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-14T04:40:11.000Z","updated_at":"2024-11-13T22:54:06.000Z","dependencies_parsed_at":"2024-11-04T08:17:29.406Z","dependency_job_id":"8d520987-385f-438e-9e1b-c4bee334020c","html_url":"https://github.com/hstsethi/in-mob-prefix","commit_stats":null,"previous_names":["hstsethi/in-mob-prefix"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hstsethi%2Fin-mob-prefix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hstsethi%2Fin-mob-prefix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hstsethi%2Fin-mob-prefix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hstsethi%2Fin-mob-prefix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hstsethi","download_url":"https://codeload.github.com/hstsethi/in-mob-prefix/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224970198,"owners_count":17400292,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["classification","dataset","hacktoberfest","hacktoberfest2024","india","machine-learning","mobile-number","osint","phone-number","reverse-phone-lookup"],"created_at":"2024-11-16T20:32:55.321Z","updated_at":"2025-04-19T19:04:16.192Z","avatar_url":"https://github.com/hstsethi.png","language":"Jupyter Notebook","funding_links":[],"categories":["[↑](#-table-of-contents) Phone Number Research"],"sub_categories":["[↑](#-table-of-contents) GitHub"],"readme":"Phone numbers in India are a set of unique 10 digit numbers. Out of which, first 4 are network operator/circle code. These prefixes range from 6xxx - 9xxx. Last six are random. This is a dataset, charts, model of first four numbers with their respective state, operator name.\n\nNote: Starting from commit hash `9de66f3f74e465c973f5e2a47241c7627ca94c32`, the dataset is refractored to contain only 3 columns: series, operator, circle. This makes it easier to use/read and eliminates duplicate columns name.\n\nNote: This dataset is provided \"as-is\" without any warranty of any kind. While I have personally fixed many errors, I still can't guarantee that this dataset is accurate. Use at your own risk.\n\n\n## Use Cases\n\n- Privacy friendly alternative to reverse phone number lookup services like Truecaller\n\nSee the section below for pretrained models, training and inference script.\n\n- Model training\n\n- Spam Detection\n\n## Using Machine Learning To Predict Operator Names\n\nA Python script named, `predict-operator.py` is provided with this project. It works by checking if the operator to predict is in dataset. If not, it will try using the appropriate model for predicting the operator. If appropriate model is not found, it will train the model using Gradient Boosting Classifer(GBC), save it, and predict using newly trained model.\n\nPretrained models are provided, but if you want, you can train your own by running `python train_save_all.py`\n\n### Examples\n\n``` \n$ python predict-operator.py ../data/6xxx-in-mob-prefix.csv 7000 ../models/6xxx-gbc.bin\n\nPredicted Operator: \n['RJ']\n\n```\n\n```\n$ python predict-operator.py ../data/9xxx-in-mob-prefix.csv 9000 ../models/9xxx-gbc.bin\n\nOperator Found in Database\n['AT']\n\n```\n\n \n## Sources\n\nMajority of this data is sourced from Wikipedia and Telecom Regulatory Authority of India(TRAI). Rest of it was collected from various sources including web scrapping, personal research and other publicly available resources.\n\nA person was complaining that the dataset contains missing values. It is intentionally like that, because I want to be accurate, and this data is hard to find. If I wanted, I could fill the data with a single function call `df.fillna()`, but I did not.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhstsethi%2Fin-mob-prefix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhstsethi%2Fin-mob-prefix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhstsethi%2Fin-mob-prefix/lists"}