ملفات Pydroid+php
الاستضافة ما تقبل طلبات وبيها نظام حماية اذا api الك دزلي ملف اشغلة ع استضافة
ليش ماتدز انت الاستضافه
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 :