Skip to content
This repository was archived by the owner on Mar 21, 2025. It is now read-only.

botprod/BOTPROD-COUB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Coub-bot

https://t.me/botpr0d

To get query_id from Pyrogram sessions you should use this repo -> https://github.com/botprod/get_query_id

Overview

Bot for https://t.me/coub/app?startapp=coub__marker_29720096

Project Structure

project/
|
├── main.py                   # Main script to execute tasks
├── coub.py                   # API interaction logic with Coub
├── utils/                    # Utility modules
│   ├── file_loader.py        # Functions for loading data from files
│   ├── parser.py             # Logic for parsing queries
│   ├── logger.py             # Logging functions
│   └── session_manager.py    # Session management, including proxies and headers
|
├── data/                     # Data storage
│   ├── coub_query.json       # JSON file with Coub queries
│   ├── task.json             # JSON file with tasks
│   ├── proxy.txt             # File with proxy addresses
│   └── sessions.json         # JSON file for storing session details
|
├── requirements.txt          # Project dependencies
└── .gitignore                # Git ignore rules

Setup Instructions

  1. Clone the repository:
    git clone <repository-url>
  2. Navigate to the project directory:
    cd project
  3. Create a virtual environment:
    python -m venv venv
  4. Activate the virtual environment:
    • On Linux/Mac:
      source venv/bin/activate
    • On Windows:
      venv\Scripts\activate
  5. Install the dependencies:
    pip install -r requirements.txt

Usage

  • Before running the script, ensure that all necessary data files are in place, such as coub_query.json and proxy.txt in the data/ folder.
  • To start the script, run:
    python main.py
  • During execution, the script will:
    1. Ping a server to verify the proxy is working.
    2. Generate session details, including headers and proxies, and save them in sessions.json.
    3. Compare current queries with those stored in sessions.json to identify new entries.
    4. Log proxy status, including failure information if proxies are not functioning.

File Descriptions

  • main.py: The main file that handles task execution, user interactions, and session verification.
  • coub.py: Contains the logic for interacting with the Coub API (e.g., logging in, claiming rewards, etc.).
  • file_loader.py: Utility file for loading data from JSON or text files.
  • parser.py: Parses user query data to extract meaningful information.
  • logger.py: Adds timestamped log messages to help with debugging.
  • session_manager.py: Manages sessions, including generation of headers, proxy verification, and session storage.

About

Bot for Coub

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages