pjmakey2 / Tscreenshot

Type screenshot and send it to an sftp server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tscreenshot

Screenshot to SFTP

This project captures a screenshot from your Windows system and uploads it to an SFTP server. The script leverages the Pillow library for capturing the screenshot and pysftp for handling the SFTP connection.

Prerequisites

Make sure you have Python installed. You can download it from the official Python website.

  • This project was built against Python 3.12.4.

Installation

  1. Clone the repository:

    cd Tscreenshot
    
  2. Install required libraries: pip install pillow pysftp

Configuration

  1. Settings:

Create a settings.py file in the project directory and specify your SFTP server details:

    # settings.py
    SFTP_USER = 'loquillo_sftp'
    SFTP_PASSWORD = 'SniffPicture'
    SFTP_HOST = '127.128.129.130'
    SFTP_PORT = '1238'
    TV_ID = 'vvtv'
    SFTP_REMOTE_PATH = f'/path/{TV_ID}/'
  1. Run the scrip periodically:

Configure the task scheduler of windows to run your screenshot capture.

About

Type screenshot and send it to an sftp server


Languages

Language:Python 100.0%