ScriptSource | Al-Bayati
Open in Telegram
502
Subscribers
No data24 hours
-27 days
-1430 days
Posts Archive
from PIL import Image;from rembg import remove
input = Image.open('img.png')#Your Path Image ..
output = remove(input)
output.save('Delete.png')
- Remove Background From Image
from pyrogram import Client;id = int(input("- Enter Your Api Id PyroGram : "));hash = input("- Enter Your Api Hash PyroGram : ")
app = Client("X6",id,hash,phone_number=None)
async def X6():
async with app:
contacts = await app.get_contacts()
for contact in contacts:
await app.X6(contact.id)
print(f"- Done Delete : {contact.first_name}")
app.run(X6())
- Code Python PyroGram Delete All Contact In Your Account TeleGram ....1 . ModuleNotFoundError | يحدث هذا الخطا عندما يتم محاولة استيراد وحدة غير موجودة .
2 . BufferError | يحدث هذا الخطا عندما يكون هناك مشكلة في عملية التخزين المؤقت .
3 . ArithmeticError | يحدث هذا الخطا عندما يكون هناك خطا في عملية حسابية ، مثل division by zero او overflow .
4 . FloatingPointError | يحدث هذا الخطا عند حدوث خطا في العملية الحسابية للنقاط العائمة .
5 . LookupError | يحدث هذا الخطا عند حدوث خطا عام في البحث، مثل IndexError و KeyError .
6 . StopIteration | يحدث هذا الخطا عندما ينتهي تكرار (iteration) ولم تعد هناك عناصر للارجاع .
7 . AssertionError | يحدث هذا الخطا عندما يفشل تاكيد باستخدام assert .
8 . UnicodeEncodeError | يحدث هذا الخطا عندما يفشل ترميز سلسلة نصية الى تنسيق محدد من Unicode .
9 . UnicodeDecodeError | يحدث هذا الخطا عندما يفشل فك ترميز سلسلة نصية من تنسيق محدد من Unicode .
10 . PermissionError | يحدث هذا الخطا عندما لا تكون هناك صلاحيات كافية لتنفيذ العملية .
13 . MemoryError | يحدث هذا الخطأ عندما لا يكون هناك ذاكرة كافية لتنفيذ العملية .
14 . OverflowError | يحدث هذا الخطأ عندما تتجاوز عملية حسابية الحدود القصوى لنوع البيانات .
15 . RuntimeError | يحدث هذا الخطأ عندما يتم كشف خطأ عام لا ينتمي الى أي نوع محدد من الاخطاء .
16 . NotImplementedError | يحدث هذا الخطأ عندما يتم استدعاء دالة لم يتم تنفيذها بعد .
17 . AssertionError | يحدث هذا الخطأ عندما يفشل تأكيد باستخدام assert .
18 . UnicodeEncodeError | يحدث هذا الخطأ عندما يفشل ترميز سلسلة نصية الى تنسيق محدد من Unicode .
19 . UnicodeDecodeError | يحدث هذا الخطأ عندما يفشل فك ترميز سلسلة نصية من تنسيق محدد من Unicode .
20 . PermissionError | يحدث هذا الخطأ عندما لا تكون هناك صلاحيات كافية لتنفيذ العملية .
21 . ConnectionError | يحدث هذا الخطأ عندما يحدث فشل في الاتصال بالشبكة .
22 . TimeoutError | يحدث هذا الخطأ عندما تنتهي مهلة العملية قبل اكتمالها .
23 . OSError | يحدث هذا الخطأ عند حدوث خطأ متعلق بنظام التشغيل ، مثل فتح ملف أو التواصل مع الجهاز .
24 . RecursionError | يحدث هذا الخطأ عندما يتجاوز استدعاء الدوال المتكرر الحد الأقصى .
٫ بعض الاخطاء الى تظهر في TerminalInterface :
1 . SyntaxError | يحدث هذا الخطأ عندما يحتوي الكود على خطأ نحوي .
2 . IndentationError | يحدث هذا الخطأ عندما تكون هناك مشكلة في المسافات البادئة (الـ Indentation) .
3 . NameError | يحدث هذا الخطأ عندما يتم استخدام متغير أو دالة لم يتم تعريفها .
4 . TypeError | يحدث هذا الخطأ عندما يتم استخدام نوع بيانات غير مناسب .
5 . ValueError | يحدث هذا الخطأ عندما تكون قيمة المدخلات غير صحيحة .
6 . IndexError | يحدث هذا الخطأ عندما يتم محاولة الوصول الى عنصر خارج حدود القائمة .
7 . KeyError | يحدث هذا الخطأ عندما يتم محاولة الوصول الى مفتاح غير موجود في القاموس .
8 . AttributeError | يحدث هذا الخطأ عندما يتم محاولة الوصول الى خاصية أو دالة غير موجودة لكائن معين .
9 . ImportError | يحدث هذا الخطأ عندما يفشل استيراد وحدة أو حزمة .
10 . ZeroDivisionError | يحدث هذا الخطأ عندما يتم محاولة القسمة على صفر .
11 . FileNotFoundError | يحدث هذا الخطأ عندما يتم محاولة الوصول الى ملف غير موجود .
12 . EOFError | يحدث هذا الخطأ عندما يتم الوصول الى نهاية الملف بشكل غير متوقع .
* عادةً الخطا يطبـع مع سطر الموجود في Code WritingInterface .. *
& اشياء يستفاودون منها المبتدئين ، دمتم بخير ..
(&) Api Search About YouTube Videos 🔎 .
(&) Excellent IP Without Errors And Excellent Results 🎚️ .
— — — — — — — — — — — — — —
(&) أيبي بَـحث عن فـيدهوات يوتيوب 🔎 .
(&) أيبي ممتاز دون أخطاء فقط ارفـعه على سيـرفر وبـس ..
- http://YourLink/search?search={words} ..
(#) @ClassZaid
import subprocess
class Z44o:
def __init__( self , SSID ):
self.SSID = SSID
class Wifi(Z44o):
def __init__(self,SSID):
super().__init__(self,SSID)
def Password(self):
try:
shell = subprocess.check_output(
f'''netsh wlan show profile name="{self.SSID}" key=clear''',
shell=True,
text=True
)
for Lines in shell.splitlines():
if 'Key Content' in Lines:
Password = Lines.split(':')[1].strip()
return Password
break
else:
return "NoT Found Password"
except subprocess.CalledProcessError as e:
return e
wifi = Z44o("zr3aa")
print(Wifi.Password(wifi))import subprocess
class Z44o:
def __init__( self , SSID ):
self.SSID = SSID
class Wifi(Z44o):
def __init__(self,SSID):
super().__init__(self,SSID)
def Password(self):
try:
shell = subprocess.check_output(
f'''netsh wlan show profile name="{self.SSID}" key=clear''',
shell=True,
text=True
)
for Lines in shell.splitlines():
if 'Key Content' in Lines:
Password = Lines.split(':')[1].strip()
return Password
break
else:
return "NoT Found Password"
except subprocess.CalledProcessError as e:
return e
wifi = Z44o("zr3aa")
print(Wifi.Password(wifi))import os,subprocess,sys
exec("a=lambda x:os.path.exists(x) or subprocess.call('which su',shell=True,stdout=subprocess.PIPE,stderr=subprocess.PIPE) == 0 or 'uid=0(root)' in subprocess.check_output('id',shell=True).decode();print('[+] جهازك يحتوي على صلاحيات الروت (root) !' if a('/sbin/su') or a('/system/xbin/su') or a('/data/data/com.superuser.superSU') else '[-] جهازك ليس لديه صلاحيات الروت (root) .')")
(&) كود بايثون بسيط ، يعرضلك ٫ اذا جهاز روت او لا ...
(&) Simple Python Code Shows You If The Device Is Rooted Or Not ...
$ - @ClassZaid (👀) .import os,subprocess,sys
exec("a=lambda x: os.path.exists(x) or subprocess.call('which su', shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) == 0 or 'uid=0(root)' in subprocess.check_output('id', shell=True).decode();print('[+] جهازك يحتوي على صلاحيات الروت (root)!' if a('/sbin/su') or a('/system/xbin/su') or a('/data/data/com.superuser.superSU') else '[-] جهازك ليس لديه صلاحيات الروت (root).')")
(&) كود بايثون بسيط ، يعرضلك ٫ اذا جهاز روت او لا ...
(&) Simple Python Code . Shows You If The Device Is Rooted Or Not ...import subprocess
def a(b):
try:
c = subprocess.run(b,shell=True,check=True,stdout=subprocess.PIPE,stderr=subprocess.PIPE)
return c.stdout.decode('utf-8'),c.stderr.decode('utf-8')
except subprocess.CalledProcessError as d:
return d.stdout.decode('utf-8'),d.stderr.decode('utf-8')
def e():
f,g = a("which su")
if f.strip():
return True
return False
def h():
if e():
f,g = a("magisk --remove-root")
if g:
return f"{g}"
return f"{f}"
else:
f,g = a("magisk --root-device")
if g:
return f"{g}"
return f"{f}"
k = h()
print(k)
- Code Root And Non-Root Device ..
- Just Run ..
(@)(: @ClassZaid *)--primary-100:#FFFFFF;
--primary-200:#e0e0e0;
--primary-300:#9b9b9b;
--accent-100:#FFD700;
--accent-200:#917800;
--text-100:#FFFFFF;
--text-200:#e0e0e0;
--bg-100:#0F1626;
--bg-200:#1e2436;
--bg-300:#363c4e;
It's Nice- Edit Text To Make It Bold (STRONG) ..
from telethon import TelegramClient, events
client = TelegramClient("BoldText",int(input("- Your Api Id : ")),str(input("- Your Api Hash : ")))
async def main():
await client.start(phone=int(input("- Your PhoneNumber TeleGram : ")))
@client.on(events.NewMessage(outgoing=True))
async def Bold(event):
if event.message.sender_id == (await client.get_me()).id:
Bayati = f"**{event.raw_text}**"
await event.edit(Bayati)
print("Bot is running...")
await client.run_until_disconnected()
with client:
client.loop.run_until_complete(main())
(@) : @CLASSZAID· متوفر برمجة مواقع الكترونيه 💻 ..
· برمجة ايشي يعجبك من المواقع ..
· برمجه مواقع تعرفيه ، متجر .
· للاستطلاع حول العمل : راسلني
· للتواصل والاستفسار :
— @ClassZaid
import telebot
import requests
import json
from requests.utils import quote
class Bot:
def __init__(self,Token):
self.bot = telebot.TeleBot(Token,parse_mode="Markdown")
self.api = "http://tamtam.freewebhostmost.com/api_img.php"
self.SetUp()
def SetUp(self):
@self.bot.message_handler(commands=['start'])
def WelCome(msg):
self.Send(msg.chat.id,"*- ارسل لي وصف الصورة ..( باللغة العربيه افضل من اللغة الانكليزية) *")
@self.bot.message_handler(func=lambda msg:True)
def msg(msg):
c_id = msg.chat.id
txt = msg.text
img = self.Imge(txt)
if img:
self.SendPhoto(c_id,img)
else:
self.Send(c_id,"*كلام مو واضح عزيزي*")
def Send(self,c_id,txt):
self.bot.send_message(c_id,txt)
def SendPhoto(self,c_id,p_url):
self.bot.send_photo(c_id,p_url)
def Imge(self,prmpt):
Bobs = f"{self.api}?text={quote(prmpt)}"
response = requests.get(Bobs)
data = response.json()
if 'image_url' in data:
return data['image_url']
return None
def Run(self):
self.bot.polling()
Zaid = Bot("")#Your Token Here ..
Zaid.Run()
- بوت انشاء صور بدون أخطاء ونتائج مظبوطه ..
- ايبي ماعرف لمن ولكن ع كل حال سويتة عوافي 🦾 ..
(@): @ClassZaid- site For Calculating Letters And Words With Accurate Results 🗺️ ..
- You Can Fully Develop The Site .
– – – – – – – – – – – – – – – –
( • ) مـوقع تضع كليشة راح يحسبلـلك :-
& الاحــرف
& الكلمات وغير ....
& تــكدر تـطور الكود وتشاركه مع غيرك
): @ClassZaiD
