Created
September 7, 2022 16:16
-
-
Save mehanalavimajd/d2fc230ffed3d5e11cae9311e0df67ff to your computer and use it in GitHub Desktop.
This file contains 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
from random import randint | |
import requests as r | |
def rand (num): | |
string = "" | |
for i in range(num): | |
string += str(randint(0,9)) | |
return string | |
num = rand(7) | |
headers = { | |
'User-Agent': 'Mozilla/5.0 (Linux; Android 12; SM-S906N Build/QP1A.190711.020; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/80.0.3987.119 Mobile Safari/537.36', | |
} | |
for i in range(1000): | |
x = r.post("https://api.divar.ir/v5/auth/authenticate", | |
json={"phone":"0912"+num}, | |
) | |
print(x.text) | |
print("0912"+num) | |
num=rand(7) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment