NEP DEVS
Open in Telegram
NEPS DEV WHO WANT TO HELP YOU WITH FOSS PROJECT. WE COLLECT SCRIPTS THIS GROUP IS ONLY FOR EDUCATIONAL PURPOSE
Show moreNo data
Subscribers
-3724 hours
-1357 days
-23530 days
Posts Archive
❤️NASA SATELLITE INFORMATION IN PYTHON ⭐
import requests
from colorama import Fore, Style, init
init(autoreset=True)
def get_nasa_mission_details():
url = "https://api.le-systeme-solaire.net/rest/bodies/"
print(f"🚀 Retrieving NASA mission details... 🌌 ")
response = requests.get(url)
ascii_art = """
███╗░░██╗░█████╗░░██████╗░█████╗░
████╗░██║██╔══██╗██╔════╝██╔══██╗
██╔██╗██║███████║╚█████╗░███████║
██║╚████║██╔══██║░╚═══██╗██╔══██║
██║░╚███║██║░░██║██████╔╝██║░░██║
╚═╝░░╚══╝╚═╝░░╚═╝╚═════╝░╚═╝░░╚═╝
Made By Nepcoder✅
"""
if response.status_code == 200:
data = response.json()
missions = data['bodies']
with open('nasa_missions.txt', 'w') as file:
file.write(ascii_art + "\n")
file.write(f"{Fore.GREEN}🚀 NASA Missions:\n\n{Style.RESET_ALL}")
print(ascii_art)
print(f"{Fore.GREEN}🚀 NASA Missions:\n{Style.RESET_ALL}")
for mission in missions:
if 'name' in mission and 'discoveryDate' in mission:
mission_name = mission['name']
discovery_date = mission['discoveryDate']
mission_details = (
f"{Fore.CYAN}🚀 Mission Name: {Fore.YELLOW}{mission_name}\n"
f"{Fore.CYAN}🗓 Discovery Date: {Fore.YELLOW}{discovery_date}\n"
f"{Fore.MAGENTA}🌟--------------------------------------🌟{Style.RESET_ALL}"
)
file.write(f"Mission Name: {mission_name}\nDiscovery Date: {discovery_date}\n\n")
print(mission_details)
print(f"\n{Fore.GREEN}✅ Mission details saved to nasa_missions.txt{Style.RESET_ALL}")
file.write("\n🌟 Made by Nepcoder 🌟\n")
else:
print(f"{Fore.RED}❌ Failed to retrieve mission details{Style.RESET_ALL}")
if __name__ == "__main__":
get_nasa_mission_details()
ALL SATELLITE DISCOVERY INFORMATION IN PYTHON CODE✔️
CREDIT:- NASA✅
Made by :- @Nepcoder✔️
Publisher and Code Credit:- @DEVSNP✅DYNAMIC QR CODE [TBC] ⭐
Command :
*
🤖 TPY :
bot.sendChatAction(chat_id=u, action="typing")
input_text = message.text
api_url = "https://dynamicqrcode.nepcoderdevs.workers.dev/?message=" + input_text
try:
response = HTTP.get(api_url)
if response.status_code == 200:
qr_image_url = response.json()["qrImageUrl"]
keyboard = [
[
InlineKeyboardButton("👨💻 Developer", url="https://t.me/nepcoder"),
InlineKeyboardButton("📢 Channel", url="https://t.me/devsnp")
],
[
InlineKeyboardButton("Read QR Code 📷", callback_data="/ReadQr")
]
]
reply_markup = InlineKeyboardMarkup(keyboard)
caption = "*🤖 QR code generated by @DynamicQRGeneratorBot*\n\nJoin us on Telegram:"
bot.sendPhoto(chat_id=u, photo=qr_image_url, caption=caption, parse_mode="Markdown", reply_markup=reply_markup)
else:
bot.sendMessage(chat_id=u, text="❌ Error: Failed to retrieve QR code image.")
except Exception as e:
error_message = "❌ <b>Oops! Something went wrong:</b>\n{}".format(str(e))
bot.sendMessage(chat_id=u, text=error_message, parse_mode="HTML")
Command : /ReadQr
🤖 TPY :
prompt_message = '🌟 **Please send your QR code photo** 📷\n\n' \
'Our bot will read it and provide you with the text or URL encoded in the QR code.'
bot.sendMessage(chat_id=u, text=prompt_message, parse_mode="Markdown")
Bot.handleNextCommand("/Nep")
Command : /Nep
🤖 TPY :
image_file = f"https://api.telegram.org/bot{Bot.info().token}/getFile?file_id={message.photo[-1].file_id}"
content = HTTP.get(image_file).json()
file_path = content['result']['file_path']
file_url = f"https://api.telegram.org/file/bot{Bot.info().token}/{file_path}"
imgbb_api_url = "https://api.imgbb.com/1/upload"
imgbb_api_key = "Your_API_KEY" # Replace with your ImgBB API key
files = {'image': (file_path, HTTP.get(file_url).content)}
payload = {'key': imgbb_api_key}
response = HTTP.post(imgbb_api_url, files=files, data=payload)
if response.status_code == 200:
imgbb_image_url = response.json()['data']['url']
qr_api_url = f"https://qrredaes.nepcoderdevs.workers.dev/?url={imgbb_image_url}"
qr_response = HTTP.get(qr_api_url)
if qr_response.status_code == 200:
raw_text = qr_response.json()["raw_text"]
bot.sendMessage(chat_id=u, text=f"🔍 Extracted Text from QR Code:\n\n<code>{raw_text}</code>", parse_mode="HTML")
else:
bot.sendMessage(chat_id=u, text="❌ Error: Failed to extract raw text from QR code.")
else:
bot.sendMessage(chat_id=u, text="❌ Error: Failed to upload image to ImgBB.")
© Copyright: @Devsnp
Developer 👨💻: @Nepcoder
Share with credit @Devsnp🥰