Questions tagged [Python] (11616)

1
answer

Is it possible to send a message from telegram bot to the user via the phone number, if he has not "had contact" with this bot?

Good time of day. Doing a little bot for local use (reminder-water colors, some household chores, because the head hole, everything falls out). Use the package for Python pyTelegramBotAPI and had a question. I have a web muzzle, where I set up all my reminders/business. Is it possible with this package to find the user tel...
Penelope.Abbott asked April 19th 20 at 12:44
2
answers

Whether I interpret the data?

I wondered how quickly spread the coronavirus in different countries. I wrote a script which shows the average percentage of new infected compared to the previous day. My goal: figure out how big a threat is a coronavirus for Russia. In Russia, the coronavirus is already 78 days. So I decided to take statistics over the la...
Hollie asked April 19th 20 at 12:44
1
answer

Not passed the security check python?

Wrote a simple checker accounts, he's using get request, parses the key , then through a post request enters the data Akka and sparsely key, add a proxy and a user agent after receipt 15K akkov. ACCA does not pass the security checks to get past this? The check goes to 200 threads code itself: from threading import Thread ...
eddie71 asked April 19th 20 at 12:44
2
answers

How to create a Minecraft 3D model in Python?

Hello! Roughly speaking, a minecraft skin png/jpg. From it in any way you need to make a 3D model also in png/jpg Example 3D models do not understand, wanted to use the external API, but is used by UUID or username (need a license). How to make a 3D model, in consequence, the image by means of Python?
cortez.Altenwerth92 asked April 19th 20 at 12:43
1
answer

How to start discord.py without creating your own class?

We know how to work with IPAS discord in the library discord.py we need to create a class and then start client = MyClient() client.run('token') But the question arises whether it is possible without creating a class to make a single request I just need to apesca to obtain the IDs of all users in the channel In the bot to...
amari_Kli asked April 19th 20 at 12:42
1
answer

How to insert text anywhere in the text of the document?

There is a text document And I need between the numbers 1 and 2, insert the text 'Python', just in case I will notice that places where you need to insert a word a lot, but they are static. How can I do that? Thank you
Adele.Heidenreich asked April 19th 20 at 12:42
1
answer

Class Fraction: how to add operations with whole numbers?

Good day! I wrote code to work with fractions: spoilerclass Fraction: def __init__(self, a, b): self.a = a self.b = b def __str__(self): return '{}/{}'.format(self.a, self.b) def __add__(self, other): return Fraction(self.a + other.a, self.b + other.b) def __sub__(self, other): return Fraction(self.a - other.a,...
zio asked April 19th 20 at 12:42
1
answer

Is it possible to make something like if I press for example NUMPAD 1 Included some audio for me and the person with whom am I speaking?

Is it possible to make something like if I press for example NUMPAD 1 Included some audio for me and the person with whom I talk (On the shell) ?
Marcus.McDermott asked April 19th 20 at 12:42
1
answer

How to track messages from the user Python 3 VK Vk api?

Hello Can't figure out how to track the message from the user in the VC bot on Python. Example: There is code: from vk_api.add import VkLongPoll, VkEventType from vk_api.keyboard import VkKeyboard, VkKeyboardColor from vk_api.utils import get_random_id import vk_api from datetime import datetime token = "5f4f65......9cabb1...
carey_Weber asked April 19th 20 at 12:41
1
answer

How to subscribe to an event from a process and to address specifically the data process in python 3?

Welcome! Decided to learn Python. Tell me how to subscribe to an event data change in the process? I tried something like this: import multiprocessing as mp import logging import time def foo(q): i = 1 while True: q.put({'yndx': i}) time.sleep(1) i += 1 if __name__ == '__main__': mp.log_to_stderr().setLevel(logging.D...
monserrat_Litt asked April 19th 20 at 12:41