Клуб программистов
1.66K subscribers
217 photos
5 videos
75 files
189 links
Добро пожаловать в клуб программистов 👨‍💻👨‍💻

✔️ Сбор кодеров с инета ✔️

✅️ Здесь можно найти:

👨‍💻Исходники программ/игр на python + ссылки на тикток ролики
🗿IT мемы
🔺️Уведомления о новых роликах на ютуб канал

▪️реклама/сотрудни-во: @clb_prog
Download Telegram
:/
👍91👏1😱1
🎄Новогодняя игра на python:

import pygame
import random

pygame.init()

screen_width = 800
screen_height = 600
screen = pygame.display.set_mode((screen_width, screen_height))
pygame.display.set_caption("Новогодняя игра")

WHITE = (255, 255, 255)
RED = (255, 0, 0)
LIGHT_BLUE = (173, 216, 230)

santa_img = pygame.image.load("santa.png")
santa_img = pygame.transform.scale(santa_img, (100, 100))

gift_img = pygame.image.load("gift.png")
gift_img = pygame.transform.scale(gift_img, (50, 50))

snowman_img = pygame.image.load("snegovik.png")
snowman_img = pygame.transform.scale(snowman_img, (60, 60))

clock = pygame.time.Clock()
font = pygame.font.SysFont("comicsansms", 30)

santa_x = screen_width // 2
santa_y = screen_height - 120
santa_speed = 5

gifts = []
snowmen = []
score = 0
time_left = 30
game_over = False

def draw_text(text, x, y, color):
    text_surface = font.render(text, True, color)
    screen.blit(text_surface, (x, y))

