135201
You will be muted until you read the rules. Read them! @Rules_for_Python A group about the Python programming language. Offtopic things go here: @pythonofftopic Resources to learn python: @pythonres Group for Hy: @hylang Selenium: @SeleniumPython
If the processing is CPU intensive, you should have a look at the multiprocessing module. You'll need a list of arguments rather than a list of functions.
Читать полностью…
Suchst du einen Zuverlässigen Coke und weed Lieferrant dan bist du bei Mir 100% Richtig.✅
Bei uns bekommst du das beste coke und weed mit den Besten Preissen und qualität.❄️1️⃣
Innerhalb 25 min Nachhause gelieferrt.🚚
Coke Weed
0,5 40€ 5g 40€
1g 80€ 10g 80€
1,5g 120€ 15g 120€
2,5g 190€ 20g 150€
Speed Keta
10g 40€ 1g 40€
20g 80€ 2g 70€
Für eine bestellung Schreib Mir eine Nachricht Auf whatsapp +4915736637030
✅✅✅✅✅✅✅✅✅✅✅✅
Help with Research on Python Security 🔐
I'm Reem Almutairi, a Ph.D. student at King Saud University. I'm studying security vulnerabilities in Python, and I need your help!
If you work with Python and know about security, please take this 10-minute survey 👉 [ https://n9.cl/2ow2c ]
Feel free to share this with others who can contribute!
Thanks for your support! 🙌
import asyncioЧитать полностью…
from telethon import TelegramClient, events
# Replace with your own API ID and hash
api_id = 0
api_hash = ""
# Create a new Telegram client
client = TelegramClient('session', api_id, api_hash)
# Lists of keywords and phrases to monitor
keywords = [
'search', 'homework', 'assignments', 'research', 'projects',
# ... other keywords
]
blacklist = [
'966', '967', 'needs someone', 'needs a doctor',
# ... other blacklisted phrases
]
# Replace with the actual target channel ID
target_channel_id = 0
# Replace with the actual admin user ID
admin_user_id = 0
# Function to extract user information
async def get_user_info(sender):
# ... implementation
pass
# Function to extract chat information
async def get_chat_info(chat):
# ... implementation
pass
# Function to prepare a message to be sent
async def prepare_message(message, user_display, user_id, chat_display, chat_id, message_link):
# ... implementation
pass
# Event handler for new messages
@client.on(events.NewMessage)
async def handler(event):
# ... implementation
pass
# Event handler for managing keywords
@client.on(events.NewMessage(pattern='^/manage_keywords'))
async def manage_keywords(event):
# ... implementation
pass
This is a tutorial to develop a telegram bot using python
https://youtube.com/playlist?list=PLksYsb8msTuicMRcbXTwfOLO4KmTOLybW
How could we say it without knowing what exactly you did? Is it even something related to python?
Читать полностью…
Hello everyone, I have a question? "Why aren't product photos showing on the site? The photos are uploaded to Google Drive, and the links are added to Google Sheet. WHO KNOWS PLEASE HELP. THANK YOU IN ADVANCE.
Читать полностью…
Traceback (most recent call last):
File "c:\Users\gsnpo\.vscode\.vscode\Untitled-1.py", line 7, in <module>
R = int( s , 2 )
^^^^^^^^^^^^
TypeError: int() can't convert non-string with explicit base
PS C:\Users\gsnpo\.vscode>
To solve the problem, we need to find the smallest natural number N such that after processing it according to the given algorithm, the resulting number R in binary is at least 26. 2. Determine the conditions based on the number of significant digits:
• If the number of significant digits is even, we will insert a '1' in the middle.
• If the number of significant digits is odd, we will keep the binary representation unchanged.
Since 26 has an odd number of significant digits (5), we need to check binary representations of numbers N until we find one that gives us a binary representation of R that is at least 11010.
for N in range (1, 100):
s = bin(N)[2:]
if N % 2 == 0:
s = s + "1" + s
else:
s = s.count("1") % 3 == 0
R = int( s , 2 )
if R >= 26:
print(N,R)
why this code not working ???
Please how do I set up my pycharm with selenium so that I can a creat a auto click which will be able to detect what I want it to click
Читать полностью…
I think I can use loop for defining a list of functions
Читать полностью…
What I mean is that you may want to limit the amount of functions running at any time so that the machine can keep up with the work.
Читать полностью…
❗️ Message from Reem [1479798439] was reported to the admins.
I need to structure the code and develop it to handle the largest number of incoming messages.
Also, the problem with the code is that it cannot determine the user name and user ID and attach them to the message, confusing the ID with the user.
No, use a pool of workers and delegate tasks to each one available, until all tasks are finished
Читать полностью…
hello. Is it real to run parallel script, if I don't know how many functions will be run? It will be depends on rows' amount in database, which will be increasing
Читать полностью…
This group is to help you on specific issues you have on YOUR code, so you have to show the code you wrote and explain where and why you are stuck... as simple as that
Читать полностью…
I wrote the iogram bot in Python. when I send photos to the bot, it uploads them to Google Drive, gets a direct link to the photo and sends it to Google Sheet from Google Sheet to the site, but the site does not display the image
Читать полностью…
Is it because, it's an integer and integer cannot be put in quotation ?
Читать полностью…
This is not a Python specific question, please delete your offtopic message, move to @PythonOfftopic and ask there.
Читать полностью…