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.
Make sure you have Python installed. You can download it from the official Python website.
- This project was built against Python 3.12.4.
-
Clone the repository:
cd Tscreenshot
-
Install required libraries:
pip install pillow pysftp
- 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}/'
- Run the scrip periodically:
Configure the task scheduler of windows to run your screenshot capture.