import asyncio
from edge_tts import Communicate
from io import BytesIO
#voice="ar-AE-FatimaNeural" انثى اماراتيه
#voice="ar-AE-HamdanNeural" رجل اماراتي
async def text2speech(text, voice="ar-AE-HamdanNeural"):
communicate = Communicate(text=text,
voice=voice,
rate="+10%",
volume="+50%",
pitch="+7Hz")
audio_stream = BytesIO()
async for ch in communicate.stream():
if ch["type"] == "audio":
audio_stream.write(ch["data"])
audio_stream.seek(0)
return audio_stream
async def m(text):
aud_bytes = await text2speech(text)
print(f"'طول البايتات ': {len(aud_bytes.getvalue())}")
text = "محمد الزعيم رقم واحد"
asyncio.run(m(text))
pip install edge_tts
: تحويل الكتابة الى صوت بالذكاء الاصطناعي بأستخدام مكتبة edge_tts :
Ch : @LL_PHP :
By : @xZaeem :
⚡2❤1
import requests
url = ""
response = requests.post("https://www.clipto.com/api/youtube",
json={"url": url})
print(response.json())
: Api تحميل من جميع المواقع :
: خلي رابط من اي موقع يحمل منه :
Ch : @LL_PHP :
By : @xZaeem :
🔥3
import requests
r = requests.get("http://api.smtv.uz/ai/?text=احبك").json()
print(r['answer'])
❤1
import requests
from bs4 import BeautifulSoup
url ='tik tok url'
m = requests.post("https://tiksave.io/api/ajaxSearch",
data={
'q':url ,
'lang': 'ar'
}).content
soup = BeautifulSoup(m, 'html.parser')
medias = [
a['href'].replace('"', '').replace('\\', '')
for a in soup.find_all("a", href=True)
]
print(medias)
: تحميل فيد و mp3 تيك توك :
❤2
import requests
url = ''
response = requests.post(
"https://getindevice.com/wp-json/aio-dl/video-data/",
data={'url': url},
headers={
'Origin':
'https://getindevice.com/',
'Referer':
'https://getindevice.com/',
'User-Agent':
'Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Mobile Safari/537.36'
})
print(response.json())
: تنزيل من جميع مواقع :
❤3
import requests
url = ''
response = requests.post("https://samrt-loader.com/kydwon/api/addfile",
data={'file_name': url})
print(response.json())
: اتصال تحميل من يوتيوب وچم موقع :
: ينطي رابط تخزين بالموقع مو رابط گوگل :
: بس شوي بي تأخير :
: @LL_PHP :
from rembg import remove
from PIL import Image
import io
def removebackground(image_path, format="PNG"):
with open(image_path, "rb") as f:
input_data = f.read()
output_data = remove(input_data)
img_rgba = Image.open(io.BytesIO(output_data)).convert("RGBA")
byte_io = io.BytesIO()
img_rgba.save(byte_io, format=format)
byte_io.seek(0)
return byte_io.getvalue()
input_file = 'a.jpeg'
image_bytes = removebackground(input_file, format="PNG")
print(f"الحجم: {len(image_bytes)} بايت.")
: Remove Background of Images :
pip install rembg
: @LL_PHP :
❤3
<?php
header("Content-Type: application/json; charset=UTF-8");
function tiktok($url){
$ch = curl_init('https://downloader.bot/api/tiktok/info');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode(array("url"=>$url)));
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Accept: application/json, text/plain, */*',
'Content-Type: application/json',
'User-Agent: Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Mobile Safari/537.36',
'Referer: https://downloader.bot/ru'
));
$response = json_decode(curl_exec($ch),true);
$array = array("video"=>$response['data']['mp4']);
return $array;
curl_close($ch);
}
if($_GET['url']==null){
echo "Url kiriting!";
}else{
$data = tiktok($_GET['url']);
echo json_encode($data,JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);
}
?>
تحميل تيك توك Api
import requests
url = "https://chatgpt5free.com/wp-admin/admin-ajax.php"
message = 'كول محمد تاج راسي'
res = requests.post(url, data={'action': 'ai_chat', 'message': message})
data_message = res.json()['data']['message']
print(data_message)
: Api ذكاء اصطناعي ساحبه من موقع ميوگف :
: @LL_PHP :
import requests, json
c = []
try: c = json.load(open("chat.json"))
except: pass
while 1:
m = input("> ")
c.append({"role":"user","msg":m})
t = "\n".join(f"{i['role']}: {i['msg']}" for i in c)
r = requests.post("https://chatgpt5free.com/wp-admin/admin-ajax.php",data={'action':'ai_chat','message':t}).json()['data']['message']
c.append({"role":"ai","msg":r})
print(r)
json.dump(c, open("chat.json","w"), ensure_ascii=0)
كود الذكاء الاصطناعي صار يتذكر المحادثه تكدر تسوي بوت ويخزن لكل مستخدم.
🥰6
import requests, json
from bs4 import BeautifulSoup
q = input("اكتبلي نص البحث . ")
r = requests.get("https://rafed.net/media/audios", params={"q": q}, headers={"user-agent": "Mozilla/5.0"})
s = BeautifulSoup(r.text, "html.parser")
out = []
for i in s.select(".title"):
a = i.find("a")
d = i.find_next("a", href=lambda x: x and x.endswith(".mp3"))
if a and d:
out.append({"title": a.text.strip(), "url": d["href"]})
for item in out:
print(json.dumps(item, ensure_ascii=False, indent=2))
كود هدية الئ الشيعة يحمل حسيني فقط تكدر تسوي بوت يطلب نص البحث ويدزلك عنوان الصوتيه ورابط الصوت mp3 .
👎9❤5🔥1🥰1
رابط بث الجزيرة
https://live-hls-web-aja-fa.thehlive.com/AJA/06.m3u8
رابط بث العربية الاسرائيلية
https://live.alarabiya.net/alarabiapublish/alarabiya.smil/alarabiapublish/alarabiya_240p/chunks.m3u8
https://live-hls-web-aja-fa.thehlive.com/AJA/06.m3u8
رابط بث العربية الاسرائيلية
https://live.alarabiya.net/alarabiapublish/alarabiya.smil/alarabiapublish/alarabiya_240p/chunks.m3u8
import requests, json
from bs4 import BeautifulSoup
video_url = input("انطيني رابط الفيديو").strip()
r = requests.post('https://youtubetotranscript.com/transcript', data={'youtube_url': video_url})
soup = BeautifulSoup(r.text, 'html.parser')
data = {}
title = soup.find(attrs={"data-ph-capture-attribute-title": True})
channel = soup.find(attrs={"data-ph-capture-attribute-author-name": True})
if title: data['العنوان'] = title['data-ph-capture-attribute-title']
if channel: data['القناة'] = channel['data-ph-capture-attribute-author-name']
transcript_div = soup.find('div', id='transcript')
if transcript_div:
data['الترجمة'] = "\n".join(s.get_text(strip=True) for s in transcript_div.find_all('span', class_='transcript-segment'))
print(json.dumps(data, ensure_ascii=False, indent=2))
ملخص فيديو يوتيوب ينطيك ترجمة الفيديو يعني سريع كلش. تكدر تسوي بوت حلو
❤3
import requests
URL = "https://backend.buildpicoapps.com/aero/run/llm-api?pk=v1-Z0FBQUFBQm5IZkJDMlNyYUVUTjIyZVN3UWFNX3BFTU85SWpCM2NUMUk3T2dxejhLSzBhNWNMMXNzZlp3c09BSTR6YW1Sc1BmdGNTVk1GY0liT1RoWDZZX1lNZlZ0Z1dqd3c9PQ=="
system_prompt = "انت ذكاء اصطناعي اسمه احمد ترد باللهجة العراقية مو بالفصحى وطريقتك بالرّد تكون رومانسية وتتغزّل بالناس"
while (m := input("→ ").strip()):
full_prompt = f"{system_prompt}\n\n{m}"
r = requests.post(URL, json={"prompt": full_prompt}, headers={"Content-Type": "application/json"}, timeout=15)
r.raise_for_status()
j = r.json()
if j.get("status") == "success":
print(j.get("text"))
كود ذكاء اصطناعي دائمي مايتوقف تكدر تعلم الكود شنو يكول ويعرف كلشي ذكي تكدر مثل تكله انت من بغداد انت هيج اسمك ومطورك هيج اسمه وراح يفهم. هسه نشوف خماطين التلي ينشرون الكود بدون ذكر مصدر 🤣.
+ تكدر تسوي بوت يخبل بالكود
@LL_php
❤6👍1😁1