{"id":22951567,"url":"https://github.com/lifailon/selenium-modules","last_synced_at":"2025-08-13T00:32:49.416Z","repository":{"id":200984097,"uuid":"706669468","full_name":"Lifailon/Selenium-Modules","owner":"Lifailon","description":"Modules for free use (without using API) ChatGPT, Text Translation and SpeedTest.","archived":false,"fork":false,"pushed_at":"2024-01-19T14:14:36.000Z","size":31819,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"rsa","last_synced_at":"2024-04-26T21:21:31.708Z","etag":null,"topics":["ai","api","chatgpt","chatgpt-api","chatgpt-free","deepl","devops","devops-tools","devtools","free-api","google-translate","noapi","openapi","powershell","selenium","speedtest","translation","translation-api","windows"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Lifailon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-10-18T12:00:52.000Z","updated_at":"2024-04-19T11:50:52.000Z","dependencies_parsed_at":"2023-10-19T12:46:10.954Z","dependency_job_id":"fc88c588-621f-4d8c-95e6-3fd1206e98fc","html_url":"https://github.com/Lifailon/Selenium-Modules","commit_stats":null,"previous_names":["lifailon/get-gpt","lifailon/selenium-openapi","lifailon/selenium-modules"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lifailon%2FSelenium-Modules","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lifailon%2FSelenium-Modules/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lifailon%2FSelenium-Modules/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lifailon%2FSelenium-Modules/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Lifailon","download_url":"https://codeload.github.com/Lifailon/Selenium-Modules/tar.gz/refs/heads/rsa","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229717730,"owners_count":18113400,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","api","chatgpt","chatgpt-api","chatgpt-free","deepl","devops","devops-tools","devtools","free-api","google-translate","noapi","openapi","powershell","selenium","speedtest","translation","translation-api","windows"],"created_at":"2024-12-14T15:16:49.661Z","updated_at":"2024-12-14T15:16:50.244Z","avatar_url":"https://github.com/Lifailon.png","language":"PowerShell","readme":"# Selenium-Modules\n\n![Image alt](https://github.com/Lifailon/Selenium-Modules/blob/rsa/Images/logo.jpg)\n\nModules in base **Selenium 💚 via 💙 PowerShell** for free use (without API) **ChatGPT, Text Translation and Internet SpeedTest**.\n\n## 🚀 Quick start\n\nTo install or update all dependencies (browser Chromium and drivers), use the command for [deployment](https://github.com/Lifailon/Deploy-Selenium):\n\n```PowerShell\nInvoke-Expression(New-Object Net.WebClient).DownloadString(\"https://raw.githubusercontent.com/Lifailon/Deploy-Selenium/rsa/Deploy-Selenium-Drivers.ps1\")\n```\n\n## ChatGPT\n\n\u003e ⚠️ In the example, the server ChatGPT no longer works. A **new repository [GPT-to-Code](https://github.com/Lifailon/GPT-to-Code)** created to work with different AI models.\n\n🐥 The idea is that if you can't get an API key, you can use a third-party 🙏 **[free Chat-GPT web interface](https://chatg.io)** that doesn't require authorization to be able to implement the interface for your scripts or just chat with the bot in the PowerShell console.\n\n### 🚀 Install module Get-GPT\n\nTo install the module in the default PowerShell modules directory, run the command in your console:\n\n```PowerShell\nInvoke-RestMethod https://raw.githubusercontent.com/Lifailon/Selenium-Modules/rsa/Modules/Get-GPT/Get-GPT.psm1 | Out-File -FilePath \"$(New-Item -Path \"$($($Env:PSModulePath -split \";\")[0])\\Get-GPT\" -ItemType Directory -Force)\\Get-GPT.psm1\" -Force\n```\n\n### 🎉 Example Get-GPT\n\n```PowerShell\nPS C:\\Users\\lifailon\u003e Import-Module Get-GPT\n\nPS C:\\Users\\lifailon\u003e Get-GPT \"Исполняй роль калькулятора. Посчитай сумму чисел: 22+33\"\nКонечно! Сумма чисел 22 и 33 равна 55. Чем еще я могу помочь?\n\nPS C:\\Users\\lifailon\u003e Get-GPT \"Исполняй роль интерпретатора PowerShell. Выведи результат команды: Write-Host $(22+33)\"\nКонечно! Вот результат выполнения команды \"Write-Host 55\":\n55\n\nPS C:\\Users\\lifailon\u003e Get-GPT \"Исполняй роль переводчика. Переведи текст на русский язык: Hi! How can I help you?\"\nПривет! Как я могу тебе помочь?\n\nPS C:\\Users\\lifailon\u003e Get-GPT \"Напиши код на языке PowerShell, который позволяет получить прогноз погоды\"\nКонечно! Вот пример кода на языке PowerShell, который использует API OpenWeatherMap для получения прогноза погоды:\n# Установка модуля Invoke-RestMethod, если необходимо\nif (-not (Get-Module -ListAvailable -Name 'PowerShellGet')) {\n    Install-PackageProvider -Name 'NuGet' -Force\n}\nif (-not (Get-Module -ListAvailable -Name 'PackageManagement')) {\n    Install-Module -Name 'PackageManagement' -Force\n}\nif (-not (Get-Module -ListAvailable -Name 'PowerShellGet')) {\n    Install-Module -Name 'PowerShellGet' -Force\n}\nif (-not (Get-Module -ListAvailable -Name 'Invoke-RestMethod')) {\n    Install-Module -Name 'Invoke-RestMethod' -Force\n}\n\n# Замените 'YOUR_API_KEY' на ваш ключ API OpenWeatherMap\n$apiKey = 'YOUR_API_KEY'\n\n# Замените 'CITY_NAME' на название города, для которого нужен прогноз погоды\n$city = 'CITY_NAME'\n\n# Формирование URL-запроса к API OpenWeatherMap\n$url = \"http://api.openweathermap.org/data/2.5/weather?q=$city\u0026appid=$apiKey\"\n\n# Получение данных о погоде через API\n$response = Invoke-RestMethod -Uri $url\n\n# Извлечение нужной информации из ответа API\n$temperature = $response.main.temp\n$description = $response.weather[0].description\n\n# Вывод информации о погоде\nWrite-Host \"Текущая температура в городе $city: $temperature градусов Цельсия\"\nWrite-Host \"Описание погоды: $description\"\nНе забудьте заменить 'YOUR_API_KEY' на ваш собственный ключ API OpenWeatherMap и 'CITY_NAME' на название города, для которого вы хотите получить прогноз погоды. После запуска скрипта, вы увидите текущую температуру и описание погоды\n```\n\n![Image alt](https://github.com/Lifailon/Selenium-Modules/blob/rsa/Images/gpt-example.gif)\n\n## Text Translation\n\nTranslation text directly in the PowerShell console.\n\nThe module uses 2 providers to choose from:\n\n- **[DeepL](https://www.deepl.com/translator)**\n- **[Google](https://translate.google.fi)**\n\n### 🚀 Install module Get-Translation\n\n```PowerShell\nInvoke-RestMethod https://raw.githubusercontent.com/Lifailon/Selenium-Modules/rsa/Modules/Get-Translation/Get-Translation.psm1 | Out-File -FilePath \"$(New-Item -Path \"$($($Env:PSModulePath -split \";\")[0])\\Get-Translation\" -ItemType Directory -Force)\\Get-Translation.psm1\" -Force\n```\n\n### 🎉 Example Get-Translation\n\n```PowerShell\nPS C:\\Users\\lifailon\u003e Get-Translation -Provider DeepL -Text \"I translating the text\"\nЯ перевожу текст\n\nPS C:\\Users\\lifailon\u003e Get-Translation -Provider DeepL -Text \"Я перевожу текст\"\nI'm translating the text\n\nPS C:\\Users\\lifailon\u003e Get-Translation -Provider Google -Text \"I translating the text\"\nЯ переводил текст\n\nPS C:\\Users\\lifailon\u003e Get-Translation -Provider Google -Text \"Я перевожу текст\" -Language en\nI am translating the text\n```\n\n![Image alt](https://github.com/Lifailon/Selenium-Modules/blob/rsa/Images/translation-example.jpg)\n\n## Console-Translate\n\nYou can use the [Console-Trsanslate](https://github.com/Lifailon/Console-Translate) module to free translate text without dependencies **using the API** (Google public key and DeepLX free API):\n\n```PowerShell\nInvoke-Expression(New-Object Net.WebClient).DownloadString(\"https://raw.githubusercontent.com/Lifailon/Console-Translate/rsa/Deploy-Console-Translate.ps1\")\n```\n\n## Internet SpeedTest\n\nThe module uses 3 providers to choose from:\n\n- **[LibreSpeed](https://librespeed.org)**\n- **[OpenSpeedTest](https://openspeedtest.com)**\n- **[Ookla](https://www.speedtest.net)**\n\n📊 The module is debugged on **PowerShell Core** and can be used to collect metrics with output to InfluxDB. As an example, you can use other work **[Ookla-SpeedTest-API](https://github.com/Lifailon/Ookla-SpeedTest-API)**, which alternatively uses **InternetExplorer via COM Interface**.\n\n### 🚀 Install module Get-SpeedTest\n\n```PowerShell\nInvoke-RestMethod https://raw.githubusercontent.com/Lifailon/Selenium-Modules/rsa/Modules/Get-SpeedTest/Get-SpeedTest.psm1 | Out-File -FilePath \"$(New-Item -Path \"$($($Env:PSModulePath -split \";\")[0])\\Get-SpeedTest\" -ItemType Directory -Force)\\Get-SpeedTest.psm1\" -Force\n```\n\n### 🎉 Example Get-SpeedTest\n\n```PowerShell\nPS C:\\Users\\lifailon\\Desktop\u003e Get-SpeedTest -Provider Libre\n\nDownload Upload    Ping    Jitter\n-------- ------    ----    ------\n171 Mbps 28.0 Mbps 22.0 ms 1.40 ms\n\nPS C:\\Users\\lifailon\\Desktop\u003e Get-SpeedTest -Provider Open \n\nDownload : 254.68 Mbps\nUpload   : 80.24 Mbps\nPing     : 5.6 ms\nJitter   : 0.30 ms\nCarrier  : SEVEN-SKY\nServer   : Stockholm\nResult   : openspeedtest.com/results/63074923\nDate     : Jan 9 2024 4:06 PM UTC\n\nPS C:\\Users\\lifailon\\Desktop\u003e Get-SpeedTest -Provider Ookla\n\ndate               : 09.01.2024 19:08:23\nid                 : 15729550610\nconnection_icon    : wireless\ndownload           : 272707\nupload             : 272986\nlatency            : 3\ndistance           : 0\ncountry_code       : RU\nserver_id          : 53268\nserver_name        : Moscow\nsponsor_name       : City-Telecom ZAO\nsponsor_url        :\nconnection_mode    : multi\nisp_name           : Seven Sky\nisp_rating         : 3.5\ntest_rank          : 100\ntest_grade         : A+\ntest_rating        : 5\nidle_latency       : 4\ndownload_latency   : 50\nupload_latency     : 14\nadditional_servers : {@{server_id=22121; server_name=Moscow; sponsor_name=MosLine Group LLC}, @{server_id=23499; server_name=Moscow; sponsor_name=Марьино.net},\n                      @{server_id=11266; server_name=Moscow; sponsor_name=INETCOM LLC}}\npath               : result/15729550610\nhasSecondary       : True\n```\n\n![Image alt](https://github.com/Lifailon/Selenium-Modules/blob/rsa/Images/speedtest-example.jpg)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flifailon%2Fselenium-modules","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flifailon%2Fselenium-modules","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flifailon%2Fselenium-modules/lists"}