while True:
    screen.fill(LIGHT_BLUE)

    for event in pygame.event.get():
        if event.type == pygame.QUIT:
            pygame.quit()
            quit()

    if not game_over:
        keys = pygame.key.get_pressed()
       
        if keys[pygame.K_LEFT] and santa_x > 0:
            santa_x -= santa_speed
        if keys[pygame.K_RIGHT] and santa_x < screen_width - 100:
            santa_x += santa_speed

        if random.randint(1, 100) <= 2:
            gift_x = random.randint(50, screen_width - 50)
            gifts.append([gift_x, 0])
        if random.randint(1, 100) <= 1:
            snowman_x = random.randint(50, screen_width - 50)
            snowmen.append([snowman_x, 0])

        for gift in gifts[:]:
            gift[1] += 5
            if gift[1] > screen_height:
                gifts.remove(gift)
            if santa_x < gift[0] + 50 and santa_x + 100 > gift[0] and santa_y < gift[1] + 50 and santa_y + 100 > gift[1]:
                gifts.remove(gift)
                score += 10

        for snowman in snowmen[:]:
            snowman[1] += 4
            if snowman[1] > screen_height:
                snowmen.remove(snowman)
           
            if santa_x < snowman[0] + 60 and santa_x + 100 > snowman[0] and santa_y < snowman[1] + 60 and santa_y + 100 > snowman[1]:
                game_over = True

        screen.blit(santa_img, (santa_x, santa_y))
       
        for gift in gifts:
            screen.blit(gift_img, (gift[0], gift[1]))

        for snowman in snowmen:
            screen.blit(snowman_img, (snowman[0], snowman[1]))

        draw_text(f"Очки: {score}", 20, 20, WHITE)
        draw_text(f"Время: {int(time_left)}s", screen_width - 200, 20, WHITE)
       
        time_left -= 1 / 60
        if time_left <= 0:
            game_over = True
    else:
        draw_text("Игра завершена!", screen_width // 3, screen_height // 2, RED)

    pygame.display.update()
    clock.tick(60)

Необходимые изображения для игры в комментариях

Ссылка на ролик: https://vt.tiktok.com/ZS6NNdmN4/
🎄61
📶 Менеджер вайфай сетей на python

Исходный код:

import subprocess
import platform

def get_available_networks():
    """Получает список доступных Wi-Fi сетей."""
    system = platform.system()
    networks = []
    if system == "Windows":
        result = subprocess.run(["netsh", "wlan", "show", "networks"], capture_output=True, text=True)
        output = result.stdout
        for line in output.split("\n"):
            if "SSID" in line:
                ssid = line.split(":")[1].strip()
                networks.append(ssid)
    elif system == "Linux":
        result = subprocess.run(["nmcli", "-t", "-f", "SSID", "dev", "wifi"], capture_output=True, text=True)
        output = result.stdout
        networks = [line.strip() for line in output.split("\n") if line.strip()]
    else:
        print("Эта функция не поддерживается на вашей ОС.")
    return networks


def connect_to_network(ssid, password):
    """Подключение к Wi-Fi сети."""
    system = platform.system()
    if system == "Windows":
        command = f'netsh wlan connect name="{ssid}" key="{password}"'
    elif system == "Linux":
        command = f'nmcli dev wifi connect "{ssid}" password "{password}"'
    else:
        print("Эта функция не поддерживается на вашей ОС.")
        return False
    result = subprocess.run(command, shell=True, capture_output=True, text=True)
    if result.returncode == 0:
        print(f"\nУспешно подключено к {ssid}.")
    else:
        print(f"\nОшибка подключения: {result.stderr}")


def show_saved_networks():
    """Отображает сохраненные сети и их пароли (только для Windows)."""
    system = platform.system()
    if system != "Windows":
        print("Это только для Windows.")
        return

    result = subprocess.run(["netsh", "wlan", "show", "profiles"], capture_output=True, text=True)
    profiles = [line.split(":")[1].strip() for line in result.stdout.split("\n") if "Все профили пользователей" in line]

    print("\nСохраненные сети и пароли:")
    for profile in profiles:
        result = subprocess.run(
            ["netsh", "wlan", "show", "profile", profile, "key=clear"],
            capture_output=True,
            text=True
        )
        output = result.stdout
        for line in output.split("\n"):
            if "Содержимое ключа" in line:
                password = line.split(":")[1].strip()
                print(f"SSID: {profile}, Пароль: {password}")
                break
        else:
            print(f"SSID: {profile}, Пароль не найден.")


def main():
    print("Менеджер Wi-Fi ===")
    while True:
        print("\n1. Показать доступные сети")
        print("2. Подключиться к сети")
        print("3. Показать сохраненные сети и пароли (только Windows)")
        print("4. Выход")
        choice = input("Выберите опцию: ")

        if choice == "1":
            networks = get_available_networks()
            print("\nДоступные сети:")
            for i, ssid in enumerate(networks, 1):
                print(f"{i}. {ssid}")
        elif choice == "2":
            ssid = input("\nВведите имя сети (SSID): ")
            password = input("\nВведите пароль: ")
            connect_to_network(ssid, password)
        elif choice == "3":
            show_saved_networks()
        elif choice == "4":
            print("Выход...")
            break
        else:
            print("\nНеверный выбор, попробуйте снова.")


if name == "main":
    main()


Ссылка на ролик: https://vt.tiktok.com/ZS6Y8uK4y/
👍4👾2
🦠 Прикольный вирус на python

Исходный код:

import tkinter as tk
import random
import threading
import time
import pyautogui

def create_popup():
    messages = [
        "Система перегружена!",
        "всё под контролем?",
        "ПК захвачен!",
        "хаос",
        "Ошибка...",
    ]
    while True:
        x = random.randint(0, pyautogui.size().width - 200)
        y = random.randint(0, pyautogui.size().height - 100)
        popup = tk.Tk()
        popup.geometry(f"200x100+{x}+{y}")
        popup.overrideredirect(1)
        label = tk.Label(popup, text=random.choice(messages), font=("Arial", 12), fg="white", bg="black")
        label.pack(expand=True, fill="both")
        popup.after(2000, popup.destroy)
        popup.mainloop()

def move_mouse():
    while True:
        x = random.randint(0, pyautogui.size().width)
        y = random.randint(0, pyautogui.size().height)
        pyautogui.moveTo(x, y, duration=0.5)
        time.sleep(random.uniform(0.5, 1.5))

def resize_window():
    while True:
        width = random.randint(200, 800)
        height = random.randint(200, 600)
        x = random.randint(0, pyautogui.size().width - width)
        y = random.randint(0, pyautogui.size().height - height)
        window = tk.Tk()
        window.geometry(f"{width}x{height}+{x}+{y}")
        window.overrideredirect(1)
        frame = tk.Frame(window, bg=random.choice(["red", "blue", "green", "yellow", "purple", "orange"]))
        frame.pack(expand=True, fill="both")
        window.after(1500, window.destroy)
        window.mainloop()

def random_text():
    while True:
        x = random.randint(0, pyautogui.size().width - 300)
        y = random.randint(0, pyautogui.size().height - 100)
        text = tk.Tk()
        text.geometry(f"300x100+{x}+{y}")
        text.overrideredirect(1)
        label = tk.Label(
            text,
            text=random.choice(["Что с системой?!", "Проверь систему!", "Вирус!", "Всё под контролем"]),
            font=("Arial", 16),
            fg="black",
            bg=random.choice(["white", "lightgrey"]),
        )
        label.pack(expand=True, fill="both")
        text.after(2000, text.destroy)
        text.mainloop()

def screen_flash():
    while True:
        flash = tk.Tk()
        flash.geometry(f"{pyautogui.size().width}x{pyautogui.size().height}+0+0")
        flash.overrideredirect(1)
        frame = tk.Frame(flash, bg=random.choice(["red", "blue", "black", "yellow", "purple", "green"]))
        frame.pack(expand=True, fill="both")
        flash.after(300, flash.destroy)
        flash.mainloop()
        time.sleep(random.uniform(0.8, 1.5))

def ghost_cursor():
    while True:
        x = random.randint(0, pyautogui.size().width)
        y = random.randint(0, pyautogui.size().height)
        ghost = tk.Tk()
        ghost.geometry(f"20x20+{x}+{y}")
        ghost.overrideredirect(1)
        label = tk.Label(ghost, bg="white")
        label.pack(expand=True, fill="both")
        ghost.after(500, ghost.destroy)
        ghost.mainloop()

if name == "main":
    threading.Thread(target=create_popup, daemon=True).start()
    threading.Thread(target=move_mouse, daemon=True).start()
    threading.Thread(target=resize_window, daemon=True).start()
    threading.Thread(target=random_text, daemon=True).start()
    threading.Thread(target=screen_flash, daemon=True).start()
    threading.Thread(target=ghost_cursor, daemon=True).start()

    while True:
        time.sleep(1)


Ссылка на ролик: https://vt.tiktok.com/ZS6j17NKY/
👾4👍31🙏1
:)
👍7😁2❤‍🔥1
🐙 Майнкрафт кликер на python

