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', |
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
import requests as r | |
x = r.post("https://api.divar.ir/v5/auth/authenticate", json={"phone":"NUMBER_IN_STRING"}) | |
print(x.text) |
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
#!/bin/bash | |
alias nodekill="sudo killall -9 node" | |
# add this to your .bashrc | |
# then restart terminal | |
# And use killall |