Programming – Telegram
Programming
350 subscribers
501 photos
66 videos
50 files
186 links
سایت نداره این کانال اصلا
Download Telegram
👍2
image_2022-04-01_12-14-21.png
92.7 KB
توی اپدیت جدید stackoverflow میتونید تم سایت رو از منو پایین عوض کنید
👍5🥰1
فکر کنم قدیمیه
👍2
#fun ;P
تبدیل سشن تلگرام دسکتاپ به سشن تلتونی
شاید به کارتون بیاد
داخل داکیومنتش نوشته بود قابلیت تبدیل به سشن پایروگرام هم در اپدیت های بعدی اضافه میشه

# pip install opentele

from opentele.td import TDesktop
from opentele.tl import TelegramClient
from opentele.api import API, UseCurrentSession
import asyncio

async def main():
# Load TDesktop client from tdata folder
PATH = r"........"
tdesk = TDesktop(PATH)

# Check if we have loaded any accounts
assert tdesk.isLoaded()

# Convert TDesktop to Telethon using the current session.
SESSION_NAME = "PySrc.session"
client = await tdesk.ToTelethon(session="telethon.session", flag=UseCurrentSession)

# Connect and print all logged-in sessions of this client.
# Telethon will save the session to telethon.session on creation.
await client.connect()
await client.PrintSessions()

asyncio.run(main())

پ.ن: متغیر PATH مسیر پوشه tdata تلگرام دسکتاپ هست
👍41
Fr7gzjN-linux-wallpapers.jpg
125.7 KB
Windows #wallpaper
👎5👍2
wp1810641-mr-robot-wallpapers.jpg
158.2 KB
Mr. Robot #wallpaper
👎4👍3
LXLW6Yi-linux-walpaper.jpg
294.3 KB
👍3👎31
PyAutoGui is a useful library that allows you to take screenshots, Move the mouse, Click, Display message boxes, and so on...

You can install it through pip install pyautogui command.

Github: https://github.com/asweigart/pyautogui
Pypi: https://pypi.org/projects/PyAutoGui
👍5
Programming
اولین noscript: یک python noscript با قابلیت های زیر: - ترجمه کردن متن دریافتی به زبان های مختلف - تبدیل متن دریافتی به ویس با انتخاب جنسیت صدا توسط کاربر (میتونید تنظیمات دیگر مانند سرعت و volume رو هم از کاربر بگیرید) - تبدیل ویس دریافتی از کاربر به متن (اختیاری)…
دومین noscript:
یک ابزار به صورت commandline که یک ورودی از کاربر بگیره به عنوان domain سایت و هر اطلاعات به درد بخور رو که پیدا میکنه درباره اون سایت به user نشون بده (یعنی تقریبا همون whois)

Note:
استفاده از هر API و library آزاد هست و میتونید با هر زبان که میتونید بنویسید ولی تاکید روی زبان برنامه نویسی پایتون هست
بقیه الزامات هم مثل پست قبل.
تفاوت بین quit و exit؟
تفاوتی ندارن فقط در اسم گذاری تفاوت دارن؛ ولی معمولا quit خارج از حلقه ها و exit داخل حلقه ها استفاده میشه
6
🛠 installation:
pip install patool

📚 Documentation
2
how to start process in background on windows?
👍7
Programming
how to start process in background on windows?
You can use "pythonw" for Python noscripts
The noscript runs in the background and continues to work when you close the terminal
like:
>> pythonw main.py

reference
👍4👏2
Learn X in Y minutes:
https://learnxinyminutes.com/

A website that teaches you programming languages in a new and different way that you may like.
🔥2👍1
io is a useful module that allows you to save your data in memory through file-like objects (which makes it easy to use).

Documentation: https://docs.python.org/3/library/io.html

A helpful article: https://medium.com/swlh/python-stringio-and-bytesio-compared-with-open-c0e99b9def31
🔥3👍1