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

“Fix import error and add autodetection for missing Requests library” #66

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 13 additions & 12 deletions send.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@
try:
import requests
except ImportError:
print('Error !! : Some dependencies are not installed')
print('Error Occured!!!\nUse Non-Supported Version')
input('Press Any Key To Use Non-supported Version')
os.system('bash send.sh --sendsms')
print("Requests library not found. Downloading it now...")
os.system("python -m pip install requests")
print("Requests library installed successfully!")
input('Press Any Key To Use Non-supported Version')
os.system('bash send.sh --sendsms')

# colors
yellow='\033[93m'
Expand All @@ -39,7 +40,7 @@ def clr():

def banner():
clr()
logo = """
logo = """
\033[0m████████████████████████████████████████████████████████████████████
\033[0m████\033[92m▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒\033[0m████
\033[0m██\033[92m▒▒\033[0m██ \033[93m___ _ ______ _ __ \033[94m ______ _______ \033[0m██\033[92m▒▒\033[0m██
Expand All @@ -58,7 +59,7 @@ def banner():
"""
print(logo)
print("\n")


def Track() :
TXTID = input("Enter Text ID of Anon-SMS \n\t -->>")
Expand Down Expand Up @@ -111,9 +112,9 @@ def update():
print('\nNotification : ' + noti + '\n')
except Exception:
pass



while True:
print("\033[0mThis Tool Is Used To Send Anonymous Messages")
break
Expand Down Expand Up @@ -149,13 +150,13 @@ def update():
continue
receiver = '+' + numbe
text = input("Enter Message to send : ")

resp = requests.post('https://textbelt.com/text',{
'phone' : receiver,
'message' : text ,
'key' : 'textbelt'
})

print(resp.json())
input('\n\n\nThank You For Using Anon-SMS\nAfter v1.45 There are Ads Enabled in this Tool.\nPress Enter To Continue to View An Ad.\n')
os.system('figlet -f slant Just Kidding')
Expand All @@ -172,4 +173,4 @@ def update():
input('\n\t\tPress Enter To Exit...')
banner()
exit()
exit()
exit()