Created
January 23, 2024 14:16
-
-
Save Jxck-S/4656638b6d54f85290f1d39b2d39f7fb to your computer and use it in GitHub Desktop.
Generate TMobile Phone Numbers and Verify for, reasons you may need to know a TMobile number...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import json | |
import random | |
def generate_random_number_string(length): | |
numbers = '0123456789' | |
return ''.join(random.choice(numbers) for _ in range(length)) | |
phone_number = "13529993108" | |
print("--------------------------------------") | |
import time | |
access_key = '' #https://blog.apilayer.com/how-to-validate-a-phone-number-in-your-php-web-app-using-an-api/ | |
tmobs = [] | |
for x in range(0, 30): | |
phone_number = f"1352999{generate_random_number_string(4)}" | |
url = 'http://apilayer.net/api/validate?access_key=' + access_key + '&number=' + phone_number | |
response = requests.get(url) | |
answer = response.json() | |
print(answer) | |
if answer["valid"] == True: | |
#print(answer) | |
print("Number:",answer["number"], "Carrier:",answer["carrier"]) | |
if answer["carrier"] == "T-Mobile USA Inc.": | |
tmobs.append(answer["number"]) | |
time.sleep(15) | |
print(tmobs) | |
#13529998274 | |
#13529995458 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
requests