ادوات بايثون | Python Tools
Открыть в Telegram
3 159
Подписчики
+7624 часа
-1 1827 дней
-5 58130 дней
Архив постов
from datetime import datetime
import requests
def search_image_tineye(image_path):
url = "https://tineye.com/api/v1/result_json/"
headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36',
'Accept': 'application/json, text/plain, */*',
'Origin': 'https://tineye.com',
'Referer': 'https://tineye.com/search',
'Cookie': 'sort=score; order=desc; gc=175dd2d3-65e0-4a06-8670-b33ddcdc7709; tineye=JXrn__NsR4U79l44KX_Yl5hMHpY8XdFMXjW-UNiMspdk7kH4N3y4uRMvboR8Zz94K0iTPAi5XMm_DE0LwBr0Y_sTKe2w9E1bmAq0DtB5wFgzhyfRK7aa8Fc6uCutFhJMBdrVFLNuKV0vNiP20Azf0_p7kKqiCzoY-l3VChua6Ks_so1zuvf3e104P-D9GxyqN7tLmPDKdIhhlp89D4xJ7zMMvbfybU4F35A7olwl2vw1xcGPDiLpD8XlC9eM2NKR3MLPrp98YJDOlgAH3bqiz0lQ-6BsJPXQSGzr87xz5eUAZdI8tTh3jnYzx78UueQ7iMsAYw'
}
try:
with open(image_path, 'rb') as f:
files = {'image': f}
response = requests.post(url, headers=headers, files=files)
if response.status_code == 200:
data = response.json()
matches = data.get('matches', [])
if not matches:
print("No results found.")
return
all_results = []
for match in matches:
crawl_date_str = match.get('first_crawl_date')
if crawl_date_str:
crawl_date = datetime.strptime(crawl_date_str, "%Y-%m-%d")
domain = match.get('domain', 'Unknown')
backlink = match.get('backlinks', [{}])[0].get('backlink') if match.get('backlinks') else None
all_results.append({
'date': crawl_date,
'date_str': crawl_date_str,
'domain': domain,
'backlink': backlink
})
all_results.sort(key=lambda x: x['date'])
first_result = all_results[0]
last_result = all_results[-1]
print("="*40)
print(f"Number of results: {len(matches)}")
print("-"*40)
print("📅 First place the image appeared:")
print(f" Date: {first_result['date_str']}")
print(f" Website: {first_result['domain']}")
print(f" Link: {first_result['backlink']}")
print("-"*40)
print("📅 Last place the image appeared:")
print(f" Date: {last_result['date_str']}")
print(f" Website: {last_result['domain']}")
print(f" Link: {last_result['backlink']}")
print("="*40)
else:
print(f"error re: {response.status_code}")
print(response.text)
except Exception as e:
print(f"Error: {e}")
search_image_tineye("C:/Users/Userrrrr/Downloads/https___d1e00ek4ebabms.cloudfront.net_production_a83289ad-567a-4403-a536-099f3d376ce4.jpg")
Source: The image provides you with all its details, including the first place it was posted, the date of the first post, the image's hash code, and other details.from pyrogram import Client, filters
from yt_dlp import YoutubeDL
import os
api_id = 9028013
api_hash = "cc894fc40424f9c8bbcf06b7355bd69d"
bot_token = "توكن_بوتك"
app = Client("Ibrahim", api_id=api_id, api_hash=api_hash, bot_token=bot_token)
ydl_opts = {
'format': 'best',
'outtmpl': '%(title)s.%(ext)s',
}
@app.on_message(filters.command("start"))
async def start(client, message):
await message.reply("مرحبًا بك في بوت تنزيل من اليوتيوب ارسل رابط الفيديو لتنزيله")
@app.on_message(filters.text)
async def download_video(client, message):
url = message.text
with YoutubeDL(ydl_opts) as ydl:
info_dict = ydl.extract_info(url, download=True)
video_file = ydl.prepare_filename(info_dict)
await message.reply_video(video_file)
os.remove(video_file)
print("Runing...")
app.run()
سورس بوت تنزيل من اليوتيوب ينزل لحد 2G- بوت تحميل فديوهات ريلز انستغرام🌐
التشغيل !؟💎
- تـوكن بوتك سطر 4
- روح لبوتك حط /start
-دز رابط الريلز
import requests
import json
import os
from telegram import Update, InputFile
from telegram.ext import Application, CommandHandler, MessageHandler, filters, ContextTypes
BOT_TOKEN = "TOKEN"
app = Application.builder().token(BOT_TOKEN).build()
async def start(update: Update, context: ContextTypes.DEFAULT_TYPE):
welcome_message = """
اهلا في بوت تحويل نص الى كلام فقط الي عليك
تبعد اي نص سوف احوله الى كلام
"""
await update.message.reply_text(welcome_message, parse_mode='Markdown')
async def handle_text(update: Update, context: ContextTypes.DEFAULT_TYPE):
text = update.message.text
waiting_msg = await update.message.reply_text("⏳ جاري تحويل النص إلى صوت...")
try:
import urllib.request
import urllib.parse
encoded = urllib.parse.quote(text)
url = f"https://translate.google.com/translate_tts?ie=UTF-8&q={encoded}&tl=ar&client=tw-ob"
temp_file = f"voice_{update.effective_user.id}.mp3"
urllib.request.urlretrieve(url, temp_file)
with open(temp_file, 'rb') as audio:
await update.message.reply_voice(
voice=InputFile(audio),
caption=f"🔊 النص: {text[:50]}{'...' if len(text) > 50 else ''}"
)
os.remove(temp_file)
await waiting_msg.delete()
except Exception as e:
await waiting_msg.edit_text(f"❌ عذراً، حدث خطأ: {str(e)}\n\nيرجى المحاولة مرة أخرى بنص أقصر.")
async def help_command(update: Update, context: ContextTypes.DEFAULT_TYPE):
help_text = """
فقط ارسل نص للمحادث سوف احوله الى كلام
"""
await update.message.reply_text(help_text, parse_mode='Markdown')
app.add_handler(CommandHandler("start", start))
app.add_handler(CommandHandler("help", help_command))
app.add_handler(MessageHandler(filters.TEXT & ~filters.COMMAND, handle_text))
print("🚀 البوت يعمل الآن...")
app.run_polling()
افضل api يحول النص الى صوتصادو وما وصل صيد روحو على الملفات تلكونه ملف اسمة بي صيدكم
valid_accounts.txt
VPN FastSecure Premium 3.3.5
اقوي واسرع VPN في متجر بلاي من حيث سرعه الاتصال والامان وصدق البلاد
مصر / السعوديه / دبي/ فلسطين / عمان/...
ينافس NordVpn
تم فتح جميع السيرفرات المدفوعه وحذف الاعلانات
ثغرة توثيق انستا مجانا🎰
الطريقه بتوصل فيها ميزه البزنس بثواني
وبتحصل الشهر الماكس المجاني
بتجيب حسابك الي بدك توصله الميزه
بتدخل على Switch account
بتحول الحساب ل بزنس
في خيار ما هو محتوى الحساب
فنان/صانع محتوى/ الخخ..
اذا كنت عربي اختار
كنيسة القديس المسيح
واذا انجليزي بيكون في الفيديو مشروح
الطريقة لتوصيل ميزه البزنس حتا ل اصفار جديده
وتوصيل شهر بزنس ماكس مجاني
#منقول
🩸 تـم اخـتراق مـوقع تـرجمة 🩸
☄️ تم اختراق موقع ترجمة مدفوع يترجم +500 لغه بي ذكاء اصطناعي ☄️
😝✅@nnlnn1 ✅😝
#كلا_كلا_للمواقع_المدفوعة_🐱
#طيف_الساطي_هنا_⚠️
☄️اختـرقت الكم موقع ترجمه ذكاء اصطناعي يفيدكم كلش +500لغه على اساس اخترقته وطلعت كوده شوي وانشره☄️
