#!/usr/bin/python3 import os import subprocess import sys import urllib.parse import datetime from datetime import date query = os.environ["QUERY_STRING"] if not query: print("10 Введите поисковый запрос и нажмите \"Enter\".") sys.exit() text = urllib.parse.unquote(query) print("20 text/gemini") #print("````") #print (text) print(subprocess.Popen(["ansiweather", "-F", "-u", "metric", "-a", "false", "-w", "true", "-p", "true", "-d", "true", "-s", "false", "-l" , text ], stdout=subprocess.PIPE).stdout.read()) #print("````")