Исходник:

import pygame
import time

pygame.init()

WIDTH, HEIGHT = 800, 600
BACKGROUND_COLOR = (255, 255, 255)
BLOCK_SIZE = 180
FONT_SIZE = 48
JUMP_DURATION = 0.3
JUMP_HEIGHT = 30
TEXT_COLOR = (0, 0, 0)

block_image = pygame.image.load('block.webp')
block_image = pygame.transform.scale(block_image, (BLOCK_SIZE, BLOCK_SIZE))

screen = pygame.display.set_mode((WIDTH, HEIGHT))
pygame.display.set_caption("Кликер")

font = pygame.font.SysFont(None, FONT_SIZE)

class Game:
    def init(self):
        self.points = 0
        self.last_click_time = time.time()
        self.jumping = False
        self.jump_start_time = 0
        self.jump_offset = 0

    def click(self, pos):
        block_rect = pygame.Rect((WIDTH // 2) - (BLOCK_SIZE // 2), HEIGHT // 2 - (BLOCK_SIZE // 2), BLOCK_SIZE, BLOCK_SIZE)
        if block_rect.collidepoint(pos):
            self.points += 1
            self.jumping = True
            self.jump_start_time = time.time()
            self.jump_offset = 0

    def draw(self):
        screen.fill(BACKGROUND_COLOR)

        if self.jumping:
            elapsed_time = time.time() - self.jump_start_time
            if elapsed_time < JUMP_DURATION:
                self.jump_offset = JUMP_HEIGHT * (1 - (elapsed_time / JUMP_DURATION))
            else:
                self.jumping = False

        block_rect = pygame.Rect((WIDTH // 2) - (BLOCK_SIZE // 2), HEIGHT // 2 - (BLOCK_SIZE // 2) - self.jump_offset, BLOCK_SIZE, BLOCK_SIZE)
        screen.blit(block_image, block_rect)

        points_text = font.render(f"Очки: {self.points}", True, TEXT_COLOR)
        screen.blit(points_text, (WIDTH // 2 - points_text.get_width() // 2, 50))

        pygame.display.update()

def main():
    game = Game()

    while True:
        for event in pygame.event.get():
            if event.type == pygame.QUIT:
                pygame.quit()
                return

            if event.type == pygame.MOUSEBUTTONDOWN:
                if event.button == 1:
                    game.click(event.pos)

        game.draw()
        pygame.time.delay(30)

if name == "main":
    main()

Изображение для кликера в комментариях

Ссылка на ролик: https://vt.tiktok.com/ZS6MTfA3w/
👍3👾2
После того, как вы вставите какой либо исходник из этого канала, у вас будет ошибка с отступами, которые приходится либо исправлять вручную, либо с помощью chatgpt.

Теперь, чтобы решить эту проблему, я буду публиковать исходники не текстом, а файлом )
❤‍🔥4👍1
Ну спасибо..
👏8👍3
test (2).py
2.1 KB
Исходный код

🗣 Голосовой переводчик на python

Ссылка на ролик: https://vt.tiktok.com/ZS6k3y6Wv/
5👍1
Вот и завершается 2024 год..

Желаю вам в новом году достичь, ну или хотя бы приблизиться к достижению ваших целей, будь то в программировании или в каком либо другом деле )

🎄
🎄113
test (4).py
2.1 KB
Исходный код

Проверка веб-камеры на слежку с помощью python

Ссылка на ролик: https://vt.tiktok.com/ZS6UN7sLt/
👍6
💘74👍2
main.py
2.8 KB
Исходный код

Проверка ссылки на взлом-фишинг с помощью python

Ссылка на ролик: https://vt.tiktok.com/ZS6PeP3PR/
❤‍🔥5👍1
Чел на протяжении 14 минут ноет, что на линуксе нужно уметь пользоваться терминалом:
🤯11😁3🗿2😐1
main (1).py
1.2 KB
Исходный код

🥬 Прикольный кейлоггер на python

Ссылка на ролик: https://vt.tiktok.com/ZS6adRcUJ/
🔥5👍21
n.py
1.8 KB
Исходный код

📁 Программа для восстановления удалённых файлов на python

Ссылка на ролик: https://vt.tiktok.com/ZS6uWdgwc/
👍6❤‍🔥1
check.py
2.7 KB
Исходный код ⬆️

Проверка ПК на майнеры с помощью python
6👍1
info.py
3.4 KB
Исходный код

▶️ Программа для получения информации о вайфай сети на python

Ссылка на ролик: https://vt.tiktok.com/ZS6xQ1XST/
👍4🆒21🗿1
🤯8🌚2👀1
t.py
795 B
Исходный код ⬆️

📷 Переводчик с фото на python

Ссылка на ролик: https://vt.tiktok.com/ZS6VCJphv/
6👍2